/* =========================================================
   Contact page (revamp): simple form first, quick contacts beside it.
   Uses the shared banner styles from about.css; scoped under .ct-main.
   ========================================================= */
.ct-main .ct-hero {
  padding-bottom: clamp(36px, 5vw, 56px)
}

.ct-main .ct-hero__sub {
  color: #D5E0F5;
  max-width: 56ch;
  margin-top: 12px;
  font-size: clamp(14px, 1.2vw, 16.5px)
}

.ct-main .ct-body {
  padding-top: clamp(28px, 4vw, 48px)
}

.ct-main .ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start
}

.ct-main .ct-card {
  background: #fff;
  border-radius: var(--rad);
  box-shadow: var(--sh), 0 0 0 1px var(--line)
}

/* ---------- Form ---------- */
.ct-main .ct-formcard {
  padding: clamp(22px, 3vw, 40px);
  margin-top: calc(-1 * clamp(40px, 5vw, 72px));
  position: relative;
  z-index: 2
}

.ct-main .ct-title {
  font-size: clamp(22px, 2.2vw, 28px) !important;
  font-weight: 600
}

.ct-main .ct-lead {
  color: var(--mut);
  font-size: 14px;
  margin-top: 6px !important
}

.ct-main .req {
  color: #D63A3A
}

.ct-main .ct-topics {
  border: 0;
  padding: 0;
  margin: 24px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.ct-main .ct-topics legend {
  padding: 0;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  width: 100%
}

.ct-main .ct-topics label {
  position: relative;
  cursor: pointer
}

.ct-main .ct-topics input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.ct-main .ct-topics span {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 99px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mut);
  transition: background .2s, color .2s, box-shadow .2s
}

.ct-main .ct-topics label:hover span {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2)
}

.ct-main .ct-topics input:checked+span {
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--blue);
  font-weight: 600
}

.ct-main .ct-topics input:focus-visible+span {
  outline: 3px solid rgba(45, 107, 255, .35);
  outline-offset: 2px
}

.ct-main .ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.ct-main .ct-fld {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px
}

.ct-main .ct-fld label {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 7px
}

.ct-main .ct-fld input,
.ct-main .ct-fld textarea {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 13px 15px;
  font: 400 15px/1.5 var(--font);
  color: var(--ink);
  transition: box-shadow .2s, background .2s;
  -webkit-appearance: none
}

.ct-main .ct-fld textarea {
  resize: vertical;
  min-height: 120px
}

.ct-main .ct-fld input::placeholder,
.ct-main .ct-fld textarea::placeholder {
  color: var(--faint)
}

.ct-main .ct-fld input:hover,
.ct-main .ct-fld textarea:hover {
  box-shadow: inset 0 0 0 1px var(--line2)
}

.ct-main .ct-fld input:focus,
.ct-main .ct-fld textarea:focus {
  outline: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(45, 107, 255, .12)
}

.ct-main .ct-err {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #D63A3A
}

.ct-main .ct-fld.is-bad input,
.ct-main .ct-fld.is-bad textarea {
  box-shadow: inset 0 0 0 1.5px #D63A3A;
  background: #FFF6F6
}

.ct-main .ct-fld.is-bad .ct-err {
  display: block
}

.ct-main .ct-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding: 16px 24px;
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font: 700 15px/1.2 var(--font);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s
}

.ct-main .ct-submit svg {
  width: 18px;
  height: 18px;
  transition: transform .25s
}

.ct-main .ct-submit:hover {
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(45, 107, 255, .28);
  transform: translateY(-1px)
}

.ct-main .ct-submit:hover svg {
  transform: translateX(4px)
}

.ct-main .ct-submit:disabled {
  opacity: .7;
  cursor: progress
}

.ct-main .ct-submit.is-busy svg {
  animation: ctSpin .8s linear infinite
}

@keyframes ctSpin {
  to {
    transform: rotate(360deg)
  }
}

.ct-main .ct-note {
  margin-top: 12px !important;
  text-align: center;
  font-size: 12.5px;
  color: var(--faint)
}

/* ---------- Success ---------- */
.ct-main .ct-done {
  text-align: center;
  padding: clamp(20px, 4vw, 48px) 0;
  outline: 0
}

.ct-main .ct-done__ic {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(38, 166, 91, .12);
  color: #26A65B;
  margin-bottom: 18px;
  animation: ctPop .5s var(--ease) both
}

.ct-main .ct-done__ic svg {
  width: 34px;
  height: 34px
}

@keyframes ctPop {
  from {
    transform: scale(.5);
    opacity: 0
  }
}

.ct-main .ct-done .ct-lead {
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto
}

.ct-main .ct-done__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px
}

.ct-main .ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  font: 600 14px/1.2 var(--font);
  cursor: pointer;
  transition: background .25s, box-shadow .25s
}

.ct-main .ct-btn svg {
  width: 18px;
  height: 18px
}

