/* =============================================
   CONTACT PAGE (page-contact.php)  v2.0
   Scoped to .cp-* classes. Loads only on the contact page.
   Signature element: the contact "acknowledgement slip" with a live
   office-hours rubber stamp. Everything else stays quiet.
   ============================================= */

.cp-page {
  --cp-ink:     #0F2D52;
  --cp-deep:    #091e38;
  --cp-gold:    #D9A441;
  --cp-paper:   #FDFDFB;
  --cp-rule:    #e6eaf1;
  --cp-open:    #1b8a4c;
  --cp-closed:  #b4442f;
  --cp-wa:      #1faa59;
}

.cp-page :focus-visible {
  outline: 3px solid var(--cp-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Buttons ─────────────────────────────────── */
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  padding: 14px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.cp-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.cp-btn-wa        { background: var(--cp-wa); color: #fff; box-shadow: 0 8px 24px rgba(31,170,89,.32); }
.cp-btn-wa:hover  { background: #17924b; }
.cp-btn-ghost       { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.cp-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.cp-btn-primary       { background: var(--cp-ink); color: #fff; }
.cp-btn-primary:hover { background: var(--primary-mid); }
.cp-btn-outline       { background: transparent; color: var(--cp-ink); border-color: var(--cp-ink); }
.cp-btn-outline:hover { background: var(--cp-ink); color: #fff; }
.cp-btn-wa-soft       { background: rgba(31,170,89,.1); color: #12733b; border-color: rgba(31,170,89,.3); }
.cp-btn-wa-soft:hover { background: rgba(31,170,89,.18); }
.cp-btn-navy        { background: var(--cp-deep); color: #fff; }
.cp-btn-navy:hover  { background: var(--cp-ink); }
.cp-btn-line        { background: transparent; color: var(--cp-deep); border-color: rgba(9,30,56,.4); }
.cp-btn-line:hover  { border-color: var(--cp-deep); background: rgba(9,30,56,.06); }

/* ── Hero ────────────────────────────────────── */
.cp-hero {
  position: relative;
  background:
    radial-gradient(70% 120% at 100% 50%, rgba(56,92,132,.55), transparent 70%),
    linear-gradient(100deg, #143a68 0%, #173f70 35%, #1c4577 65%, #2c4f78 100%);
  color: #fff;
  padding: clamp(36px, 5vw, 60px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.cp-hero > .container { position: relative; z-index: 1; }

.cp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.cp-crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.cp-crumbs a:hover { color: var(--accent-light); }

.cp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.cp-kicker {
  color: var(--accent-light);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 14px;
}
.cp-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  max-width: 18ch;
  text-wrap: balance;
}
.cp-hero-sub {
  color: rgba(255,255,255,.76);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 54ch;
}
.cp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }

.cp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
  max-width: 520px;
}
.cp-proof > div {
  flex: 1 1 0;
  min-width: 120px;
  padding-right: 18px;
}
.cp-proof > div + div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.cp-proof dt {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.1;
}
.cp-proof dd { color: rgba(255,255,255,.62); font-size: .86rem; margin-top: 4px; }

/* ── Signature: contact slip ─────────────────── */
.cp-slip {
  position: relative;
  background: var(--cp-paper);
  color: var(--text);
  border-radius: 6px 6px 16px 16px;
  padding: 34px clamp(22px, 3vw, 34px) 26px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35), 0 2px 0 rgba(255,255,255,.4) inset;
  transform: rotate(1.2deg);
  animation: cp-slip-in .8s cubic-bezier(.2,.8,.2,1) both;
}
/* perforated tear-off top edge */
.cp-slip::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 18px;
  background: radial-gradient(circle at 9px 0, transparent 7px, var(--cp-paper) 7.5px) 0 9px / 18px 18px repeat-x;
}
/* gold binding strip on the left, like a filed register page */
.cp-slip::after {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 16px;
  width: 5px;
  background: var(--cp-gold);
  border-radius: 0 3px 3px 0;
}

.cp-slip-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-right: 120px; }
.cp-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--cp-ink);
  color: var(--accent-light);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--cp-paper), 0 0 0 5px var(--cp-gold);
}
.cp-slip-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--cp-ink); line-height: 1.2; }
.cp-slip-role { color: var(--text-light); font-size: .88rem; margin-top: 3px; line-height: 1.4; }

/* the rubber stamp — live office status */
.cp-stamp {
  position: absolute;
  top: 18px; right: 18px;
  width: 112px; height: 112px;
  border-radius: 50%;
  border: 3px solid currentColor;
  box-shadow: inset 0 0 0 3px var(--cp-paper), inset 0 0 0 5px currentColor;
  color: var(--cp-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  transform: rotate(-12deg);
  font-family: var(--font-body);
  opacity: .9;
  mix-blend-mode: multiply;
  animation: cp-stamp-in .45s .55s cubic-bezier(.3,1.6,.5,1) both;
}
.cp-stamp-main {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 88px;
}
.cp-stamp-sub { font-size: .7rem; font-weight: 700; margin-top: 5px; line-height: 1.2; max-width: 84px; }
.cp-stamp.is-open   { color: var(--cp-open); }

.cp-slip-rows { display: grid; gap: 0; }
.cp-slip-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px dashed #cdd5e1;
}
.cp-slip-row dt { color: var(--text-light); font-size: .82rem; font-weight: 600; }
.cp-slip-row dd {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--cp-ink); font-weight: 600; font-size: .95rem;
  overflow-wrap: anywhere;
}
.cp-slip-row dd a { color: var(--cp-ink); text-decoration: none; border-bottom: 1px solid rgba(15,45,82,.25); }
.cp-slip-row dd a:hover { border-bottom-color: var(--cp-gold); }

