/* Contact page. Builds on the shared tokens, buttons and eyebrows from global.css. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero (compact) ---------- */
.c-hero {
  color: #fff; padding-block: clamp(2rem, 4vw, 2.8rem) clamp(5.5rem, 9vw, 7rem);
  background:
    radial-gradient(40% 70% at 85% 30%, rgba(44, 45, 116, 0.65) 0%, rgba(44, 45, 116, 0) 70%),
    linear-gradient(125deg, #15163d 0%, #1a1b4a 45%, #202158 100%);
}
.crumbs { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: rgba(232, 232, 248, 0.7); }
.crumbs a { color: rgba(232, 232, 248, 0.85); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--orange); }
.crumbs .i { width: 0.9rem; height: 0.9rem; }
.crumbs [aria-current] { color: #fff; font-weight: 500; }
.c-hero-copy { margin-top: clamp(1.8rem, 3.5vw, 2.8rem); max-width: 46rem; }
.c-hero .eyebrow.chip { background: transparent; border-color: rgba(255, 152, 0, 0.6); color: var(--orange); }
.c-hero h1 { margin-top: 1.2rem; color: #fff; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.c-hero p { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.7; color: rgba(232, 232, 248, 0.85); max-width: 40rem; }

/* ---------- Contact information (overlaps the hero edge) ---------- */
.c-info { position: relative; z-index: 2; margin-top: calc(-1 * clamp(3.4rem, 5vw, 4rem)); }
.c-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.c-cards > li { display: flex; }
.c-card {
  flex: 1; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1.5rem 1.6rem; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-md);
  transition: translate 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.c-card:hover { translate: 0 -3px; border-color: #fbe0bd; box-shadow: var(--shadow-lg); }
.cc-ic {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--orange-50); color: var(--orange-600); transition: background 0.3s ease, color 0.3s ease;
}
.cc-ic.n { background: var(--navy-50); color: var(--navy); }
.cc-ic .i { width: 1.3rem; height: 1.3rem; }
.c-card:hover .cc-ic { background: var(--orange); color: #fff; }
.cc-body { min-width: 0; display: flex; flex-direction: column; }
.cc-body small { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.cc-body b { margin-top: 0.25rem; font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; color: var(--navy); overflow-wrap: break-word; }
.cc-body > span { margin-top: 0.3rem; font-size: 0.93rem; line-height: 1.5; color: var(--muted); }
/* the phone card lists more than one number, each its own link */
.cc-body > .cc-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem;
  margin-top: 0.25rem; font-size: inherit; line-height: inherit; color: inherit;
}
.cc-body > .cc-row + .cc-row { margin-top: 0.45rem; }
.cc-row b { margin-top: 0; }
.cc-line:hover b { color: var(--orange-text); }

/* ---------- Form + aside ---------- */
.c-main-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.c-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
}
.form-head h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; }
.form-head p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); }
.form-grid { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.2rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field:has(textarea) { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.45rem; }
.req { color: var(--orange-text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-btn); padding: 0.8rem 1rem; min-height: 52px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field select {
  appearance: none; cursor: pointer; padding-right: 2.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202158' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px;
}
.field select.placeholder { color: var(--muted-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); opacity: 1; }
.field select option { color: var(--text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d8d8e8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(32, 33, 88, 0.12);
}
.field :disabled { background: var(--bg-soft); cursor: not-allowed; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.14); }
.hint { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted-2); }
.err { display: flex; align-items: flex-start; gap: 0.35rem; margin-top: 0.45rem; font-size: 0.87rem; line-height: 1.4; color: #b42318; }
.err .i { width: 0.95rem; height: 0.95rem; margin-top: 0.1rem; }

.submit { margin-top: 1.6rem; min-width: 200px; }
.submit:disabled { cursor: progress; opacity: 0.85; transform: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.form-alert {
  display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.4rem; padding: 0.9rem 1.1rem; border-radius: 14px;
  background: #fef3f2; border: 1px solid #fecdca; color: #912018; font-size: 0.95rem; line-height: 1.55;
}
.form-alert .i { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
.form-alert a, .form-done a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.form-done { display: flex; flex-direction: column; align-items: flex-start; padding-block: 1rem; }
.done-ic { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e5f5ec; color: #2f8a5b; }
.done-ic .i { width: 1.8rem; height: 1.8rem; }
.form-done h3 { margin-top: 1.2rem; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
.form-done p { margin-top: 0.6rem; color: var(--muted); line-height: 1.7; max-width: 34rem; }
.form-done .btn { margin-top: 1.6rem; }
@media (prefers-reduced-motion: no-preference) {
  .form-done { animation: done-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@keyframes done-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

.c-why { padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: 24px; background: var(--bg-soft); border: 1px solid var(--line-2); }
.c-why h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.25; }
.c-why ul { margin-top: 1.2rem; }
.c-why li { display: flex; gap: 0.9rem; align-items: flex-start; padding-block: 1rem; border-top: 1px solid var(--line); }
.cw-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--orange-600); border: 1px solid #fbe0bd; }
.cw-ic .i { width: 1.1rem; height: 1.1rem; }
.c-why b { display: block; font-family: var(--f-head); font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.c-why li span:not(.cw-ic) { display: block; margin-top: 0.2rem; font-size: 0.94rem; line-height: 1.55; color: var(--muted); }
.c-direct { display: grid; gap: 0.55rem; margin-top: 0.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.c-direct small { font-size: 0.85rem; color: var(--muted-2); }
.c-direct a { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.c-direct a:hover { color: var(--orange-text); }
.c-direct .i { width: 1.05rem; height: 1.05rem; color: var(--orange-600); flex: none; }

/* ---------- Final CTA (small) ---------- */
.c-cta-sec { padding-top: 0; }
.c-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.5rem, 4vw, 3rem); border-radius: 24px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
}
.c-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 700; text-wrap: balance; }
.c-cta p { margin-top: 0.5rem; color: #cfd0e6; font-size: 1.02rem; max-width: 40rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .c-main-in { grid-template-columns: 1fr; }
  .c-cards { grid-template-columns: 1fr 1fr; }
  .c-cards > li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .c-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .submit, .c-cta .btn { width: 100%; }
}
