/* ==========================================================================
   Contact page  (uses the site tokens from style.css: --ink --marigold --seal --line ...)
   ========================================================================== */
.ct { padding-bottom: 64px; }
.ct-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------- hero ---------------- */
.ct-hero { position: relative; overflow: hidden; text-align: center; padding: 40px 0 74px; }
.ct-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.ct-hero .ct-wrap { position: relative; }
.ct-crumbs { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-soft); margin-bottom: 26px; }
.ct-crumbs a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.ct-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.ct-crumbs i { font-style: normal; opacity: .5; }
.ct-crumbs span { font-weight: 600; color: var(--ink); }
.ct-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 16px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); color: var(--seal);
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: 1.2px; text-transform: uppercase;
}
.ct-hero h1 { margin: 0 0 14px; }
.ct-sub { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; }
.ct-sub-hi { max-width: 640px; margin: 8px auto 0; color: var(--ink-soft); font-size: .98rem; opacity: .9; }
.ct-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); }
.ct-chips span { display: inline-flex; align-items: center; gap: 7px; }
.ct-chips i { color: var(--seal); font-size: 1rem; }

/* ---------------- quick contact cards (overlap the hero) ---------------- */
.ct-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: -38px 0 30px; position: relative; z-index: 2; }
.ct-qcard {
  display: flex; flex-direction: column; gap: 3px; padding: 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; min-width: 0;
}
a.ct-qcard:hover, a.ct-qcard:focus-visible { transform: translateY(-4px); border-color: var(--marigold); box-shadow: 0 12px 28px rgba(18, 33, 63, .14); outline: none; }
.ct-qcard b { font-size: 1.02rem; line-height: 1.3; word-break: break-word; }
.ct-qcard small { color: var(--ink-soft); font-size: .84rem; }
.ct-qlabel { font-family: var(--font-mono); font-size: .7rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }
.ct-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(217, 138, 43, .16); color: var(--marigold-deep); font-size: 1.4rem;
}
.ct-ico.ct-wa { background: rgba(31, 111, 84, .14); color: var(--seal); }

/* ---------------- layout ---------------- */
.ct-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.ct-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.ct-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ct-card-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; }
.ct-card-head p { margin: 3px 0 0; color: var(--ink-soft); font-size: .92rem; }

