/*
 * Bagian Kontak (/contact): jalur langsung per tim (kiri) dan lembar pesan (kanan),
 * plus notifikasi isian. Hanya dimuat di halaman Kontak (page/contact-redesign.blade.php).
 *
 * Arang gelap + oranye Heavypack. Tombol kirim memakai teks hitam di atas oranye,
 * seperti label tombol di panel mesin, dan lebih terbaca daripada putih di atas oranye.
 */
.hpk {
    --k-bg: #1c1c1e;
    --k-text: #f5f5f7;
    --k-muted: #a1a1a6;
    --k-line: rgba(255,255,255,.1);
    --k-ink: #1c1c1e;
    --k-ink-muted: #5c5c62;
    --k-field: #f5f5f7;
    --k-field-line: #d2d2d7;
    --k-orange: #ff6600;
    --k-orange-hover: #ff7a1f;
    --k-orange-press: #e65c00;
    --k-error: #c4271b;
    --k-error-soft: #fdecea;
    --k-ok: #1f7a3d;
    padding: 96px 0 104px;
    color: var(--k-text);
    background: var(--k-bg);
    scroll-margin-top: 72px;
}
.hpk__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

/* --- Jalur langsung per tim --- */
.hpk-lines h2 { margin: 0 0 12px; color: var(--k-text); font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.hpk-lines__intro { max-width: 38ch; margin: 0 0 28px; color: var(--k-muted); font-size: 16px; line-height: 1.55; }
.hpk-lines__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--k-line); }
.hpk-lines__list li { margin: 0; border-bottom: 1px solid var(--k-line); }
.hpk-line { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 15px 8px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .2s ease; }
.hpk-line__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #25d366; background: rgba(37,211,102,.14); font-size: 19px; }
.hpk-line--plain .hpk-line__icon { color: var(--k-text); background: rgba(255,255,255,.08); font-size: 15px; }
.hpk-line__team { color: var(--k-muted); font-size: 14px; line-height: 1.3; }
.hpk-line__number { color: var(--k-text); font-size: clamp(20px, 1.9vw, 25px); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.25; letter-spacing: -.01em; transition: color .2s ease; }
.hpk-line__number--text { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.hpk-line:hover { color: inherit; background: rgba(255,255,255,.05); }
.hpk-line:hover .hpk-line__number { color: var(--k-orange); }
.hpk-line:focus-visible { outline: 2px solid var(--k-orange); outline-offset: 2px; }
.hpk-lines__places { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.hpk-lines__places p { margin: 0; color: var(--k-muted); font-size: 13px; line-height: 1.5; }
.hpk-lines__places strong { display: block; margin-bottom: 2px; color: var(--k-text); font-weight: 600; }

/* --- Lembar pesan --- */
.hpk-sheet { padding: clamp(24px, 3.4vw, 44px); border-radius: 24px; color: var(--k-ink); background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hpk-sheet h2 { margin: 0 0 8px; color: var(--k-ink); font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.hpk-form__intro { margin: 0 0 24px; color: var(--k-ink-muted); font-size: 15px; line-height: 1.55; }
.hpk-alert { margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; color: var(--k-error); background: var(--k-error-soft); font-size: 14px; line-height: 1.5; }

.hpk-topics { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.hpk-topics legend { margin: 0 0 10px; padding: 0; border: 0; color: var(--k-ink); font-size: 14px; font-weight: 600; }
.hpk-topics legend span { color: var(--k-ink-muted); font-weight: 400; }
.hpk-topics__options { display: flex; flex-wrap: wrap; gap: 8px; }
.hpk-topic { position: relative; margin: 0; cursor: pointer; }
.hpk-topic input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hpk-topic span { display: inline-block; padding: 9px 15px; border: 1px solid var(--k-field-line); border-radius: 999px; color: var(--k-ink); background: #fff; font-size: 14px; line-height: 1.2; transition: border-color .15s ease, background-color .15s ease; }
.hpk-topic:hover span { border-color: var(--k-ink); }
.hpk-topic input:checked + span { border-color: var(--k-orange); color: var(--k-ink); background: var(--k-orange); font-weight: 600; }
.hpk-topic input:focus-visible + span { outline: 2px solid var(--k-ink); outline-offset: 2px; }

.hpk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.hpk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hpk-field--wide { grid-column: 1 / -1; }
.hpk-field label { margin: 0; color: var(--k-ink); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.hpk-field input,
.hpk-field textarea { width: 100%; min-height: 0; margin: 0; padding: 13px 14px; border: 1px solid var(--k-field-line); border-radius: 12px; color: var(--k-ink); background: var(--k-field); box-shadow: none; font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.hpk-field textarea { min-height: 140px; resize: vertical; }
.hpk-field input::placeholder,
.hpk-field textarea::placeholder { color: #8e8e93; opacity: 1; }
.hpk-field input:focus,
.hpk-field textarea:focus { outline: 0; border-color: var(--k-ink); background: #fff; box-shadow: 0 0 0 3px rgba(255,102,0,.35); }
.hpk-field__hint { margin: 0; color: var(--k-ink-muted); font-size: 13px; line-height: 1.4; }
.hpk-field__error { margin: 0; color: var(--k-error); font-size: 13px; font-weight: 500; line-height: 1.4; }
.hpk-field__error:empty { display: none; }
.hpk-field.is-invalid input,
.hpk-field.is-invalid textarea { border-color: var(--k-error); background: var(--k-error-soft); }
.hpk-field.is-invalid input:focus,
.hpk-field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(196,39,27,.22); }
.hpk-field.is-invalid .hpk-field__hint { display: none; }
.hpk-field.is-shaking { animation: hpk-shake .4s cubic-bezier(.36,.07,.19,.97) both; }

.hpk-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #e5e5ea; }
.hpk-form__foot p { max-width: 32ch; margin: 0; color: var(--k-ink-muted); font-size: 13px; line-height: 1.5; }
.hpk-submit { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px; color: var(--k-ink); background: var(--k-orange); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.hpk-submit:hover { background: var(--k-orange-hover); }
.hpk-submit:active { background: var(--k-orange-press); transform: translateY(1px); }
.hpk-submit:focus-visible { outline: 3px solid var(--k-ink); outline-offset: 3px; }
.hpk-submit[aria-busy="true"] { opacity: .7; cursor: progress; }

.hpk-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Setelah pesan terkirim --- */
.hpk-done { padding: 8px 0; outline: 0; }
.hpk-done__mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; color: #fff; background: var(--k-ok); font-size: 22px; }
.hpk-done p { max-width: 46ch; margin: 0 0 22px; color: var(--k-ink-muted); font-size: 16px; line-height: 1.6; }
.hpk-done__again { color: var(--k-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hpk-done__again:hover { color: var(--k-orange-press); }

/* --- Notifikasi isian (meluncur masuk, lalu bergeser sebentar untuk menarik perhatian) --- */
/* z-index di atas header (120) dan kolom pencarian yang menempel (110). */
.hpk-toast { position: fixed; z-index: 130; top: 170px; right: 24px; display: flex; align-items: flex-start; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 16px 12px 16px 16px; border-left: 4px solid var(--k-orange); border-radius: 14px; color: var(--k-text); background: #2c2c2e; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.hpk-toast[hidden] { display: none; }
.hpk-toast.is-in { animation: hpk-toast-in .42s cubic-bezier(.22,1,.36,1) both, hpk-nudge .5s .5s ease-in-out 2; }
.hpk-toast.is-nudge { animation: hpk-nudge .5s ease-in-out 1; }
.hpk-toast__icon { color: var(--k-orange); font-size: 18px; line-height: 1.3; }
.hpk-toast__body { flex: 1; min-width: 0; }
.hpk-toast__body strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.35; }
.hpk-toast__body ul { margin: 6px 0 0; padding: 0; list-style: none; }
.hpk-toast__body ul:empty { display: none; }
.hpk-toast__body li + li { margin-top: 2px; }
.hpk-toast__body li button { padding: 2px 0; border: 0; color: #ffb27a; background: none; font: inherit; font-size: 14px; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hpk-toast__close { flex: none; padding: 4px 7px; border: 0; border-radius: 8px; color: var(--k-muted); background: none; font-size: 16px; line-height: 1; cursor: pointer; }
.hpk-toast__close:hover { color: var(--k-text); }
.hpk-toast button:focus-visible { outline: 2px solid var(--k-orange); outline-offset: 2px; }
.hpk-toast.is-ok { border-left-color: #34c759; }
.hpk-toast.is-ok .hpk-toast__icon { color: #34c759; }

@keyframes hpk-toast-in { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes hpk-toast-down { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes hpk-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-9px); } 60% { transform: translateX(5px); } }
@keyframes hpk-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }

@media (max-width: 1000px) {
    .hpk__grid { grid-template-columns: 1fr; }
    .hpk-lines__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 620px) {
    .hpk { padding: 64px 0 72px; }
    .hpk-lines__list,
    .hpk-lines__places,
    .hpk-fields { grid-template-columns: 1fr; }
    .hpk-sheet { border-radius: 20px; }
    .hpk-form__foot { flex-direction: column; align-items: stretch; }
    .hpk-submit { width: 100%; }
    /* Di HP tetap di atas (di bawah header), supaya tidak tertutup gelembung chat di pojok kanan bawah. */
    .hpk-toast { right: 12px; left: 12px; width: auto; }
    .hpk-toast.is-in { animation: hpk-toast-down .42s cubic-bezier(.22,1,.36,1) both, hpk-nudge .5s .5s ease-in-out 2; }
}
@media (prefers-reduced-motion: reduce) {
    .hpk-toast.is-in,
    .hpk-toast.is-nudge,
    .hpk-field.is-shaking { animation: none; }
    .hpk-line,
    .hpk-line__number,
    .hpk-topic span,
    .hpk-field input,
    .hpk-field textarea,
    .hpk-submit { transition: none; }
}

/* --- Halaman Konsultasi (/konsultasi, pengganti pohon.heavypack.id) ---
 * Judul ringkas (hpk-hero) supaya tombol langsung terlihat, lalu empat kartu WhatsApp terang
 * (tim x kota). Seluruh kartu satu tautan; di HP menjadi 2 x 2. */
.hp-inner-hero.hpk-hero { min-height: 0; padding-block: 56px 48px; }
.hp-inner-hero.hpk-hero h1 { font-size: clamp(40px, 5vw, 68px); }

.hpc {
    --c-text: #242424;
    --c-muted: #6e6e73;
    --c-line: rgba(36,36,36,.1);
    --c-wa: #25d366;
    --c-wa-text: #146c3c;
    --c-wa-soft: #e3f6ea;
    --c-wa-solid: #1a7f45;
    padding: 56px 0 72px;
    color: var(--c-text);
    background: #f5f5f7;
}
.hpc__head { max-width: 640px; margin-bottom: 28px; }
.hpc__head h2 { margin: 0 0 8px; color: var(--c-text); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.hpc__head p { margin: 0; color: var(--c-muted); font-size: 16px; line-height: 1.55; }

.hpc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hpc-grid li { margin: 0; }
.hpc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 22px 20px 20px;
    border-radius: 20px;
    color: var(--c-text);
    background: #fff;
    box-shadow: 0 0 0 1px var(--c-line), 0 1px 2px rgba(0,0,0,.04);
    text-decoration: none;
    transition: box-shadow .2s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.hpc-card:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(26,127,69,.35), 0 18px 40px -24px rgba(0,0,0,.35); transform: translateY(-2px); }
.hpc-card:focus-visible { outline: 2px solid #ff6600; outline-offset: 3px; }
.hpc-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; color: var(--c-wa-solid); background: var(--c-wa-soft); font-size: 22px; }
.hpc-card__team { font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.hpc-card__city { margin-top: 2px; color: var(--c-muted); font-size: 14px; }
.hpc-card__number { margin: 14px 0 18px; font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -.01em; }
.hpc-card__cta {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--c-wa-text);
    background: var(--c-wa-soft);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: background-color .2s ease, color .2s ease;
}
.hpc-card:hover .hpc-card__cta { color: #fff; background: var(--c-wa-solid); }

.hpc__foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.hpc__foot p { margin: 0; color: var(--c-muted); font-size: 13px; line-height: 1.5; }
.hpc__foot strong { display: block; margin-bottom: 2px; color: var(--c-text); font-weight: 600; }
.hpc__foot .hpc__alt { margin-left: auto; font-size: 14px; }
.hpc__alt a { color: var(--c-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hpc__alt a:hover { color: #e65c00; }
.hpc__alt a:focus-visible { outline: 2px solid #ff6600; outline-offset: 2px; }

@media (max-width: 900px) {
    .hpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .hp-inner-hero.hpk-hero { min-height: 0; padding: 28px 0 24px; }
    .hp-inner-hero.hpk-hero h1 { font-size: 34px; }
    .hp-inner-hero.hpk-hero .hp-inner-hero__aside { display: none; }
    .hpc { padding: 28px 0 56px; }
    .hpc__head { margin-bottom: 18px; }
    .hpc__head p { font-size: 14px; }
    .hpc-grid { gap: 10px; }
    .hpc-card { padding: 16px 14px 14px; border-radius: 16px; }
    .hpc-card__icon { width: 38px; height: 38px; margin-bottom: 12px; font-size: 19px; }
    .hpc-card__team { font-size: 16px; }
    .hpc-card__city { font-size: 13px; }
    .hpc-card__number { margin: 10px 0 14px; font-size: 15px; }
    .hpc-card__cta { padding: 10px 8px; font-size: 13px; }
    .hpc__foot { flex-direction: column; align-items: flex-start; }
    .hpc__foot .hpc__alt { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hpc-card,
    .hpc-card__cta { transition: none; }
    .hpc-card:hover { transform: none; }
}
