/* ===== CONTACT PAGE IMPROVEMENTS ===== */
/* Stunning, conversion-optimized contact page design */
/* Premium visual design with animations and interactive elements */

/* ===== CONTACT PAGE HERO ===== */

.contact-hero {
  background: linear-gradient(135deg, var(--navy, #0A2342) 0%, var(--slate, #2C3E50) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: var(--s-8, 100px) 0 var(--s-7, 80px);
  margin-bottom: 0;
}

/* Animated floating orbs */
.contact-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-orb 20s ease-in-out infinite;
}

.contact-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-orb 25s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

.contact-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.contact-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--s-4, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.contact-hero .page-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  margin-bottom: var(--s-6, 40px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust badges below hero */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--s-5, 32px);
  flex-wrap: wrap;
  padding: var(--s-5, 32px);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-3, 20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: var(--s-6, 40px);
}

.trust-badge {
  text-align: center;
  color: white;
}

.trust-badge-icon {
  font-size: 2rem;
  margin-bottom: var(--s-2, 12px);
  display: block;
}

.trust-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ===== CONTACT FORM SECTION ===== */

.contact-form-section {
  background: var(--gray-50, #F5F6FA);
  padding: var(--s-9, 120px) 0;
  position: relative;
  margin-top: -60px;
}

.contact-form-wrapper {
  display: grid;
  gap: var(--s-7, 56px);
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .contact-form-wrapper {
    grid-template-columns: 2fr 3fr;
    gap: var(--s-8, 72px);
  }
}


/* ===== CONTACT INFO PANEL ===== */

.contact-info {
  background: linear-gradient(135deg, var(--navy, #0A2342) 0%, var(--slate, #2C3E50) 100%);
  color: white;
  padding: var(--s-6, 40px);
  border-radius: var(--radius-3, 24px);
  box-shadow:
    0 20px 60px rgba(10, 35, 66, 0.25),
    0 8px 24px rgba(10, 35, 66, 0.15);
  position: relative;
  overflow: hidden;
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* Decorative gradient overlay */
.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at top right, rgba(79, 195, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at bottom left, rgba(46, 204, 113, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contact-info > * {
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  color: white;
  margin-bottom: var(--s-4, 24px);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--s-6, 48px);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Contact Methods */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--s-4, 20px);
  margin-bottom: var(--s-6, 48px);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4, 20px);
  padding: var(--s-4, 28px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2, 16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-method:hover::before {
  left: 100%;
}

.method-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.2) 0%, rgba(46, 204, 113, 0.2) 100%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-method:hover .method-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.3);
}

.method-info h4 {
  color: var(--emerald, #2ECC71);
  margin-bottom: var(--s-2, 10px);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.method-info a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  transition: all 0.2s ease;
  position: relative;
}

.method-info a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald, #2ECC71);
  transition: width 0.3s ease;
}

.method-info a:hover {
  color: var(--emerald, #2ECC71);
}

.method-info a:hover::after {
  width: 100%;
}

/* Availability Section */
.availability {
  padding: var(--s-5, 32px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2, 16px);
  border-left: 5px solid var(--emerald, #2ECC71);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.availability h4 {
  color: white;
  margin-bottom: var(--s-3, 16px);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.availability h4::before {
  content: '🕒';
  font-size: 1.5rem;
}

.availability p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}


/* ===== CONTACT FORM STYLES ===== */

.contact-form {
  background: white;
  padding: var(--s-6, 40px);
  border-radius: var(--radius-3, 24px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

/* Decorative top border */
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--sky, #4FC3F7) 0%, var(--emerald, #2ECC71) 100%);
}

@media (max-width: 768px) {
  .contact-form {
    padding: var(--s-6, 40px) var(--s-5, 32px);
  }
}

/* Form Row */
.form-row {
  display: grid;
  gap: var(--s-4, 24px);
  margin-bottom: var(--s-4, 24px);
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form Fields */
.form-field {
  margin-bottom: var(--s-4, 24px);
}

.form-field:last-of-type {
  margin-bottom: var(--s-6, 40px);
}

.form-field label {
  display: block;
  margin-bottom: var(--s-2, 12px);
  color: var(--navy, #0A2342);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

/* Premium Input Styles */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-2, 12px);
  font-size: 1rem;
  color: var(--slate, #2C3E50);
  background: white;
  transition: all 0.3s ease;
  appearance: none;
  font-family: inherit;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sky, #4FC3F7);
  box-shadow:
    0 0 0 4px rgba(79, 195, 247, 0.15),
    0 4px 12px rgba(79, 195, 247, 0.1);
  background: white;
  transform: translateY(-1px);
}

/* Premium Select Dropdown */
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%230A2342' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
  cursor: pointer;
  font-weight: 500;
}

/* Premium Textarea */
.contact-form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

/* Placeholder Styles */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
  font-weight: 400;
}

/* Required Field Indicator */
.form-field label::after {
  content: "";
}

.form-field:has(input[required]) label::after,
.form-field:has(textarea[required]) label::after {
  content: " *";
  color: #EF4444;
  font-weight: 700;
}

/* Premium Checkbox Field */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3, 16px);
  padding: var(--s-4, 20px);
  background: #F8FAFC;
  border-radius: var(--radius-2, 12px);
  border: 2px solid #E5E7EB;
  transition: all 0.3s ease;
}

.checkbox-field:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3, 14px);
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--slate, #2C3E50);
  cursor: pointer;
  line-height: 1.6;
}

.checkbox-field input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid #94A3B8;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--emerald, #2ECC71);
  transition: all 0.2s ease;
}

