/* =====================================================================
   SEFORAA – halaman Kontak (kontak.php)
   Marun Tilyanpristka sebagai warna utama; warna aplikasi (--c1/--c2,
   sama dengan mega menu) sebagai aksen chip pilihan aplikasi.
   Keadaan tersembunyi HANYA bila <html> punya .has-kto dan belum .kto-fallback.
   ===================================================================== */

.kt-page {
  --kt-ink: #2B2B2B; --kt-slate: #5E7176; --kt-paper: #F7F2EF; --kt-line: rgba(51, 51, 51, .12);
  --kt-maroon: #69131B; --kt-deep: #4A0C13; --kt-pink: #F2B8BE;
  --kt-spring: cubic-bezier(.34, 1.56, .64, 1); --kt-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- hero ---------- */
.kt-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(560px, 80vh, 820px); padding: 72px 0 88px; color: #fff; isolation: isolate;
  background: radial-gradient(60% 90% at 90% 0%, rgba(199, 74, 86, .4), transparent 70%), linear-gradient(160deg, #7A1620 0%, var(--kt-deep) 100%);
}
.kt-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent); mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent);
}
.kt-hero > .container { width: 100%; }
.kt-crumbs { display: flex; gap: 10px; list-style: none; margin: 0 0 clamp(24px, 4vh, 44px); padding: 0; font-size: 15px; color: rgba(255, 255, 255, .7); }
.kt-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.kt-crumbs a { color: rgba(255, 255, 255, .8); }
.kt-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.kt-h1 { margin: 0 0 28px; max-width: 14ch; font-size: clamp(42px, 6vw, 88px); line-height: 1.03; font-weight: 600; letter-spacing: -.035em; color: #fff; }
.kt-lead { margin: 0; max-width: 50ch; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.65; color: rgba(255, 255, 255, .85); }
.kt-quick { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.kt-quick a {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
  transition: background-color .3s ease, transform .45s var(--kt-spring), border-color .3s ease;
}
.kt-quick a:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); transform: translateX(6px); }
.kt-quick small { display: block; font-size: 12.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .66); }
.kt-quick b { display: block; margin-top: 2px; font-size: 20px; font-weight: 600; }
.kt-quick-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--kt-maroon); background: #fff; }
.kt-quick-ico svg { width: 22px; height: 22px; }

/* ---------- formulir + langkah ---------- */
.kt-main { padding: 100px 0 110px; background: var(--kt-paper); }
.kt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.kt-side { position: sticky; top: 110px; }
.kt-h2 { margin: 0 0 28px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -.015em; color: var(--kt-ink); }
.kt-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kt-maroon); }
.kt-steps { position: relative; display: grid; gap: 14px; list-style: none; margin: 0 0 34px; padding: 0; }
.kt-steps::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background-image: linear-gradient(180deg, rgba(105, 19, 27, .4) 50%, transparent 50%); background-size: 2px 10px; }
.kt-step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.kt-step-no {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff;
  font-size: 16px; font-weight: 700; color: var(--kt-maroon); box-shadow: 0 0 0 1.5px rgba(105, 19, 27, .3); transition: background .35s ease, color .35s ease;
}
.kt-step:hover .kt-step-no { color: #fff; background: var(--kt-maroon); }
.kt-step b { display: block; margin: 8px 0 4px; font-size: 17px; font-weight: 600; color: var(--kt-ink); }
.kt-step span:not(.kt-step-no) { display: block; font-size: 15px; line-height: 1.55; color: var(--kt-slate); }

.kt-self { padding: 24px 24px 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--kt-line); }
.kt-self-tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--kt-maroon); background: #F9EDEE; }
.kt-self p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--kt-slate); }
.kt-self p b { color: var(--kt-ink); font-weight: 600; }
.kt-self-links { display: flex; flex-wrap: wrap; gap: 8px; }
.kt-self-links a {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px; background: color-mix(in srgb, var(--c1) 9%, #fff);
  font-size: 14px; font-weight: 600; color: var(--kt-ink); transition: background-color .3s ease, transform .4s var(--kt-spring);
}
.kt-self-links a:hover { color: var(--kt-ink); background: color-mix(in srgb, var(--c1) 18%, #fff); transform: translateY(-2px); }
.kt-self-links .sm-ico { width: 30px; height: 30px; border-radius: 9px; }
.kt-self-links .sm-ico svg { width: 16px; height: 16px; }

.kt-card { padding: 38px 38px 34px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--kt-line), 0 40px 70px -48px rgba(105, 19, 27, .55); }
.kt-card-title { margin: 0 0 24px; font-size: 26px; font-weight: 500; color: var(--kt-ink); }
.kt-apps { margin: 0 0 22px; padding: 0; border: 0; }
.kt-apps legend { float: left; width: 100%; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--kt-ink); }
.kt-apps legend em { font-style: normal; font-weight: 400; color: var(--kt-slate); }
.kt-chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.kt-chip { position: relative; margin: 0; }
.kt-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.kt-chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; background: var(--kt-paper);
  font-size: 14px; font-weight: 500; color: var(--kt-ink); transition: background .3s ease, color .3s ease, transform .4s var(--kt-spring), box-shadow .3s ease;
}
.kt-chip i { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(140deg, var(--c1), var(--c2)); transition: background .3s ease; }
.kt-chip:hover span { transform: translateY(-2px); }
.kt-chip input:checked + span { color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 18px -12px var(--c1); }
.kt-chip input:checked + span i { background: #fff; }
.kt-chip input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 2px; }

