/* ══════════════════════════════════════════════════════════════
   Contact Page Styles - StatsAlpha Brand Compliant
   ══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   Hero Section
   Clean gradient using brand primary colors
   ──────────────────────────────────────────────────────────── */
.contact-hero {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
  color: white;
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-family: var(--font-family-b);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.contact-hero .lead {
  font-family: var(--font-family-a);
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}


/* ────────────────────────────────────────────────────────────
   Contact Card (Form Container)
   Using surface-0 for proper theme support
   ──────────────────────────────────────────────────────────── */
.contact-card {
  background: var(--surface-0);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.03);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
  font-family: var(--font-family-b);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--bs-body-color);
  margin-bottom: 1.5rem;
}


/* ────────────────────────────────────────────────────────────
   Form Elements
   Clean, accessible inputs with proper theme support
   ──────────────────────────────────────────────────────────── */
.contact-form .form-label {
  font-family: var(--font-family-a);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-muted);
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  font-family: var(--font-family-a);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--surface-0);
  color: var(--bs-body-color);
  transition: all 0.2s ease;
}

.contact-form .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-form .invalid-feedback {
  font-family: var(--font-family-a);
  font-size: 0.875rem;
  color: var(--bs-danger);
  margin-top: 0.25rem;
}


/* ────────────────────────────────────────────────────────────
   Submit Button
   Brand primary with proper hover states
   ──────────────────────────────────────────────────────────── */
.contact-form .btn-submit {
  font-family: var(--font-family-b);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  background: var(--bs-primary);
  border: none;
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.contact-form .btn-submit:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.contact-form .btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}


/* ────────────────────────────────────────────────────────────
   Contact Info Section
   Supporting information card
   ──────────────────────────────────────────────────────────── */
.contact-info {
  background: var(--surface-1);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 2rem;
}

.contact-info h4 {
  font-family: var(--font-family-b);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--bs-body-color);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-item-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--bs-primary);
  font-size: 1.25rem;
}

.contact-info-item-content {
  flex: 1;
}

.contact-info-item-content strong {
  font-family: var(--font-family-b);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--bs-body-color);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-info-item-content p,
.contact-info-item-content a {
  font-family: var(--font-family-a);
  font-size: 0.875rem;
  color: var(--bs-muted);
  margin: 0;
  line-height: 1.5;
}

.contact-info-item-content a {
  color: var(--bs-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-item-content a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}


/* ────────────────────────────────────────────────────────────
   Alert Messages (Success/Error)
   Using semantic colors with proper theme support
   ──────────────────────────────────────────────────────────── */
.contact-alerts {
  margin-bottom: 2rem;
}

.contact-alerts .alert {
  border-radius: 0.75rem;
  border: 1px solid;
  font-family: var(--font-family-a);
  font-size: 0.9375rem;
  padding: 1rem 1.25rem;
}

.contact-alerts .alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--bs-success);
  color: var(--bs-success);
}

.contact-alerts .alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--bs-danger);
  color: var(--bs-danger);
}


/* ────────────────────────────────────────────────────────────
   Responsive Adjustments
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-hero {
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

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


/* ────────────────────────────────────────────────────────────
   Dark Mode Specific Adjustments
   ──────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .contact-card,
[data-bs-theme="dark"] .contact-info {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .contact-card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .contact-info-item-icon {
  background: rgba(37, 99, 235, 0.2);
}

[data-bs-theme="dark"] .contact-alerts .alert-success {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}

[data-bs-theme="dark"] .contact-alerts .alert-danger {
  background: rgba(248, 113, 113, 0.15);
  color: #F87171;
}