.ct-main .ct-btn--wa {
  background: var(--wa);
  color: #fff
}

.ct-main .ct-btn--wa:hover {
  background: #189A47
}

.ct-main .ct-btn--ghost {
  background: var(--soft);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line)
}

.ct-main .ct-btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--navy)
}

/* ---------- Quick contact ---------- */
.ct-main .ct-side {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.ct-main .ct-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--rad);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  transition: box-shadow .25s, transform .25s
}

.ct-main .ct-quick:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh), 0 0 0 1px var(--line2)
}

.ct-main .ct-quick__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue)
}

.ct-main .ct-quick__ic svg {
  width: 20px;
  height: 20px
}

.ct-main .ct-quick b {
  display: block;
  font-weight: 600;
  font-size: 15px
}

.ct-main .ct-quick small {
  display: block;
  color: var(--mut);
  font-size: 13px;
  word-break: break-word
}

.ct-main .ct-quick__go {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex: none;
  color: var(--faint);
  transition: transform .25s, color .25s
}

.ct-main .ct-quick:hover .ct-quick__go {
  transform: translateX(3px);
  color: var(--navy)
}

.ct-main .ct-quick--wa {
  background: var(--wa);
  box-shadow: none;
  color: #fff
}

.ct-main .ct-quick--wa .ct-quick__ic {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

.ct-main .ct-quick--wa small,
.ct-main .ct-quick--wa .ct-quick__go {
  color: rgba(255, 255, 255, .85)
}

.ct-main .ct-quick--wa:hover {
  box-shadow: 0 14px 30px rgba(31, 175, 84, .3)
}

.ct-main .ct-quick--wa:hover .ct-quick__go {
  color: #fff
}

.ct-main .ct-visit {
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line)
}

.ct-main .ct-map {
  aspect-ratio: 16/9;
  background: var(--soft)
}

.ct-main .ct-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.85)
}

.ct-main .ct-visit__body {
  padding: 16px 18px;
  font-size: 14px
}

.ct-main .ct-visit__body b {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px
}

.ct-main .ct-visit address {
  font-style: normal;
  color: var(--mut);
  line-height: 1.6
}

.ct-main .ct-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--blue)
}

.ct-main .ct-link:hover {
  text-decoration: underline
}

.ct-main .ct-offices {
  box-shadow: 0 0 0 1px var(--line)
}

.ct-main .ct-offices summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px
}

.ct-main .ct-offices summary::-webkit-details-marker {
  display: none
}

.ct-main .ct-offices summary small {
  font-weight: 400;
  color: var(--mut);
  font-size: 13px
}

.ct-main .ct-offices summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
  transition: transform .25s
}

.ct-main .ct-offices[open] summary::after {
  transform: rotate(45deg)
}

.ct-main .ct-offices ul {
  list-style: none;
  margin: 0;
  padding: 0 18px 14px
}

.ct-main .ct-offices li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--mut)
}

.ct-main .ct-offices li b {
  width: 46px;
  color: var(--ink);
  font-weight: 600
}

.ct-main .ct-offices li a {
  margin-left: auto;
  font-weight: 600;
  color: var(--navy)
}

/* ---------- Responsive ---------- */
@media (max-width:900px) {
  .ct-main .ct-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:560px) {
  .ct-main .ct-row {
    grid-template-columns: 1fr;
    gap: 0
  }

  .ct-main .ct-formcard {
    padding: 20px 18px
  }

  .ct-main .ct-topics span {
    padding: 8px 13px;
    font-size: 13px
  }

  .ct-main .ct-fld input,
  .ct-main .ct-fld textarea {
    font-size: 16px
  }

  /* stops iOS zoom on focus */
}

@media (prefers-reduced-motion:reduce) {
  .ct-main .ct-done__ic {
    animation: none
  }
}

/* ---------- Contact form: "Thank you" notice after sending ----------
   Same green box as the home page Smart Quote (.form__ok in style.css),
   shown under the submit button while the form stays on the page. */
.wpcf7 .ct-ok {
  display: block;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #E9F8EF;
  border: 1px solid #BCE8CD;
  color: #14632f;
  font-size: 17px;
  line-height: 1.75;
  animation: ctOkIn .35s ease both;
}
.wpcf7 .ct-ok b {
  font-weight: 800;
}
.wpcf7 .ct-ok .link-arrow {
  color: #14632f;
  font-size: 16px;
  font-weight: 800;
}
@keyframes ctOkIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* CF7's own one-line "Thank you" text is replaced by the box above */
.wpcf7 form.sent .wpcf7-response-output {
  display: none !important;
}

/* Submit button while it reads "Sent ✓" */
.wpcf7 [type=submit].is-sent {
  pointer-events: none;
}

@media (prefers-reduced-motion:reduce) {
  .wpcf7 .ct-ok { animation: none; }
}