.cp-copy {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 .74rem var(--font-body);
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.cp-copy svg { width: 13px; height: 13px; }
.cp-copy:hover { color: var(--cp-ink); border-color: var(--cp-ink); }
.cp-copy.is-done { color: var(--cp-open); border-color: var(--cp-open); background: #effaf3; }

.cp-slip-foot {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed #cdd5e1;
  font-size: .86rem;
  color: var(--text-light);
  line-height: 1.55;
}

@keyframes cp-slip-in  { from { opacity: 0; transform: translateY(24px) rotate(3deg); } to { opacity: 1; transform: rotate(1.2deg); } }
@keyframes cp-stamp-in { from { opacity: 0; transform: scale(1.6) rotate(-12deg); } to { opacity: .9; transform: scale(1) rotate(-12deg); } }

/* ── Enquiry ─────────────────────────────────── */
.cp-main {
  background: var(--bg);
  padding: 0 0 clamp(64px, 8vw, 100px);
}
.cp-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.cp-form-card {
  background: #fff;
  border-radius: 18px;
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 20px 60px rgba(15,45,82,.12);
  border: 1px solid var(--border);
  margin-top: clamp(-56px, -5vw, -36px);
  position: relative;
  z-index: 2;
}
.cp-form-card h2 { color: var(--cp-ink); font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.cp-lead { color: var(--text-light); font-size: .97rem; margin-bottom: 18px; line-height: 1.6; }

.cp-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cp-topic {
  font: 600 .88rem var(--font-body);
  color: var(--cp-ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.cp-topic:hover { border-color: var(--cp-ink); }
.cp-topic[aria-pressed="true"] {
  background: var(--cp-ink);
  border-color: var(--cp-ink);
  color: #fff;
}
.cp-topic[aria-pressed="true"]::before { content: "\2713"; margin-right: 6px; color: var(--accent-light); }

.cp-form-card .ct-alert { margin-bottom: 20px; }

.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-field { margin-bottom: 16px; }
.cp-field label,
.cp-pref legend {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--cp-ink);
  margin-bottom: 7px;
}
.cp-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cp-count { font-size: .76rem; color: var(--text-light); font-variant-numeric: tabular-nums; }
.cp-count.is-near { color: var(--cp-closed); }

.cp-field input,
.cp-field select,
.cp-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: #fafbfd;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
}
.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus {
  border-color: var(--cp-ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,45,82,.08);
}
.cp-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.cp-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6a7a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}
.cp-field.is-invalid input,
.cp-field.is-invalid textarea { border-color: var(--cp-closed); background: #fff8f6; }
.cp-field.is-valid input { border-color: #9cd3b2; }
.cp-err { color: var(--cp-closed); font-size: .8rem; margin-top: 5px; min-height: 0; }
.cp-err:empty { display: none; }
.cp-flash { animation: cp-flash .9s ease; }
@keyframes cp-flash { 0% { box-shadow: 0 0 0 0 rgba(217,164,65,.6); } 100% { box-shadow: 0 0 0 10px rgba(217,164,65,0); } }

.cp-pref { border: 0; margin: 4px 0 22px; padding: 0; }
.cp-pref-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-pref-opt { position: relative; cursor: pointer; }
.cp-pref-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-pref-opt span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .9rem; font-weight: 600;
  color: var(--text);
  background: #fff;
  transition: border-color .18s, background .18s, color .18s;
}
.cp-pref-opt svg { width: 17px; height: 17px; color: var(--text-light); }
.cp-pref-opt input:checked + span { border-color: var(--cp-ink); background: rgba(15,45,82,.05); color: var(--cp-ink); box-shadow: inset 0 0 0 1px var(--cp-ink); }
.cp-pref-opt input:checked + span svg { color: var(--cp-ink); }
.cp-pref-opt input:focus-visible + span { outline: 3px solid var(--cp-gold); outline-offset: 2px; }

.cp-submit-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.cp-submit { font-size: 1rem; padding: 15px 22px; }
.cp-submit[disabled] { opacity: .75; cursor: progress; }
.cp-submit.is-loading .cp-submit-label::before {
  content: "";
  display: inline-block;
  width: 15px; height: 15px;
  margin-right: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cp-spin .7s linear infinite;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }

.cp-privacy {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text-light);
  margin-top: 16px;
}
.cp-privacy svg { width: 15px; height: 15px; color: var(--cp-open); flex-shrink: 0; }

/* success state */
.cp-done { text-align: center; padding: 18px 0 6px; outline: none; }
.cp-page .cp-done:focus, .cp-page .cp-done:focus-visible { outline: none; }
.cp-done-mark {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f6ee; color: var(--cp-open);
  display: flex; align-items: center; justify-content: center;
  animation: cp-stamp-in .45s cubic-bezier(.3,1.6,.5,1) both;
}
.cp-done-mark svg { width: 34px; height: 34px; }
.cp-done p { color: var(--text-light); max-width: 46ch; margin: 0 auto 10px; line-height: 1.65; }
.cp-done-alt a { color: var(--cp-ink); font-weight: 700; }
.cp-done .cp-btn { margin-top: 14px; }

/* what happens next */
.cp-next { padding-top: clamp(28px, 4vw, 48px); }
.cp-next h2 { color: var(--cp-ink); font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-bottom: 24px; max-width: 18ch; }
.cp-steps { list-style: none; counter-reset: cp-step; position: relative; margin: 0; padding: 0; }
.cp-steps::before {
  content: "";
  position: absolute;
  left: 17px; top: 18px; bottom: 60px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--cp-gold) 0 6px, transparent 6px 12px);
}
.cp-steps li {
  counter-increment: cp-step;
  position: relative;
  padding: 0 0 26px 56px;
}
.cp-steps li:last-child { padding-bottom: 0; }
.cp-steps li::before {
  content: counter(cp-step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cp-gold);
  color: var(--cp-ink);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cp-steps h3 { font-size: 1.05rem; color: var(--cp-ink); margin-bottom: 4px; padding-top: 6px; font-family: var(--font-body); font-weight: 700; }
.cp-steps p { color: var(--text-light); font-size: .93rem; line-height: 1.6; }

/* ── Offices ─────────────────────────────────── */
.cp-offices { background: #fff; padding: clamp(64px, 8vw, 100px) 0; }
.cp-section-head { max-width: 640px; margin: 0 0 36px; }
.cp-section-head h2 { color: var(--cp-ink); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cp-section-head p { color: var(--text-light); line-height: 1.7; }

.cp-office-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
}
.cp-office-tabs { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.cp-office-tab {
  display: flex; align-items: center; gap: 14px;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color .18s, box-shadow .18s;
}
.cp-office-tab:hover { border-color: #b9c4d4; }
.cp-office-tab[aria-selected="true"] { border-color: var(--cp-ink); box-shadow: inset 4px 0 0 var(--cp-gold); }
.cp-office-tab-pin {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,45,82,.07); color: var(--cp-ink);
}
.cp-office-tab[aria-selected="true"] .cp-office-tab-pin { background: var(--cp-ink); color: var(--accent-light); }
.cp-office-tab-pin svg { width: 20px; height: 20px; }
.cp-office-tab-text { display: flex; flex-direction: column; }
.cp-office-tab-text strong { color: var(--cp-ink); font-size: 1rem; }
.cp-office-tab-text span { color: var(--text-light); font-size: .86rem; }

.cp-office-panel { padding: 14px 4px 4px; }
.cp-office-panel[hidden] { display: none; }
.cp-address { color: var(--text); line-height: 1.6; font-size: 1rem; margin-bottom: 8px; }
.cp-hours { color: var(--text-light); font-size: .9rem; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cp-hours svg { width: 16px; height: 16px; color: var(--cp-gold); flex-shrink: 0; }
.cp-office-panel .cp-btn { padding: 11px 18px; font-size: .9rem; }
.cp-office-panel .cp-btn svg { width: 16px; height: 16px; }
.cp-areas { margin-top: auto; padding-top: 18px; border-top: 1px dashed #cdd5e1; color: var(--text-light); font-size: .88rem; line-height: 1.6; }

.cp-map { position: relative; min-height: 380px; background: #e9edf3; }
.cp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* ── FAQ ─────────────────────────────────────── */
.cp-faq { background: var(--bg); padding: clamp(64px, 8vw, 100px) 0; }
.cp-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.cp-faq-head { position: sticky; top: calc(var(--nav-h) + 24px); }
.cp-faq-head h2 { color: var(--cp-ink); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; text-wrap: balance; }
.cp-faq-head p { color: var(--text-light); line-height: 1.7; }
.cp-faq-head a { color: var(--cp-ink); font-weight: 700; border-bottom: 2px solid var(--cp-gold); text-decoration: none; }

.cp-faq-list { border-top: 1px solid var(--border); }
.cp-faq-item { border-bottom: 1px solid var(--border); }
.cp-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 52px 22px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cp-ink);
  position: relative;
}
.cp-faq-item summary::-webkit-details-marker { display: none; }
.cp-faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 26px; height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background:
    linear-gradient(var(--cp-ink), var(--cp-ink)) center / 10px 2px no-repeat,
    linear-gradient(var(--cp-ink), var(--cp-ink)) center / 2px 10px no-repeat,
    #fff;
  transition: transform .25s, background-color .2s;
}
.cp-faq-item[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--cp-gold);
}
.cp-faq-item summary:hover { color: var(--primary-mid); }
.cp-faq-body { overflow: hidden; }
.cp-faq-body p { padding: 0 52px 22px 0; color: var(--text-light); line-height: 1.75; font-size: .97rem; }
.cp-faq-body a { color: var(--cp-ink); font-weight: 700; }

/* ── Closing CTA ─────────────────────────────── */
.cp-closing {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--cp-deep);
  padding: clamp(44px, 6vw, 64px) 0;
}
.cp-closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cp-closing h2 { color: var(--cp-deep); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cp-closing p { color: rgba(9,30,56,.78); max-width: 52ch; }
.cp-closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Mobile dock + toast ─────────────────────── */
.cp-dock { display: none; }

.cp-toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--cp-deep);
  color: #fff;
  font-size: .9rem; font-weight: 600;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 1001;
}
.cp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1000px) {
  .cp-hero-grid,
  .cp-main-grid,
  .cp-faq-grid { grid-template-columns: 1fr; }
  .cp-slip { max-width: 560px; }
  .cp-form-card { margin-top: -40px; }
  .cp-next { padding-top: 8px; }
  .cp-faq-head { position: static; }
  .cp-office-wrap { grid-template-columns: 1fr; }
  .cp-map { min-height: 300px; }
}