/* ---------------- form ---------------- */
.ct-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ct-field { margin-bottom: 16px; min-width: 0; }
.ct-field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.ct-field label em { color: var(--stamp-red); font-style: normal; }
.ct-field label small { font-weight: 400; color: var(--ink-soft); }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #FBFCFB;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.ct-field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.ct-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2312213F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ct-field input:hover, .ct-field select:hover, .ct-field textarea:hover { border-color: #AEB6AC; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-color: var(--marigold); background: #fff; box-shadow: 0 0 0 3px rgba(217, 138, 43, .2); }
.ct-field.has-err input, .ct-field.has-err textarea { border-color: var(--stamp-red); background: #FFF9F9; }
.ct-field.has-err input:focus, .ct-field.has-err textarea:focus { box-shadow: 0 0 0 3px rgba(166, 58, 58, .16); }
.ct-err { display: block; min-height: 0; color: var(--stamp-red); font-size: .8rem; margin-top: 5px; }
.ct-err:empty { display: none; }
.ct-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ct-meta .ct-err { margin-top: 5px; flex: 1; }
.ct-count { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-soft); margin: 6px 0 0 auto; white-space: nowrap; }
.ct-count.is-max { color: var(--stamp-red); }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-alert { margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; background: #FDECEC; border: 1px solid #F2C4C4; color: #8A2B2B; font-size: .9rem; }
.ct-alert[hidden] { display: none; }

.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ct-btn.primary { background: var(--marigold); color: var(--ink); }
.ct-btn.primary:hover { background: var(--marigold-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(185, 111, 25, .3); }
.ct-btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.ct-btn.ghost:hover { border-color: var(--ink); }
.ct-btn.light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.ct-btn.light:hover { background: rgba(255, 255, 255, .2); }
.ct-btn:focus-visible { outline: 3px solid rgba(217, 138, 43, .45); outline-offset: 2px; }
#ct-submit { width: 100%; font-size: 1rem; padding: 14px 24px; }
#ct-submit .ct-spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(18, 33, 63, .25); border-top-color: var(--ink); border-radius: 50%; animation: ct-rot .7s linear infinite; }
#ct-submit.is-loading { pointer-events: none; opacity: .85; }
#ct-submit.is-loading i { display: none; }
#ct-submit.is-loading .ct-spin { display: inline-block; }
@keyframes ct-rot { to { transform: rotate(360deg); } }
.ct-privacy { margin: 14px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }
.ct-privacy i { color: var(--seal); margin-top: 1px; }

/* ---------------- success ---------------- */
.ct-success { display: none; text-align: center; padding: 22px 8px 10px; outline: none; }
.ct-success.is-visible { display: block; animation: ct-pop .35s ease; }
.ct-tick { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--seal); color: #fff; font-size: 2rem; box-shadow: 0 0 0 8px rgba(31, 111, 84, .14); }
.ct-success h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.6rem; }
.ct-success p { margin: 0 auto 10px; max-width: 420px; color: var(--ink-soft); }
.ct-ref code { font-family: var(--font-mono); background: var(--paper); border: 1px solid var(--line); padding: 3px 10px; border-radius: 6px; color: var(--ink); font-weight: 600; }
.ct-success .ct-btn { margin-top: 10px; }
@keyframes ct-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------- sidebar ---------------- */
.ct-aside { display: flex; flex-direction: column; gap: 18px; }
.ct-aside .ct-card { padding: 22px; }
.ct-aside h3 { margin: 0 0 14px; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; }
.ct-aside h3 i { color: var(--marigold-deep); font-size: 1.2rem; }
.ct-help, .ct-check { list-style: none; margin: 0; padding: 0; }
.ct-help li + li { margin-top: 8px; }
.ct-help button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; background: var(--paper); border: 1px solid transparent;
  border-radius: 10px; cursor: pointer; font-family: var(--font-body); color: var(--ink); transition: background .15s, border-color .15s, transform .12s;
}
.ct-help button:hover, .ct-help button:focus-visible { background: #fff; border-color: var(--marigold); transform: translateX(3px); outline: none; }
.ct-help button > i { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #fff; color: var(--marigold-deep); font-size: 1.15rem; border: 1px solid var(--line); }
.ct-help b { display: block; font-size: .92rem; }
.ct-help small { color: var(--ink-soft); font-size: .78rem; }
.ct-check li { position: relative; padding: 6px 0 6px 28px; font-size: .9rem; color: var(--ink-soft); }
.ct-check li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: rgba(31, 111, 84, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231F6F54' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.ct-private { background: linear-gradient(135deg, #EAF3EE, #F4F8F5); border-color: #CFE0D6; }
.ct-private h3 i { color: var(--seal); }
.ct-private p { margin: 0; font-size: .88rem; color: #31503F; }
.ct-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-social a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 1.15rem; text-decoration: none; transition: background .15s, transform .12s; }
.ct-social a:hover { background: var(--marigold-deep); transform: translateY(-2px); }

/* ---------------- FAQ / extra / CTA ---------------- */
.ct-faq { margin-top: 28px; }
.ct-faq .faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-extra { margin-top: 24px; }
.ct-prose { color: var(--ink-soft); line-height: 1.75; overflow-wrap: anywhere; }
.ct-prose h2, .ct-prose h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; }
.ct-prose img, .ct-prose iframe { max-width: 100%; border-radius: 10px; }
.ct-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.ct-cta {
  margin-top: 28px; padding: 30px 32px; border-radius: 18px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(circle at 92% 10%, rgba(217, 138, 43, .35), transparent 45%), var(--ink);
}
.ct-cta h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.6rem; }
.ct-cta p { margin: 0; max-width: 560px; color: #D5DBE8; font-size: .96rem; }
.ct-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .ct-main { grid-template-columns: 1fr; }
  .ct-aside { order: 2; }
}
@media (max-width: 600px) {
  .ct-wrap { padding: 0 16px; }
  .ct-hero { padding: 26px 0 64px; }
  .ct-card { padding: 20px; }
  .ct-grid2 { grid-template-columns: 1fr; }
  .ct-quick { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ct-qcard { padding: 16px; }
  .ct-cta { padding: 24px 20px; }
  .ct-cta-btns, .ct-cta-btns .ct-btn { width: 100%; }
}
@media (max-width: 380px) { .ct-quick { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ct *, .ct *::before { transition: none !important; animation: none !important; } }
