/* Partner Page Styles */

/* Body background - matching collection/team style */
body {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 50%, #1a252f 100%) !important;
  background-color: #34495e !important; /* Fallback color to prevent white flash */
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  transition: none !important; /* Prevent any background transitions */
}

/* Ensure background stays consistent when mobile menu is open */
body.menu-open {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 50%, #1a252f 100%) !important;
  background-color: #34495e !important; /* Fallback color */
  transition: none !important; /* Prevent any background transitions */
}

/* Header styling to match collection/team pages */
header {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-nav a,
.brand {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.mobile-nav-content a {
  color: white !important;
  transition: color 0.2s ease;
}

.mobile-nav-content a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hamburger-line {
  background: white !important;
}

header h1 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-signIn {
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-signIn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white !important;
  border: 2px solid white;
}

.orobor-logo-white {
  filter: invert(1) brightness(2);
}

/* Shipping Form Container */
.shipping-form-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Hero-style form header */
.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 6rem 0 4rem 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  margin: 2rem 0 4rem 0;
}

.form-header h1 {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-header p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Form Styling - Glass-morphism design */
.shipping-form {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 30px;
}

.form-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-section h2 i {
  color: #3498db;
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 5px rgba(52, 152, 219, 0.3));
}

.form-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 25px 0 15px 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Destination Info Styling */
.destination-info {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.destination-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hardcoded-address {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.hardcoded-address p {
  color: white;
  margin: 0.25rem 0;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hardcoded-address p:first-child {
  font-weight: 600;
  color: #3498db;
  margin-bottom: 0.5rem;
}

/* Form Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  overflow-x: hidden;
  max-width: 100%;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .shipping-form-container {
    padding: 0 15px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
  background: rgba(52, 73, 94, 0.95);
  color: white;
}

/* Address Section */
.address-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dimensions Section */
.dimensions-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
  animation: shake 0.5s ease-in-out;
}

.form-group.error label {
  color: #e74c3c;
}

.error-message {
  display: none;
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 4px;
  border-left: 3px solid #e74c3c;
  animation: slideDown 0.3s ease-out;
}

.error-message:not(:empty) {
  display: block;
}

/* Success state for valid fields */
.form-group.success input,
.form-group.success select {
  border-color: #27ae60;
  box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

/* Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form field focus states */
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  transition: all 0.3s ease;
}

/* Required field indicator */
.form-group label[for*="required"]::after,
.form-group label:has(+ input[required])::after,
.form-group label:has(+ select[required])::after {
  content: " *";
  color: #e74c3c;
  font-weight: bold;
}

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

.shipping-form-container {
  overflow-x: hidden;
  max-width: 100%;
}

.form-grid {
  overflow-x: hidden;
}

/* Fix mobile navigation positioning */
.mobile-nav {
  overflow-x: hidden;
}

/* Ensure form sections don't overflow */
.form-section {
  overflow-x: hidden;
  max-width: 100%;
}

.address-section {
  overflow-x: hidden;
  max-width: 100%;
}

.dimensions-section {
  overflow-x: hidden;
  max-width: 100%;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 180px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
}

#request-preview {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 50vh;
  overflow-y: auto;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 15px;
}

.loading-spinner p {
  margin: 0;
  font-size: 1.1rem;
  color: #374151;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .shipping-form-container {
    margin: 20px auto;
    padding: 0 15px;
  }

  .form-header {
    padding: 4rem 0 3rem 0;
    margin: 1rem 0 3rem 0;
  }

  .form-header h1 {
    font-size: 2.5rem;
  }

  .form-header p {
    font-size: 1.1rem;
  }

  .shipping-form {
    padding: 2.5rem 2rem;
    border-radius: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-section h2 {
    font-size: 1.3rem;
  }

  .form-section h3 {
    font-size: 1.1rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 15px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 20px;
  }

  #request-preview {
    font-size: 0.75rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .shipping-form-container {
    padding: 0 10px;
  }

  .form-header {
    padding: 3rem 0 2rem 0;
    margin: 0.5rem 0 2rem 0;
  }

  .form-header h1 {
    font-size: 2rem;
  }

  .form-header p {
    font-size: 1rem;
  }

  .shipping-form {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .form-section h2 {
    font-size: 1.2rem;
  }

  .form-group input,
  .form-group select {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Animation for form sections */
.form-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid {
  border-color: #ef4444;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success state */
.form-group input:valid,
.form-group select:valid {
  border-color: #10b981;
}

/* Required field indicator */
.form-group label[for*="required"]::after {
  content: " *";
  color: #ef4444;
}

/* Hover effects for form elements */
.form-group input:hover,
.form-group select:hover {
  border-color: #d1d5db;
}

/* Focus ring for accessibility */
.form-group input:focus,
.form-group select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Custom select styling */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Shipping Label Modal Styles */
.shipping-label-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.shipping-label-modal .modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shipping-label-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 15px 25px;
  border-bottom: 1px solid #e0e0e0;
}

.shipping-label-modal .modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.shipping-label-modal .close {
  font-size: 2rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.shipping-label-modal .close:hover {
  color: #333;
}

.shipping-label-modal .modal-body {
  padding: 20px 25px 25px 25px;
}

.label-info {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.label-info p {
  margin: 8px 0;
  font-size: 1rem;
  color: #2c3e50;
}

.label-info strong {
  color: #34495e;
}

.label-container {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #ddd;
}

.label-container img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.btn-download,
.btn-print {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-download {
  background: #3498db;
  color: white;
}

.btn-download:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-print {
  background: #27ae60;
  color: white;
}

.btn-print:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}