@media (max-width: 640px) {
  .cp-hero h1 { max-width: none; }
  .cp-hero-actions .cp-btn,
  .cp-closing-actions .cp-btn { width: 100%; }
  .cp-proof > div { min-width: 0; padding-right: 10px; }
  .cp-proof > div + div { padding-left: 12px; }
  .cp-proof dt { font-size: 1.35rem; }
  .cp-proof dd { font-size: .78rem; }
  .cp-slip { transform: none; animation-name: cp-slip-in-flat; padding-top: 28px; }
  .cp-slip-head { padding-right: 0; flex-direction: column; align-items: flex-start; }
  .cp-stamp { width: 92px; height: 92px; top: 14px; right: 14px; }
  .cp-stamp-main { font-size: .84rem; max-width: 72px; }
  .cp-stamp-sub { font-size: .62rem; max-width: 70px; }
  .cp-slip-row { grid-template-columns: 1fr; gap: 4px; }
  .cp-row,
  .cp-submit-row { grid-template-columns: 1fr; gap: 0 12px; }
  .cp-submit-row { gap: 10px; }
  .cp-form-card { padding: 22px 18px; border-radius: 14px; }
  .cp-faq-body p,
  .cp-faq-item summary { padding-right: 44px; }

  /* quick-action dock */
  .cp-page { padding-bottom: 70px; }
  .cp-dock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15,45,82,.1);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .cp-dock a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 4px;
    border-radius: 10px;
    font-size: .76rem; font-weight: 700;
    color: var(--cp-ink); text-decoration: none;
  }
  .cp-dock svg { width: 21px; height: 21px; }
  .cp-dock .cp-dock-wa { background: var(--cp-wa); color: #fff; }
  .cp-toast { bottom: 92px; }
}
@keyframes cp-slip-in-flat { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cp-slip, .cp-stamp, .cp-done-mark { animation: none !important; }
  .cp-page * { transition: none !important; }
  .cp-submit.is-loading .cp-submit-label::before { animation: none; }
}
