/* ============================================
   contact.css – Sprout Tutor Centre
   Premium Contact Page Styles
   ============================================ */

:root {
  --primary: #3D0B52;
  --primary-light: #6A1B9A;
  --primary-glow: rgba(61, 11, 82, 0.12);
  --accent: #FFD54A;
  --accent-soft: rgba(255, 213, 74, 0.15);
  --text: #1a1a2e;
  --muted: #6b7280;
  --surface: #ffffff;
  --bg: #f8f7fc;
  --border: rgba(61, 11, 82, 0.1);
}

/* ── BACKGROUND BLOBS ── */
.blob-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: #8E24AA;
  top: -120px;
  left: -160px;
  animation: drift1 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: #FFD54A;
  bottom: -100px;
  right: -120px;
  animation: drift2 18s ease-in-out infinite alternate;
}

.blob-3 {
  width: 260px;
  height: 260px;
  background: #4A148C;
  top: 45%;
  right: 8%;
  opacity: 0.13;
  animation: drift1 22s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -30px) scale(1.06); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-25px, 25px) scale(1.04); }
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.logo-text {
  background: linear-gradient(90deg, #4A148C, #8E24AA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover,
nav a.nav-active {
  color: var(--primary);
}

.trial-btn {
  background: var(--accent);
  color: var(--primary);
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 213, 74, 0.4);
}

/* ── PAGE WRAPPER ── */
.page {
  position: relative;
  z-index: 1;
}

/* ── CONTACT HERO ── */
.contact-hero {
  text-align: center;
  padding: 80px 6% 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 213, 74, 0.4);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
}

.contact-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-hero h1 span {
  background: linear-gradient(120deg, #6A1B9A, #FFD54A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── HOURS BANNER ── */
.hours-banner {
  margin: 0 6% 56px;
  background: linear-gradient(135deg, var(--primary), #6A1B9A);
  border-radius: 20px;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 36px rgba(61, 11, 82, 0.22);
}

.hours-icon {
  font-size: 1.4rem;
}

.hours-text strong {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
}

.hours-text span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.hours-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  padding: 0 6% 80px;
}

/* ── CONTACT CARDS ── */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 213, 74, 0.06));
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--primary-glow);
  border-color: rgba(61, 11, 82, 0.2);
}

.contact-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(61, 11, 82, 0.25);
}

.card-body {
  flex: 1;
}

.card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.card-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.card-action {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  transition: gap 0.2s;
}

.card-action:hover {
  gap: 8px;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 38px 36px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(61, 11, 82, 0.07);
  position: relative;
}

.form-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  transition: transform 0.2s;
}

.field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 11, 82, 0.08);
  background: white;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(61, 11, 82, 0.3);
}

.submit-btn:hover::after {
  opacity: 1;
}

.submit-btn:active {
  transform: translateY(0);
}

/* ── SUCCESS STATE ── */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 14px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-state h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.success-state p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.7;
}

.success-back {
  margin-top: 8px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.success-back:hover {
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  background: #220630;
  color: white;
  padding: 32px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  width: 100%;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 5%;
  }

  nav {
    gap: 14px;
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0 5% 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hours-banner {
    flex-direction: column;
    text-align: center;
    margin: 0 5% 40px;
  }

  .hours-badge {
    margin: 0 auto;
  }

  .form-card {
    padding: 28px 22px;
  }

  .contact-hero {
    padding: 50px 5% 36px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .hours-banner {
    padding: 18px 20px;
  }
}
