/* =============================================
   CONTACT PAGE CSS – Modern Glassmorphic 2026
   ============================================= */
:root {
  --primary: #8B0000;
  --primary-dark: #5C0000;
  --primary-light: #b71c1c;
  --accent: #f8cd30;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --bg-light: #ffffff;
  --bg-offwhite: #f9fafb;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 1.25rem;
  --navbar-height: 80px;   /* fallback, JS overrides */
}

[data-theme="dark"] {
  --text-dark: #f0f0f0;
  --text-muted: #aaa;
  --bg-light: #111111;
  --bg-offwhite: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ---------- PAGE HEADER (like About) ---------- */
.page-header-contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding-top: calc(var(--navbar-height, 80px) + 5rem);
  padding-bottom: 5rem;
}

.page-header-contact .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.page-header-contact .hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.page-header-contact .hero-description {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
}

/* ---------- MAIN SECTION ---------- */
.premium-section {
  padding: 5rem 0;
  background: var(--bg-offwhite);
  transition: background 0.4s;
}

/* ---------- GLASS PANEL ---------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255,255,255,0.15);
}

/* ---------- FORM CARD ---------- */
.form-card {
  padding: 3rem 2.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.form-card:hover {
  box-shadow: 0 20px 50px rgba(139,0,0,0.15);
  transform: translateY(-4px);
}

/* ---------- FORM FIELDS ---------- */
.form-field {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.required {
  color: #dc3545;
}

input[type="text"],
input[type="email"],
textarea,
.form-select {
  width: 100%;
  background: var(--bg-light);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] textarea,
[data-theme="dark"] .form-select {
  background: #1e1e1e;
  border-color: #333;
  color: #f0f0f0;
}

input:focus, textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139,0,0,0.15);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* Dropdown styling */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B0000' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---------- SUBMIT BUTTON ---------- */
.btn-submit {
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(139,0,0,0.3);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(139,0,0,0.45);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ---------- ALERTS (GLASS) ---------- */
.alert-glass {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.8rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent;
  position: relative;
}

.success-alert {
  background: rgba(25, 135, 84, 0.15);
  border-color: rgba(25, 135, 84, 0.3);
  color: #198754;
}

.error-alert {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}

[data-theme="dark"] .success-alert {
  color: #75b798;
}

[data-theme="dark"] .error-alert {
  color: #ea868f;
}

.alert-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
  font-weight: 500;
  font-size: 1rem;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.alert-close:hover {
  opacity: 1;
}

/* ---------- SCROLL REVEAL ---------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25,0.8,0.25,1), transform 0.7s cubic-bezier(0.25,0.8,0.25,1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal, .form-card, .btn-submit {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .page-header-contact .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  :root { --navbar-height: 70px; }
  .page-header-contact {
    padding-top: calc(var(--navbar-height, 70px) + 3.5rem);
    padding-bottom: 3.5rem;
  }
  .page-header-contact .hero-title { font-size: 2.2rem; }
  .form-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  :root { --navbar-height: 60px; }
  .page-header-contact {
    padding-top: calc(var(--navbar-height, 60px) + 3rem);
    padding-bottom: 3rem;
  }
  .page-header-contact .hero-title { font-size: 1.8rem; }
}