.kt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kt-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.kt-field-wide { grid-column: 1 / -1; }
.kt-field > span { font-size: 13.5px; font-weight: 600; color: var(--kt-ink); }
.kt-field em { font-style: normal; font-weight: 400; color: var(--kt-slate); }
.kt-field input, .kt-field textarea {
  width: 100%; padding: 0 14px; border: 1.5px solid rgba(51, 51, 51, .14); border-radius: 12px; background: #fff; font-size: 15px; color: var(--kt-ink);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.kt-field input { height: 50px; }
.kt-field textarea { padding: 14px; resize: vertical; min-height: 130px; line-height: 1.5; }
.kt-field input:focus, .kt-field textarea:focus { outline: none; border-color: var(--kt-maroon); box-shadow: 0 0 0 4px rgba(105, 19, 27, .12); }
.kt-field .g-invalid, .kt-field [aria-invalid="true"] { border-color: #C2362F; box-shadow: 0 0 0 4px rgba(194, 54, 47, .12); }
.kt-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin-top: 22px; border: 0; border-radius: 12px; cursor: pointer;
  font-size: 16px; font-weight: 600; color: #fff; background: var(--kt-maroon); transition: background-color .3s ease;
}
.kt-submit:hover { background: #7E1822; }
.kt-submit svg { transition: transform .35s var(--kt-out); }
.kt-submit:hover svg { transform: translateX(4px); }
.kt-submit[disabled] { opacity: .65; cursor: progress; }
.kt-msg { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; }
.kt-msg.success { padding: 12px 14px; border-radius: 12px; color: #12603A; background: #E7F6EC; }
.kt-msg.error { padding: 12px 14px; border-radius: 12px; color: #9A1C14; background: #FDECEA; }
.kt-msg.info { color: var(--kt-slate); }
.kt-msg:empty { display: none; }

/* ---------- kantor + peta ---------- */
.kt-office { padding: 0 0 120px; background: var(--kt-paper); }
.kt-office-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.kt-office-card { padding: 40px 36px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--kt-line); }
.kt-office-card .kt-h2 { margin-bottom: 24px; font-size: clamp(24px, 2.2vw, 30px); }
.kt-office-list { display: grid; gap: 18px; list-style: none; margin: 0 0 26px; padding: 0; }
.kt-office-list li { display: flex; gap: 16px; align-items: flex-start; }
.kt-office-list .kt-quick-ico { color: #fff; background: var(--kt-maroon); }
.kt-office-list small { display: block; margin-bottom: 2px; font-size: 12.5px; letter-spacing: .04em; color: var(--kt-slate); }
.kt-office-list a { font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--kt-ink); }
.kt-office-list a:hover { color: var(--kt-maroon); }
.kt-route { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--kt-maroon); text-decoration: underline; text-underline-offset: 4px; }
.kt-route:hover { color: var(--kt-maroon); }
.kt-route svg { transition: transform .35s var(--kt-out); }
.kt-route:hover svg { transform: translateX(3px); }
.kt-map { min-height: 380px; overflow: hidden; border-radius: 28px; box-shadow: 0 0 0 1px var(--kt-line); }
.kt-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(.85); }

/* ---------- gerak ---------- */
.has-kto:not(.kto-fallback) [data-kt-rise]:not(.is-in) { opacity: 0; }
.has-kto:not(.kto-fallback) .kt-quick:not(.is-in) li,
.has-kto:not(.kto-fallback) .kt-steps:not(.is-in) .kt-step,
.has-kto:not(.kto-fallback) .kt-self:not(.is-in),
.has-kto:not(.kto-fallback) .kt-card:not(.is-in),
.has-kto:not(.kto-fallback) .kt-office-grid:not(.is-in) > * { opacity: 0; }

@media (max-width: 991px) {
  .kt-hero { min-height: 0; padding: 64px 0 72px; }
  .kt-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .kt-h1 { max-width: 16ch; font-size: clamp(40px, 8vw, 64px); }
  .kt-main { padding: 72px 0 80px; }
  .kt-grid { grid-template-columns: 1fr; gap: 40px; }
  .kt-side { position: static; order: 2; }
  .kt-card { order: 1; }
  .kt-office { padding-bottom: 80px; }
  .kt-office-grid { grid-template-columns: 1fr; }
  .kt-map, .kt-map iframe { min-height: 320px; }
}
@media (max-width: 575px) {
  .kt-hero { padding: 48px 0 56px; }
  .kt-h1 { font-size: 38px; margin-bottom: 20px; }
  .kt-lead { font-size: 17px; }
  .kt-quick a { padding: 14px; gap: 12px; }
  .kt-quick b { font-size: 17px; }
  .kt-quick-ico { width: 40px; height: 40px; border-radius: 12px; }
  .kt-main { padding: 48px 0 60px; }
  .kt-card { padding: 26px 20px 24px; border-radius: 22px; }
  .kt-card-title { font-size: 22px; }
  .kt-fields { grid-template-columns: 1fr; }
  .kt-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .kt-chips::-webkit-scrollbar { display: none; }
  .kt-chip { flex: none; }
  .kt-office { padding-bottom: 60px; }
  .kt-office-card { padding: 28px 20px; border-radius: 22px; }
  .kt-map { border-radius: 22px; }
}

/* kolom grid boleh menyusut: baris chip yang bisa digeser tidak boleh melebarkan halaman */
.kt-grid > *, .kt-office-grid > *, .kt-hero-grid > * { min-width: 0; }
.kt-main, .kt-card { overflow-x: clip; }

/* ---- hero: panggung kontak ---- */
.kt-stage { --r: 42cqw; container-type: inline-size; position: relative; width: 100%; max-width: 580px; aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.kt-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
.kt-ring-1 { width: 40%; height: 40%; } .kt-ring-2 { width: 70%; height: 70%; border-style: dashed; } .kt-ring-3 { width: 100%; height: 100%; border-color: rgba(255,255,255,.1); }
.kt-orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a, var(--a0))) translateX(var(--r)); }
.kt-orb-in { position: absolute; left: -32px; top: -32px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 19px; color: var(--kt-maroon); background: #fff; box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); transform: rotate(calc(var(--a, var(--a0)) * -1)); }
.kt-orb-in svg { width: 30px; height: 30px; }
.kt-chat { position: relative; z-index: 2; width: 66%; display: grid; gap: 12px; padding: 22px; border-radius: 26px; color: #3a2a2c; background: #fff; box-shadow: 0 30px 50px -24px rgba(0,0,0,.6); }
.kt-chat-top { display: flex; align-items: center; gap: 10px; font-size: 16px; flex-wrap: wrap; }
.kt-chat-top small { flex-basis: 100%; margin-left: 18px; font-size: 13px; color: #8a7a7c; margin-top: -6px; }
.kt-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.kt-msg { position: relative; max-width: 94%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.4; }
.kt-msg-me { justify-self: end; color: #fff; background: var(--kt-maroon); border-bottom-right-radius: 4px; }
.kt-msg-we { justify-self: start; background: #f4eeee; border-bottom-left-radius: 4px; }
.kt-typing { display: none; gap: 4px; padding: 4px 2px; }
.kt-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.kt-msg.is-typing .kt-typing { display: flex; } .kt-msg.is-typing .kt-txt { display: none; }
.kt-ok { display: flex; align-items: center; gap: 6px; justify-self: start; padding: 8px 14px; border-radius: 99px; font-size: 14.5px; font-weight: 600; color: #15803d; background: #dcfce7; }
.kt-ok svg { width: 17px; height: 17px; }
.kt-plane { position: absolute; z-index: 3; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; color: #fff; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); opacity: 0; }
@media (max-width: 1199px) { .kt-hero-grid { gap: 48px; } .kt-stage { max-width: 470px; } .kt-chat-top, .kt-msg { font-size: 14.5px; } }
@media (max-width: 575px) { .kt-stage { max-width: 360px; } .kt-chat { width: 72%; padding: 14px; gap: 9px; border-radius: 20px; } .kt-chat-top, .kt-msg { font-size: 13px; } .kt-msg { padding: 9px 12px; } .kt-chat-top small { font-size: 11px; } .kt-ok { font-size: 12.5px; } .kt-orb-in { left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 13px; } .kt-orb-in svg { width: 20px; height: 20px; } }

/* kolom jebakan robot: tak terlihat oleh manusia */
.kt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* belum memilih aplikasi */
.kt-apps.g-invalid { outline: 2px solid #C2362F; outline-offset: 8px; border-radius: 14px; }
.kt-apps.g-invalid legend { color: #C2362F; }
