/* ==========================================================================
   IPH Contact Us page — section styles
   Scope: everything lives under .iph-contact so nothing leaks into the theme.
   The site header is NOT part of this kit; keep the existing header as-is.
   WordPress (18 Nov 2026): prefix renamed iphc -> iphct (iphc- is the Cahya widget);
   images in assets/iph/img/; theme guards at the end.
   ========================================================================== */

.iph-contact {
  /* Brand tokens */
  --iphct-navy: #1F2540;
  --iphct-text: #1F2540;
  --iphct-muted: #4B5168;
  --iphct-subtle: #5A6078;
  --iphct-placeholder: #767C92;
  --iphct-orange: #EE7B4F;           /* decorative orange (icons, Cahya) */
  --iphct-orange-btn-1: #DE6234;     /* primary button gradient top */
  --iphct-orange-btn-2: #C94F22;     /* primary button gradient bottom */
  --iphct-orange-text: #B4481F;      /* orange text on light bg (passes 4.5:1) */
  --iphct-orange-icon: #C4501F;
  --iphct-green: #1E8E4E;
  --iphct-green-text: #1E6B45;
  --iphct-green-bg: #DDF3E6;
  --iphct-line: rgba(31, 37, 64, .18);
  --iphct-card: rgba(255, 255, 255, .72); /* slight transparency: logo shows through */
  --iphct-radius: 24px;
  --iphct-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;          /* TODO: swap to site body font if different */
  --iphct-font-display: "Bricolage Grotesque", Inter, system-ui, sans-serif;       /* TODO: swap to site heading font if different */

  position: relative;
  box-sizing: border-box;
  min-height: calc(100vh - var(--iph-header-h, 0px));
  padding: 20px 24px 24px;
  font-family: var(--iphct-font);
  color: var(--iphct-text);
  background: #ECEDEF url("../img/iph-paper-emboss-1920.jpg") center center / cover no-repeat;
  background-image: image-set(url("../img/iph-paper-emboss-1920.webp") type("image/webp"), url("../img/iph-paper-emboss-1920.jpg") type("image/jpeg"));
}
@media (max-width: 767px) {
  .iph-contact {
    background-image: url("../img/iph-paper-emboss-960.jpg");
    background-image: image-set(url("../img/iph-paper-emboss-960.webp") type("image/webp"), url("../img/iph-paper-emboss-960.jpg") type("image/jpeg"));
  }
}
.iph-contact *, .iph-contact *::before, .iph-contact *::after { box-sizing: border-box; }
.iph-contact a { color: var(--iphct-orange-text); }
.iph-contact a:hover { color: #8E3713; }
.iph-contact [hidden] { display: none !important; }
.iph-contact .iphct-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.iphct-wrap { max-width: 1294px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Title row ---------- */
.iphct-title { display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: flex-end; justify-content: space-between; padding: 0 4px; }
.iphct-crumbs { font-size: 13px; color: var(--iphct-subtle); margin-bottom: 4px; }
.iphct-crumbs a { color: var(--iphct-subtle); text-decoration: none; }
.iphct-crumbs [aria-current] { color: var(--iphct-text); font-weight: 600; }
.iphct-title h1 { margin: 0; font-family: var(--iphct-font-display); font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
.iphct-lede { margin: 0 0 4px; font-size: 16px; line-height: 1.5; color: var(--iphct-muted); max-width: 560px; }

/* ---------- Layout ---------- */
.iphct-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.iphct-side { flex: 1 1 370px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.iphct-main { flex: 999 1 560px; min-width: 0; display: flex; }

/* ---------- Glass cards ---------- */
.iphct-card {
  background: var(--iphct-card);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--iphct-radius);
  box-shadow: 0 18px 50px -20px rgba(31, 37, 64, .25), inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
.iphct-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--iphct-orange-text); }
.iphct-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(145deg, #F28A5C, #DE5F2F);
  box-shadow: 0 8px 18px -6px rgba(222, 95, 47, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.iphct-ic svg { width: 22px; height: 22px; }

/* Side cards */
.iphct-chan { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.iphct-chan--wa { flex-direction: column; align-items: stretch; }
.iphct-chan__row { display: flex; gap: 14px; align-items: center; }
.iphct-chan__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.iphct-chan__value { font-family: var(--iphct-font-display); font-weight: 700; font-size: 21px; color: var(--iphct-text) !important; text-decoration: none; }
.iphct-chan__email { font-weight: 700; font-size: 15px; color: var(--iphct-text) !important; text-decoration: none; white-space: nowrap; }
.iphct-chan--office { align-items: flex-start; }
.iphct-chan__addr { font-weight: 600; font-size: 14px; line-height: 1.45; }
.iphct-chan__meta { font-size: 13px; color: var(--iphct-muted); }
.iphct-pill { font-size: 11px; font-weight: 700; color: var(--iphct-green-text); background: var(--iphct-green-bg); padding: 2px 8px; border-radius: 999px; }
.iphct-iconbtn {
  all: unset; flex: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; background: rgba(31, 37, 64, .06); color: var(--iphct-text);
}
.iphct-iconbtn:hover { background: rgba(31, 37, 64, .1); }
.iphct-iconbtn:focus-visible { outline: 3px solid rgba(232, 105, 58, .5); outline-offset: 2px; }
.iphct-iconbtn svg { width: 18px; height: 18px; }
.iphct-copied { font-size: 12px; font-weight: 600; color: var(--iphct-green-text); }
.iphct-faq { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.iphct-faq a { font-weight: 600; font-size: 14px; color: var(--iphct-text); text-decoration: none; display: flex; justify-content: space-between; padding: 7px 0; }
.iphct-faq a span { color: var(--iphct-orange-text); }
.iphct-faq a:hover { color: var(--iphct-orange-text); }

/* ---------- Buttons ---------- */
.iphct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; border: 0; text-decoration: none !important; cursor: pointer;
  font: 700 15px var(--iphct-font); height: 44px; padding: 0 20px; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.iphct-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.iphct-btn:active { transform: translateY(0); }
.iphct-btn:focus-visible { outline: 3px solid rgba(232, 105, 58, .5); outline-offset: 3px; }
.iphct-btn svg { width: 20px; height: 20px; flex: none; }
.iphct-btn--navy { background: var(--iphct-navy); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(31, 37, 64, .6); }
.iphct-btn--ghost { background: rgba(255, 255, 255, .9); color: var(--iphct-text) !important; box-shadow: inset 0 0 0 1px var(--iphct-line), 0 8px 18px -10px rgba(31, 37, 64, .3); }
.iphct-btn--primary {
  height: 54px; padding: 0 32px; font-size: 18px; min-width: 210px; color: #fff !important;
  background: linear-gradient(180deg, var(--iphct-orange-btn-1), var(--iphct-orange-btn-2));
  box-shadow: 0 14px 28px -10px rgba(201, 79, 34, .65), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.iphct-btn--primary[aria-busy="true"] { opacity: .75; pointer-events: none; }
.iphct-btn--cahya { padding: 0 18px 0 6px; font-size: 14px; }
.iphct-cahya-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--iphct-orange); display: flex; align-items: center; justify-content: center; }
.iphct-cahya-dot svg { width: 20px; height: 20px; }
.iphct-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: iphct-spin .8s linear infinite; }
@keyframes iphct-spin { to { transform: rotate(360deg); } }

/* ---------- Form ---------- */
.iphct-form { flex: 1; min-width: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; border-radius: 28px; margin: 0; }
.iphct-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.iphct-types legend { padding: 0; margin: 0 0 10px; font-family: var(--iphct-font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; color: var(--iphct-text); }
.iphct-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.iphct-chip { position: relative; cursor: pointer; display: flex; gap: 8px; align-items: center; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(31, 37, 64, .14); transition: box-shadow .15s, background .15s; }
.iphct-chip:hover { background: rgba(255, 255, 255, .9); }
.iphct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.iphct-chip svg { width: 20px; height: 20px; flex: none; color: var(--iphct-orange-icon); }
.iphct-chip span { font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--iphct-text); }
.iphct-chip:has(input:checked) { background: rgba(255, 240, 232, .95); box-shadow: inset 0 0 0 2px #E8693A, 0 8px 20px -10px rgba(232, 105, 58, .5); }
.iphct-chip.is-checked { background: rgba(255, 240, 232, .95); box-shadow: inset 0 0 0 2px #E8693A, 0 8px 20px -10px rgba(232, 105, 58, .5); } /* JS fallback for browsers without :has() */
.iphct-chip:has(input:focus-visible) { outline: 3px solid rgba(232, 105, 58, .5); outline-offset: 2px; }
.iphct-route { margin: 10px 0 0; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--iphct-muted); }
.iphct-route svg { width: 15px; height: 15px; flex: none; color: var(--iphct-green-text); }
.iphct-route strong { color: var(--iphct-text); }

.iphct-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.iphct-label { display: block; font-size: 13px; font-weight: 600; color: var(--iphct-text); margin: 0 0 5px; }
.iphct-opt { font-weight: 400; color: var(--iphct-subtle); }
.iphct-input {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; margin: 0;
  border: 1px solid var(--iphct-line); background: rgba(255, 255, 255, .9);
  font: 400 15px var(--iphct-font); color: var(--iphct-text); outline: none; box-shadow: none;
}
.iphct-input::placeholder { color: var(--iphct-placeholder); }
.iphct-input:focus { border-color: #E8693A; box-shadow: 0 0 0 4px rgba(232, 105, 58, .18); }
.iphct-input[aria-invalid="true"] { border-color: #C0362C; box-shadow: 0 0 0 3px rgba(192, 54, 44, .12); }
textarea.iphct-input { height: 84px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.iphct-input { padding-right: 8px; }
.iphct-phone { display: flex; gap: 6px; }
.iphct-phone select { width: 84px; flex: none; padding: 0 6px; }
.iphct-err { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #B42318; }
.iphct-err:empty { display: none; }

/* Conditional panels */
.iphct-cond { padding: 14px 16px; border-radius: 14px; background: rgba(255, 246, 240, .55); border: 1px solid rgba(232, 105, 58, .22); }
.iphct-cond.iphct-row { gap: 14px; }
.iphct-cahya { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.iphct-cahya__copy { display: flex; flex-direction: column; gap: 3px; flex: 1 1 320px; min-width: 0; }
.iphct-cahya__title { font-weight: 700; font-size: 15px; }
.iphct-cahya__text { font-size: 13px; line-height: 1.45; color: var(--iphct-muted); }
.iphct-cahya__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.iphct-cahya__fallback { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 12px; border-top: 1px solid rgba(232, 105, 58, .18); }
.iphct-cahya__fallback label { font-size: 13px; color: var(--iphct-muted); flex: 1 1 260px; }
.iphct-cahya__fallback .iphct-input { flex: 1 1 280px; width: auto; }
.iph-contact.from-cahya .iphct-cahya__copy,
.iph-contact.from-cahya .iphct-cahya__actions { display: none; }
.iph-contact.from-cahya .iphct-cahya__fallback { padding-top: 0; border-top: 0; }

/* Segmented control (radio) */
.iphct-seg { display: flex; gap: 4px; padding: 4px; height: 44px; width: 230px; border-radius: 12px; background: rgba(31, 37, 64, .07); }
.iphct-seg label { flex: 1; position: relative; cursor: pointer; }
.iphct-seg input { position: absolute; opacity: 0; pointer-events: none; }
.iphct-seg span { display: block; height: 36px; text-align: center; border-radius: 9px; font: 600 14px/36px var(--iphct-font); color: var(--iphct-muted); transition: background .15s, box-shadow .15s; }
.iphct-seg input:checked + span { background: #fff; color: var(--iphct-text); box-shadow: 0 2px 8px rgba(31, 37, 64, .15); }
.iphct-seg input:focus-visible + span { outline: 3px solid rgba(232, 105, 58, .5); outline-offset: 1px; }

.iphct-submit { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; justify-content: space-between; }
.iphct-turnstile { min-height: 65px; min-width: 300px; }
.iphct-formerr { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FEF3F2; color: #B42318; font-size: 14px; font-weight: 600; }
.iphct-formerr:empty { display: none; }
.iphct-legal { margin: -4px 0 0; font-size: 12px; color: var(--iphct-subtle); }
.iphct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Confirmation ---------- */
.iphct-done { flex: 1; min-width: 0; padding: 28px 36px; border-radius: 28px; display: flex; flex-direction: column; justify-content: center; gap: 22px; outline: none; }
.iphct-done__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.iphct-done__tick { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #34B26E, #1E8E4E); box-shadow: 0 14px 30px -10px rgba(30, 142, 78, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.iphct-done__tick svg { width: 30px; height: 30px; }
.iphct-done h2 { margin: 0; font-family: var(--iphct-font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; }
.iphct-done__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--iphct-muted); max-width: 540px; }
.iphct-done__text strong { color: var(--iphct-text); }
.iphct-ref { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(31, 37, 64, .06); font-size: 13px; color: var(--iphct-muted); }
.iphct-ref strong { color: var(--iphct-text); letter-spacing: .04em; }
.iphct-next { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(31, 37, 64, .08); }
.iphct-steps { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.iphct-steps li { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.45; }
.iphct-steps li b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--iphct-navy); color: #fff; font: 700 13px var(--iphct-font); display: flex; align-items: center; justify-content: center; }
.iphct-done__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.iphct-done__actions .iphct-btn--primary, .iphct-done__actions .iphct-btn--ghost { height: 54px; font-size: 18px; padding: 0 28px; }
.iphct-linkbtn { all: unset; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--iphct-orange-text); text-decoration: underline; padding: 8px; }
.iphct-linkbtn:focus-visible { outline: 3px solid rgba(232, 105, 58, .5); border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .iphct-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .iphct-chip { grid-column: span 2; }
  .iphct-chip:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 960px) {
  .iphct-main { order: -1; }              /* phones/tablets: form first, contact cards after */
  .iphct-side { flex-basis: 100%; }
}
@media (max-width: 767px) {
  .iph-contact { padding: 16px 14px 96px; }  /* bottom room for the Cahya bubble */
  .iphct-title h1 { font-size: 34px; }
  .iphct-lede { font-size: 15px; }
  .iphct-form, .iphct-done { padding: 20px 16px; border-radius: 22px; }
  .iphct-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .iphct-chip, .iphct-chip:nth-child(n+4) { grid-column: auto; }
  .iphct-chip:last-child { grid-column: 1 / -1; }
  .iphct-input, .iphct-phone select { height: 48px; font-size: 16px; }  /* 16px stops iOS zoom-on-focus */
  .iphct-seg { width: 100%; height: 48px; }
  .iphct-seg span { height: 40px; line-height: 40px; }
  .iphct-submit { flex-direction: column; align-items: stretch; }
  .iphct-turnstile { min-width: 0; }
  .iphct-btn--primary { width: 100%; }
  .iphct-done h2 { font-size: 24px; }
  .iphct-done__actions .iphct-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .iph-contact * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   WordPress additions (18 Nov 2026): the Homez theme styles inputs, labels,
   headings and lists globally, so the kit values are restated here.
   ========================================================================== */
.iph-contact h1, .iph-contact h2, .iph-contact h3 { text-transform: none; }
.iph-contact .iphct-title h1 { margin: 0; font-family: var(--iphct-font-display); font-weight: 800; font-size: 44px; line-height: 1.05; color: var(--iphct-text); }
.iph-contact .iphct-input { height: 44px; padding: 0 12px; margin: 0; border-radius: 12px; border: 1px solid var(--iphct-line); background: rgba(255, 255, 255, .9); box-shadow: none; font: 400 15px var(--iphct-font); color: var(--iphct-text); line-height: normal; }
.iph-contact textarea.iphct-input { height: 84px; padding: 10px 12px; line-height: 1.5; }
.iph-contact .iphct-input:focus { border-color: #E8693A; box-shadow: 0 0 0 4px rgba(232, 105, 58, .18); }
.iph-contact .iphct-input[aria-invalid="true"] { border-color: #C0362C; box-shadow: 0 0 0 3px rgba(192, 54, 44, .12); }
.iph-contact .iphct-label { margin: 0 0 5px; }
.iph-contact .iphct-steps, .iph-contact .iphct-steps li { margin: 0; }
.iph-contact p { margin-bottom: 0; }
.iph-contact .iphct-btn { line-height: 1; text-transform: none; }
@media (max-width: 767px) {
  .iph-contact .iphct-title h1 { font-size: 34px; }
  .iph-contact .iphct-input, .iph-contact .iphct-phone select { height: 48px; font-size: 16px; }
  .iph-contact textarea.iphct-input { height: 96px; }
}
