/* =========================================================
   Keystone - Contact page
   Loads after style.css, service.css and careers.css (form styles)
   ========================================================= */

/* Info cards (overlap the banner) */
.ct-info { position: relative; z-index: 2; margin-top: -40px; }
.ct-info__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1180px; }
.ct-card { background: #fff; border-radius: 18px; padding: 28px 24px 26px; border: 1px solid #edf0f4; box-shadow: 0 14px 36px rgba(11,58,92,.1); display: flex; flex-direction: column; }
.ct-card.ktp-reveal { transition: opacity .7s var(--ktp-ease) var(--rd, 0s), transform .7s var(--ktp-ease) var(--rd, 0s), box-shadow .35s; }
.ct-card.ktp-reveal.is-in:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(0,71,187,.16); transition: transform .35s var(--ktp-ease), box-shadow .35s; }
.ct-card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--ktp-hero-tint); margin-bottom: 18px; transition: background .3s, transform .45s var(--ktp-ease); }
.ct-card__icon svg { width: 26px; fill: var(--ktp-primary); transition: fill .3s; }
.ct-card:hover .ct-card__icon { background: var(--ktp-primary); transform: rotate(-8deg); }
.ct-card:hover .ct-card__icon svg { fill: #fff; }
.ct-card h2 { font-size: 17px; color: var(--sv-navy); margin-bottom: 8px; }
.ct-card address, .ct-card p { font-style: normal; font-size: 15px; line-height: 1.7; color: #5b6573; margin: 0 0 14px; word-break: break-word; }
.ct-card p a { color: var(--ktp-heading); font-weight: 600; transition: color .2s; }
.ct-card p a:hover { color: var(--ktp-primary); }
.ct-card__link { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; font: 600 14px var(--ktp-font); color: var(--ktp-primary); display: inline-flex; gap: 6px; align-items: center; }
.ct-card__link span { transition: transform .3s var(--ktp-ease); }
.ct-card__link:hover span { transform: translateX(5px); }
.ct-copy.is-done { color: #1a7f37; }

.ct-hours { margin: 0 0 12px; display: grid; gap: 6px; }
.ct-hours div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding-bottom: 6px; border-bottom: 1px dashed #e3e8ef; }
.ct-hours dt { color: #5b6573; }
.ct-hours dd { margin: 0; font-weight: 600; color: var(--ktp-heading); }
.ct-status { margin: auto 0 0 !important; font-size: 13px !important; display: flex; align-items: center; gap: 8px; }
.ct-status span { display: inline-block; padding: 3px 10px; border-radius: 50px; font-weight: 600; font-size: 12px; }
.ct-status.is-open span { background: #e6f6ec; color: #1a7f37; }
.ct-status.is-closed span { background: #fdecea; color: #c5221f; }

/* Form section */
.ct-form-sec { padding: 80px 0 90px; }
.ct-form-sec__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; max-width: 1140px; }
.ct-form-sec__info h2 { color: var(--sv-navy); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.8px; }
.ct-form-sec__info > p { font-size: 16px; line-height: 1.8; color: #5b6573; margin: 0 0 22px; }
.ct-topics { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ct-topics a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--ktp-bg-light); font-weight: 500; color: var(--sv-navy); transition: background .3s, color .3s, padding .3s; }
.ct-topics a::after { content: "\27F6"; color: var(--ktp-primary); transition: transform .3s var(--ktp-ease), color .3s; }
.ct-topics a:hover { background: var(--ktp-primary); color: #fff; padding-left: 24px; }
.ct-topics a:hover::after { color: #fff; transform: translateX(4px); }
.ct-note { font-size: 14.5px !important; padding: 14px 16px; border-left: 4px solid var(--ktp-primary); border-radius: 0 10px 10px 0; background: var(--ktp-hero-tint); }
.ct-note a { color: var(--ktp-primary); font-weight: 600; }

/* Service pills (checkbox chips) */
.ct-label { font-size: 14px; font-weight: 600; color: var(--sv-navy); }
.ct-label > span { color: #d93025; }
.ct-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-pills label { cursor: pointer; }
.ct-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-pills span { display: inline-block; padding: 9px 16px; border-radius: 50px; border: 1.5px solid #dfe5ee; font-size: 14px; color: var(--ktp-text); background: #fbfcfe; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ktp-ease); }
.ct-pills label:hover span { border-color: var(--ktp-primary); transform: translateY(-2px); }
.ct-pills input:checked + span { background: var(--ktp-primary); border-color: var(--ktp-primary); color: #fff; }
.ct-pills input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0,71,187,.2); }
.cr-field.is-error .ct-pills span { border-color: #f1a8a2; }

/* Map */
.ct-map { position: relative; height: 460px; background: #e9eef4; }
.ct-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.ct-map__card { position: absolute; left: max(20px, calc((100% - 1140px) / 2)); top: 50%; transform: translateY(-50%); width: 300px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(11,58,92,.22); display: grid; gap: 8px; }
.ct-map__card strong { color: var(--sv-navy); font-size: 17px; }
.ct-map__card span { font-size: 14.5px; line-height: 1.6; color: #5b6573; margin-bottom: 8px; }
.ct-map__card .ktp-btn { justify-self: start; }

/* Responsive */
@media (max-width: 1100px) { .ct-info__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .ct-form-sec__inner { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) {
  .ct-info { margin-top: -24px; }
  .ct-info__grid { grid-template-columns: 1fr; }
  .ct-form-sec { padding: 56px 0 64px; }
  .ct-map { height: auto; }
  .ct-map iframe { height: 320px; }
  .ct-map__card { position: static; transform: none; width: auto; border-radius: 0; box-shadow: none; }
}
.ct-status span { white-space: nowrap; }
