/* ==========================================================================
   Contact Page Styles — Premium UI
   ========================================================================== */

html { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body > main { flex: 1; }
body > .main-footer { margin-top: auto; }
body::before, body::after { position: fixed; }

/* ---------- Contact Hero ---------- */
.contact-page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  text-align: center;
  background: var(--bg-primary);
  overflow: hidden;
}

.contact-page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

.contact-page-hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(280, 80%, 60%, 0.12) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
}

.contact-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.contact-page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.contact-page-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Trust Badges Row ---------- */
.contact-trust-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- Contact Section ---------- */
.contact-page-hero + .contact-section {
  border-top: none;
}

.contact-section {
  position: relative;
}

/* ---------- Contact Info Cards ---------- */
.contact-detail-item {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-detail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -8px hsla(var(--primary-hsl), 0.12);
  border-color: var(--primary-light);
}

.contact-detail-item:hover .contact-detail-icon {
  background-color: var(--primary);
  color: #fff;
}

/* ---------- Form Card ---------- */
.contact-form-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  box-shadow: 0 8px 40px -12px hsla(0, 0%, 0%, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), hsl(280, 80%, 60%));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ---------- Form UI Enhancements ---------- */
.contact-form-card .form-card-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-form-card .form-card-header h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-form-card .form-card-header p {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-form-card .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
}

.contact-form-card .form-control {
  padding: 0.9375rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

.contact-form-card .form-control:hover {
  border-color: var(--text-muted);
}

.contact-form-card .form-control:focus {
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px hsla(var(--primary-hsl), 0.1);
}

.contact-form-card .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-form-card textarea.form-control {
  min-height: 120px;
}

.contact-form-card .btn-submit {
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-card .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px hsla(var(--primary-hsl), 0.35);
}



/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .contact-page-hero {
    padding: 8rem 0 3rem;
  }

  .contact-page-hero::before,
  .contact-page-hero::after {
    width: 280px;
    height: 280px;
  }

  .contact-trust-row {
    gap: 1rem;
  }

  .contact-detail-item {
    padding: 1rem 1.25rem;
  }

  .contact-form-card .form-control {
    padding: 0.8125rem 1rem;
  }
}

@media (max-width: 480px) {
  .contact-trust-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .contact-page-title {
    font-size: 1.75rem;
  }

  .contact-page-subtitle {
    font-size: 1rem;
  }

  .contact-form-card .form-card-header h3 {
    font-size: 1.375rem;
  }

  .contact-form-card .btn-submit {
    padding: 0.875rem 1.5rem;
  }
}
