/* /contact - premium, CMS-driven. Everything is scoped with the ct- prefix so
   nothing leaks into the homepage, founder or course pages. Palette follows the
   approved ICDS language: warm cream, subtle orange/gold glow, deep navy. */

.ct-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-bg, #f5f0e6) 0%, var(--light-bg, #faf7f2) 100%);
  padding: 72px 0 92px;
  border-bottom: 1px solid var(--border-color, #e8e2d8);
}
.ct-glow {
  position: absolute;
  inset: -120px -80px auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(217, 119, 6, 0.22), rgba(234, 88, 12, 0.08) 55%, transparent 75%);
  pointer-events: none;
}
.ct-hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.ct-hero-grid.has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.ct-hero-copy { max-width: 720px; }
.ct-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--secondary-color, #0b1325);
  margin: 10px 0 18px;
}
.ct-accent {
  font-style: italic;
  background: var(--accent-gradient, linear-gradient(135deg, #c28e34, #d97706 50%, #ea580c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.ct-intro { font-size: 18px; line-height: 1.7; color: var(--body-color, #475569); margin: 0 0 18px; white-space: pre-line; max-width: 620px; }
.ct-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 16px;
  background: #fff; border: 1px solid var(--border-color, #e8e2d8); border-radius: 999px;
  font-size: 14px; color: var(--secondary-color, #0b1325); box-shadow: var(--shadow-sm, 0 4px 14px rgba(11, 19, 37, 0.05));
}
.ct-note i { color: var(--primary-color, #d97706); }
.ct-hero-media img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-card, 0 16px 40px rgba(11, 19, 37, 0.08)); }

/* Buttons (44px+ touch targets) */
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.ct-btn:hover { transform: translateY(-1px); }
.ct-btn:focus-visible, .ct-card-value:focus-visible, .ct-card-link:focus-visible, .ct-faq-all:focus-visible {
  outline: 3px solid var(--primary-color, #d97706); outline-offset: 3px;
}
.ct-btn-primary { background: var(--accent-gradient, linear-gradient(135deg, #c28e34, #ea580c)); color: #fff; box-shadow: var(--shadow-glow, 0 8px 24px rgba(217, 119, 6, 0.3)); }
.ct-btn-primary:hover { color: #fff; filter: brightness(1.05); }
.ct-btn-primary[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.ct-btn-wa { background: #128c4a; color: #fff; }
.ct-btn-wa:hover { color: #fff; filter: brightness(1.08); }
.ct-btn-light { background: #fff; color: var(--secondary-color, #0b1325); }
.ct-btn-light:hover { color: var(--secondary-color, #0b1325); }
.ct-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.ct-btn-ghost:hover { color: #fff; border-color: #fff; }

/* Contact cards */
.ct-cards-section { padding: 0; margin-top: -34px; position: relative; z-index: 2; }
.ct-section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-dark, #b45309); margin: 0 0 14px;
}
.ct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ct-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border-color, #e8e2d8);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow-soft, 0 16px 48px rgba(11, 19, 37, 0.06));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ct-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card, 0 16px 40px rgba(11, 19, 37, 0.1)); }
.ct-card-icon {
  flex-shrink: 0; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--primary-light, #fef3c7); color: var(--primary-dark, #b45309); font-size: 22px;
}
.ct-card-whatsapp .ct-card-icon, .ct-card-icon-wa { background: #e6f7ee; color: #128c4a; }
.ct-card-body { min-width: 0; }
.ct-card-label { font-size: 13px; font-weight: 700; color: var(--body-color, #475569); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.ct-card-value { display: block; font-size: 16px; font-weight: 600; color: var(--secondary-color, #0b1325); text-decoration: none; overflow-wrap: break-word; line-height: 1.45; }
a.ct-card-value:hover { color: var(--primary-dark, #b45309); }
.ct-pre { white-space: pre-line; }
.ct-card-note { font-size: 14px; color: var(--body-color, #475569); margin-top: 4px; }
.ct-card-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-weight: 700; font-size: 14.5px;
  color: var(--primary-dark, #b45309); text-decoration: none;
}
.ct-card-link:hover { text-decoration: underline; }

/* Form */
.ct-form-section { padding: 64px 0 48px; scroll-margin-top: 84px; }
.ct-form-grid { display: grid; gap: 28px; }
.ct-form-grid.has-aside { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.ct-form-card {
  background: #fff; border: 1px solid var(--border-color, #e8e2d8); border-radius: 26px; padding: 40px;
  box-shadow: var(--shadow-card, 0 16px 40px rgba(11, 19, 37, 0.08));
}
.ct-form-title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px, 2.6vw, 32px); color: var(--secondary-color, #0b1325); margin: 0 0 8px; }
.ct-form-desc { color: var(--body-color, #475569); margin: 0 0 22px; line-height: 1.65; white-space: pre-line; }
.ct-feedback:empty { display: none; }
.ct-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; font-size: 15px; line-height: 1.55; }
.ct-alert i { margin-top: 3px; flex-shrink: 0; }
.ct-alert ul { margin: 0; padding-left: 18px; }
.ct-alert-ok { background: var(--success-light, #ecfdf5); color: #065f46; border: 1px solid #a7f3d0; }
.ct-alert-err { background: var(--danger-light, #fef2f2); color: #991b1b; border: 1px solid #fecaca; }
.ct-form { display: flex; flex-direction: column; gap: 18px; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field label { font-size: 14px; font-weight: 700; color: var(--secondary-color, #0b1325); }
.ct-req { color: var(--accent-orange, #ea580c); }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1.5px solid var(--border-color, #e8e2d8); border-radius: 14px;
  background: var(--light-bg, #faf7f2); font-size: 16px; color: var(--secondary-color, #0b1325); font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ct-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.ct-field input:focus-visible, .ct-field select:focus-visible, .ct-field textarea:focus-visible {
  outline: none; background: #fff; border-color: var(--primary-color, #d97706); box-shadow: 0 0 0 4px var(--accent-glow, rgba(217, 119, 6, 0.25));
}
.ct-field .is-invalid { border-color: #dc2626; background: #fff; }
.ct-err { color: #b91c1c; font-size: 13.5px; min-height: 0; }
.ct-err:empty { display: none; }
.ct-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ct-count { margin-left: auto; font-size: 13px; color: var(--body-color, #475569); white-space: nowrap; }
.ct-count.is-near { color: #b45309; font-weight: 700; }
.ct-required-note { margin: 0; font-size: 13px; color: var(--body-color, #475569); }
.ct-form .ct-btn-primary { align-self: flex-start; }
/* Honeypot: off-screen (not display:none, which some bots detect). */
.ct-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* WhatsApp aside */
.ct-aside { position: sticky; top: 96px; }
.ct-wa-card {
  background: linear-gradient(180deg, #fff, var(--accent-gold-light, #fdf8ee)); border: 1px solid var(--border-color, #e8e2d8);
  border-radius: 24px; padding: 30px; box-shadow: var(--shadow-soft, 0 16px 48px rgba(11, 19, 37, 0.06));
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.ct-wa-card p { margin: 0; color: var(--body-color, #475569); line-height: 1.6; }

/* FAQ preview */
.ct-faq-section { padding: 24px 0 64px; }
.ct-faq-wrap { max-width: 860px; margin: 0 auto; }
.ct-faq-title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px, 2.8vw, 34px); color: var(--secondary-color, #0b1325); margin: 0 0 20px; text-align: center; }
.ct-faq-list { display: flex; flex-direction: column; gap: 12px; }
.ct-faq-item { background: #fff; border: 1px solid var(--border-color, #e8e2d8); border-radius: 16px; overflow: hidden; }
.ct-faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 22px;
  font-weight: 600; font-size: 17px; color: var(--secondary-color, #0b1325); cursor: pointer; list-style: none;
}
.ct-faq-item summary::-webkit-details-marker { display: none; }
.ct-faq-item summary:focus-visible { outline: 3px solid var(--primary-color, #d97706); outline-offset: -3px; }
.ct-faq-item summary i { color: var(--primary-color, #d97706); transition: transform 0.25s ease; flex-shrink: 0; }
.ct-faq-item[open] summary i { transform: rotate(180deg); }
.ct-faq-answer { padding: 0 22px 20px; color: var(--body-color, #475569); line-height: 1.7; white-space: pre-line; }
.ct-faq-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; font-weight: 700; color: var(--primary-dark, #b45309); text-decoration: none; }
.ct-faq-all:hover { text-decoration: underline; }

/* Closing CTA */
.ct-cta-section { padding: 0 0 72px; }
.ct-cta {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 28px; padding: 60px 28px;
  background: var(--navy-gradient, linear-gradient(180deg, #090e17, #0d1524));
}
.ct-cta::before {
  content: ''; position: absolute; inset: auto auto -160px 50%; width: 460px; height: 460px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217, 119, 6, 0.3), transparent 70%); pointer-events: none;
}
.ct-cta > * { position: relative; }
.ct-cta h2 { font-family: 'Fraunces', Georgia, serif; color: #fff; font-size: clamp(26px, 3.2vw, 40px); margin: 0 0 12px; }
.ct-cta p { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto 24px; line-height: 1.65; }
.ct-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 991.98px) {
  .ct-hero { padding: 52px 0 76px; }
  .ct-hero-grid.has-image { grid-template-columns: 1fr; }
  .ct-form-grid.has-aside { grid-template-columns: 1fr; }
  .ct-aside { position: static; }
  .ct-form-card { padding: 28px; }
}

@media (max-width: 575.98px) {
  .ct-hero { padding: 40px 0 70px; }
  .ct-intro { font-size: 16.5px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-form-card { padding: 22px 18px; border-radius: 22px; }
  .ct-form-section { padding: 44px 0 32px; }
  .ct-form .ct-btn-primary, .ct-hero .ct-btn-wa, .ct-wa-card .ct-btn-wa, .ct-cta-actions .ct-btn { width: 100%; }
  .ct-cards { grid-template-columns: 1fr; }
  .ct-cta { padding: 44px 20px; border-radius: 22px; }
  .ct-glow { width: 360px; height: 360px; inset: -90px -120px auto auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-btn, .ct-card, .ct-faq-item summary i { transition: none; }
  .ct-btn:hover, .ct-card:hover { transform: none; }
}
