/* ============================================================
   Edu2Future LLC — Contact
   Extends "Editorial Prestige" (study-usa.css).
   Page-specific components, .ct- prefixed.
   ============================================================ */

/* ============================================================
   HERO (compact)
   ============================================================ */
.ct-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 12vw, 130px) 0 clamp(60px, 8vw, 90px);
  background:
    radial-gradient(1000px 560px at 12% -10%, rgba(212,175,55,.18), transparent 58%),
    radial-gradient(760px 600px at 100% 20%, rgba(70,120,190,.24), transparent 60%),
    linear-gradient(155deg, #0e2950 0%, #0b1f3a 52%, #071528 100%);
}
.ct-hero-aura {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px 520px at 82% 60%, rgba(212,175,55,.12), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000, #000 72%, transparent);
  animation: hero-drift 16s ease-in-out infinite alternate;
}
.ct-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.ct-hero-inner .su-display { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin: 20px 0 22px; }

/* ============================================================
   PANEL — info aside + form
   ============================================================ */
.ct-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border: 1px solid var(--su-line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 44px 100px -60px rgba(11,31,58,.55);
}
/* let grid/flex children shrink instead of overflowing on small screens */
.ct-aside,
.ct-form-wrap,
.ct-form { min-width: 0; }
.ct-form { flex: 1 1 auto; }

/* Info aside (navy) */
.ct-aside {
  padding: clamp(36px, 5vw, 56px);
  background:
    radial-gradient(560px 320px at 88% 0%, rgba(212,175,55,.16), transparent 60%),
    linear-gradient(160deg, #0d2444, var(--su-ink));
  color: #fff;
}
.ct-aside .su-display { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 16px 0 16px; }
.ct-aside > p { color: #B9C6D6; font-size: 1.02rem; line-height: 1.7; }

.ct-contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.ct-contact-list li { display: flex; align-items: center; gap: 15px; }
.ct-contact-ico {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(212,175,55,.14);
  border: 1px solid rgba(212,175,55,.32);
  color: var(--su-gold);
}
.ct-contact-ico svg { width: 21px; height: 21px; }
.ct-contact-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8DA0B6;
  margin-bottom: 3px;
}
.ct-contact-list a,
.ct-contact-val { color: #fff; font-size: 1rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.ct-contact-list li > div { min-width: 0; }
.ct-contact-list a:hover { color: var(--su-gold); }

.ct-aside-trust {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .86rem;
  font-weight: 600;
  color: #EAF0F7;
}
.ct-aside-trust svg { width: 22px; height: 22px; color: var(--su-gold); flex: none; }

.ct-social { display: flex; gap: 12px; margin-top: 32px; }
.ct-social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, color .25s ease;
}
.ct-social-link:hover { background: var(--su-gold); border-color: var(--su-gold); color: #1a1407; transform: translateY(-2px); }

/* ============================================================
   FORM
   ============================================================ */
.ct-form { padding: clamp(32px, 5vw, 56px); }
.ct-form-title {
  font-family: var(--su-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--su-ink);
}
.ct-form-sub { font-size: .9rem; color: var(--color-paragraph); margin: 6px 0 26px; }
.ct-form-sub span, .ct-field label span { color: #c0392b; }

.ct-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ct-field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 18px; }
.ct-field label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--su-ink);
  margin-bottom: 8px;
}
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: .96rem;
  color: var(--su-ink);
  background: var(--su-ivory);
  border: 1.5px solid var(--su-line);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.ct-field textarea { resize: vertical; min-height: 120px; }
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: #9aa6b4; }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--su-gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,.16);
}
.ct-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 6px 0 24px;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--color-paragraph);
  cursor: pointer;
}
/* custom checkbox — base.css strips native appearance, so rebuild it */
.ct-consent input[type="checkbox"] {
  flex: none;
  position: relative;
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 1.5px solid rgba(11,31,58,.32);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.ct-consent input[type="checkbox"]:hover { border-color: var(--su-gold); }
.ct-consent input[type="checkbox"]:checked {
  background: var(--su-gold);
  border-color: var(--su-gold);
}
.ct-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #1a1407;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ct-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--su-gold);
  outline-offset: 2px;
}
.ct-submit { width: 100%; justify-content: center; }
.ct-submit-loading { display: none; }
.ct-form.htmx-request .ct-submit { pointer-events: none; opacity: .8; }
.ct-form.htmx-request .ct-submit-default { display: none; }
.ct-form.htmx-request .ct-submit-loading { display: inline-flex; }

/* success state (after htmx submit) */
.ct-form-wrap { display: flex; }
.ct-sent {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 6vw, 72px);
}
.ct-sent-ico {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(34,139,84,.12);
  border: 1px solid rgba(34,139,84,.34);
  color: #1d6b3f;
}
.ct-sent-ico svg { width: 30px; height: 30px; }
.ct-sent h2 {
  font-family: var(--su-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--su-ink);
  margin-bottom: 10px;
}
.ct-sent p { color: var(--color-paragraph); font-size: 1.02rem; line-height: 1.65; max-width: 30em; margin: 0 auto; }

/* honeypot — visually hidden, kept in the layout flow for bots */
.ct-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* validation + status messages */
.ct-err { display: block; margin-top: 6px; font-size: .8rem; color: #c0392b; }
.ct-err-block { margin: -16px 0 18px; }
.ct-field input.is-error,
.ct-field textarea.is-error { border-color: #c0392b; }
.ct-alert {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.5;
}
.ct-alert-success {
  background: rgba(34,139,84,.1);
  border: 1px solid rgba(34,139,84,.34);
  color: #1d6b3f;
}
.ct-alert-error {
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.3);
  color: #a5281c;
}

/* ============================================================
   OFFICES
   ============================================================ */
.ct-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ct-office {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 36px 34px;
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}
.ct-office:hover { transform: translateY(-6px); background: rgba(212,175,55,.05); border-color: rgba(212,175,55,.4); }
.ct-office-flag { font-size: 2.2rem; line-height: 1; }
.ct-office h3 {
  font-family: var(--su-serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: #fff;
  margin: 14px 0 4px;
}
.ct-office > p { color: var(--su-gold); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ct-office-meta {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
}
.ct-office-meta li { display: flex; align-items: center; gap: 11px; color: #EAF0F7; font-size: .95rem; }
.ct-office-meta svg { width: 17px; height: 17px; color: var(--su-gold); flex: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .ct-panel { grid-template-columns: 1fr; }
  .ct-offices { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .ct-field-row { grid-template-columns: 1fr; gap: 0; }
  .ct-aside { padding: 30px 22px; }
  .ct-form { padding: 30px 22px; }
  .ct-sent { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-hero-aura { animation: none !important; }
}