.checkbox-field input[type="checkbox"]:hover {
  border-color: var(--emerald, #2ECC71);
}

.checkbox-field input[type="checkbox"]:focus {
  outline: 3px solid rgba(46, 204, 113, 0.3);
  outline-offset: 2px;
}

/* Premium Submit Button */
.contact-form .btn {
  width: 100%;
  padding: 18px 48px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .contact-form .btn {
    width: auto;
    min-width: 240px;
  }
}

.contact-form .btn-primary {
  background: linear-gradient(135deg, var(--emerald, #2ECC71) 0%, #27AE60 100%);
  color: white;
  box-shadow:
    0 8px 24px rgba(46, 204, 113, 0.35),
    0 4px 12px rgba(46, 204, 113, 0.25);
  border-radius: 12px;
}

.contact-form .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-form .btn-primary:hover {
  background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
  box-shadow:
    0 12px 32px rgba(46, 204, 113, 0.45),
    0 6px 16px rgba(46, 204, 113, 0.3);
  transform: translateY(-3px);
}

.contact-form .btn-primary:hover::before {
  left: 100%;
}

.contact-form .btn-primary:active {
  transform: translateY(-1px);
  box-shadow:
    0 6px 20px rgba(46, 204, 113, 0.4),
    0 3px 10px rgba(46, 204, 113, 0.25);
}

.contact-form .btn-primary:focus-visible {
  outline: 4px solid rgba(46, 204, 113, 0.4);
  outline-offset: 3px;
}

/* Form Validation States */
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.form-field input:valid:not(:placeholder-shown):not([type="checkbox"]),
.form-field textarea:valid:not(:placeholder-shown) {
  border-color: #86EFAC;
  background: #F0FDF4;
}

/* Error Messages */
.form-field .error-message {
  display: block;
  margin-top: var(--s-2, 10px);
  color: #EF4444;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-field .error-message::before {
  content: '⚠';
  font-size: 1rem;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: #EF4444;
  background: #FEF2F2;
}

/* Success State */
.form-field.has-success input,
.form-field.has-success textarea {
  border-color: var(--emerald, #2ECC71);
  background: #F0FDF4;
}

/* Loading State */
.contact-form.is-submitting {
  opacity: 0.6;
  pointer-events: none;
}

.contact-form.is-submitting .btn-primary {
  background: #94A3B8;
  cursor: not-allowed;
}

.contact-form.is-submitting .btn-primary::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Message */
.form-success-message {
  display: none;
  padding: var(--s-6, 40px);
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border: 3px solid var(--emerald, #2ECC71);
  border-radius: var(--radius-3, 20px);
  color: #065F46;
  text-align: center;
  margin-bottom: var(--s-6, 40px);
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.2);
}

.form-success-message.is-visible {
  display: block;
  animation: slideDown 0.5s ease;
}

.form-success-message h3 {
  color: #065F46;
  margin-bottom: var(--s-3, 16px);
  font-size: 1.5rem;
  font-weight: 800;
}

.form-success-message h3::before {
  content: '✓ ';
  color: var(--emerald, #2ECC71);
  font-size: 2rem;
  display: block;
  margin-bottom: var(--s-2, 12px);
}

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


/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 1023px) {
  .contact-info {
    position: static;
  }

  .contact-form-section {
    padding: var(--s-8, 80px) 0;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: var(--s-7, 60px) 0 var(--s-6, 48px);
  }

  .trust-badges {
    gap: var(--s-4, 24px);
    padding: var(--s-4, 24px);
  }

  .contact-info {
    padding: var(--s-6, 40px) var(--s-5, 32px);
  }

  .contact-method {
    padding: var(--s-4, 20px);
  }

  .method-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .contact-form-section {
    margin-top: -40px;
    padding: var(--s-7, 60px) 0;
  }
}


/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .form-success-message.is-visible {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    border-width: 3px;
  }

  .contact-info {
    border: 3px solid white;
  }

  .checkbox-field {
    border-width: 3px;
  }
}

/* Focus Visible Improvements */
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 4px solid var(--sky, #4FC3F7);
  outline-offset: 3px;
}


/* ===== PRINT STYLES ===== */

@media print {
  .contact-hero::before,
  .contact-hero::after,
  .contact-method::before {
    display: none;
  }

  .contact-hero {
    background: white;
    color: black;
    padding: var(--s-5, 32px) 0;
  }

  .contact-hero h1 {
    color: black;
  }

  .contact-form-wrapper {
    display: block;
  }

  .contact-form {
    box-shadow: none;
    border: 2px solid #333;
  }

  .contact-form::before {
    display: none;
  }

  .contact-info {
    background: white;
    color: black;
    border: 2px solid #333;
    box-shadow: none;
    page-break-after: always;
  }

  .contact-info h2,
  .method-info h4,
  .availability h4 {
    color: black;
  }

  .method-info a {
    color: black;
  }

  .btn {
    display: none;
  }
}
