/* ==========================================================================
   Landing undangan cetak pernikahan
   Palet: navy tinta, foil emas, kertas blush, putih dingin
    Tipografi: Lora (judul) + Hanken Grotesk (teks)
   ========================================================================== */

:root {
    --ink: #14213A;
    --ink-2: #1F3052;
    --foil: #C8A25F;
    --foil-d: #8F6E2F;
    --blush: #F4E6E1;
    --blush-d: #E8D2CB;
    --blush-l: #FAF1EE;
    --white: #FBFAFB;
    --slate: #5B6478;
    --line: #DDD6D8;
    --wa: #1B8F4E;
    --wa-d: #157A41;
    --err: #B3261E;

    --display: "Lora", Georgia, "Times New Roman", serif;
    --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-padding-top: 4.5rem; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: 0; line-height: 1.1; }
h3 { font-family: var(--text); font-weight: 600; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--foil); outline-offset: 3px; }

/* ---------- Tombol ---------- */
.btn {
    font-family: var(--text);
    font-weight: 600;
    border-radius: 10px;
    padding: .8rem 1.4rem;
    border: 1.5px solid transparent;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.0625rem; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover, .btn-ink:focus-visible { background: var(--ink-2); color: #fff; }

.btn-foil { background: var(--foil); color: var(--ink); }
.btn-foil:hover, .btn-foil:focus-visible { background: #D6B374; color: var(--ink); }
.btn-foil:disabled { opacity: .6; }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover, .btn-wa:focus-visible { background: var(--wa-d); color: #fff; }

.btn-back { background: transparent; color: var(--slate); border-color: transparent; padding-left: .5rem; padding-right: .5rem; }
.btn-back:hover { color: var(--ink); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251,250,251,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; }
.top-brand { font-family: var(--display); font-size: 1.25rem; font-weight: 500; color: var(--ink); text-decoration: none; }

/* ---------- Section dasar ---------- */
.sec { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sec-blush { background: var(--blush); }
.sec-ink { background: var(--ink); color: #fff; }
.sec-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: 0 0 1rem; }
.sec-lead { color: var(--slate); max-width: 34rem; margin: 0; }
.sec-ink .sec-lead { color: rgba(255,255,255,.75); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-title { font-size: clamp(2.35rem, 5.6vw, 4.1rem); margin: 0 0 1.25rem; max-width: 14ch; text-wrap: balance; }
.hero-lead { font-size: 1.15rem; color: var(--slate); max-width: 32rem; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 2.25rem; }
.hero-note { color: var(--slate); font-size: .95rem; }

.specs { display: flex; flex-wrap: wrap; gap: 1.25rem 0; margin: 0; padding: 0; }
.spec { padding: 0 1.5rem; border-left: 1px solid var(--line); }
.spec:first-child { padding-left: 0; border-left: 0; }
.spec dt { font-size: .875rem; font-weight: 500; color: var(--slate); }
.spec dd { margin: .1rem 0 0; font-size: 1.2rem; font-weight: 600; }

.stage { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: var(--blush); }
.stage-image { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Daftar tanda centang / silang ---------- */
.list-title { font-size: 1.05rem; margin: 0 0 1rem; }
.marks { list-style: none; margin: 0; padding: 0; }
.marks li { position: relative; padding: .7rem 0 .7rem 2rem; border-top: 1px solid var(--line); }
.marks li:last-child { border-bottom: 1px solid var(--line); }
.marks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 1.1rem;
    height: 1.1rem;
    background-repeat: no-repeat;
    background-size: contain;
}
.marks-yes li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%238F6E2F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.marks-no li { color: var(--slate); }
.marks-no li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%235B6478' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Daftar harga (rate card) ---------- */
.rates { border-top: 1px solid rgba(20,33,58,.25); }
.rate {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(20,33,58,.25);
}
.rate-main { flex: 1 1 18rem; }
.rate-name { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin: 0 0 .35rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.rate-tag { font-family: var(--text); font-size: .8rem; font-weight: 600; background: var(--ink); color: #fff; padding: .15rem .6rem; border-radius: 999px; }
.rate-desc { margin: 0 0 .75rem; color: var(--slate); max-width: 34rem; }
.rate-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
.rate-list li { position: relative; padding-left: .9rem; }
.rate-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--foil-d); }
.rate-price { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 8rem; }
.rate-from { font-size: .875rem; color: var(--slate); }
.rate-price strong { font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.rate-unit { font-size: .9rem; color: var(--slate); }

@media (min-width: 768px) {
    .rate-price { align-items: flex-end; text-align: right; }
}

/* ---------- Alur (urutan sungguhan, jadi bernomor) ---------- */
.flow { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
.flow li { position: relative; padding-left: 3.25rem; counter-increment: step; }
.flow li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -.15rem;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--foil-d);
    border-radius: 50%;
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--foil-d);
}
.flow h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.flow p { margin: 0; color: var(--slate); }

@media (min-width: 992px) {
    .flow { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .flow li { padding-left: 0; padding-top: 3.25rem; }
    .flow li::before { top: 0; }
    .flow li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 1.1rem;
        left: 3rem;
        right: -1rem;
        height: 1px;
        background: var(--line);
    }
}

/* ---------- Form penyaringan ---------- */
.form-intro { margin-bottom: 1.75rem; }

.qcard {
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: 0 28px 50px -28px rgba(0,0,0,.6);
}

.q-progress { height: 4px; background: var(--blush); border-radius: 4px; overflow: hidden; }
.q-progress-bar { height: 100%; width: 20%; background: var(--foil); border-radius: 4px; transition: width .3s ease; }
.q-count { margin: .6rem 0 1.5rem; font-size: .875rem; color: var(--slate); }

.q-title { font-size: 1.4rem; margin: 0 0 1.25rem; outline: none; }
.q-step { display: block; }
.q-group { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }

.field { margin-bottom: 1.1rem; }
.field-label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .45rem; float: none; padding: 0; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="date"] {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: .85rem 1rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    transition: border-color .15s ease;
}
.field input:focus { border-color: var(--ink); outline: 3px solid rgba(200,162,95,.45); outline-offset: 0; }
.field-hint { margin-top: .5rem; font-size: .9rem; color: var(--slate); }
.field-hint.is-warn { color: #8A4B00; }
.field-error { margin-top: .4rem; font-size: .9rem; color: var(--err); min-height: 0; }
.field-error:empty { display: none; }

/* Pilihan berbentuk baris */
.opts { display: grid; gap: .6rem; }
.opt { position: relative; display: block; margin: 0; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-body {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-weight: 500;
    transition: border-color .15s ease, background-color .15s ease;
}
.opt-body::before {
    content: "";
    flex: 0 0 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
    border: 1.5px solid var(--slate);
    border-radius: 50%;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.opt:hover .opt-body { border-color: var(--ink); }
.opt input:checked + .opt-body { border-color: var(--ink); background: var(--blush-l); }
.opt input:checked + .opt-body::before { border-color: var(--ink); background: var(--foil); box-shadow: inset 0 0 0 3px #fff; }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--foil); outline-offset: 2px; }

@media (min-width: 576px) {
    .opts-2 { grid-template-columns: 1fr 1fr; }
}

.q-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.q-nav .btn-foil:only-child { margin-left: auto; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hasil */
.q-result { border-top: 4px solid var(--slate); margin: -.5rem 0 0; padding-top: 1.5rem; }
.q-result[data-state="ok"] { border-top-color: var(--wa); }
.q-result-text { color: var(--slate); margin: 0 0 1.5rem; }
.q-result .btn-wa { display: inline-block; margin: 0 .75rem .5rem 0; }

/* ---------- Accordion FAQ ---------- */
.faq {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: var(--line);
    --bs-accordion-border-width: 0;
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 1.1rem;
    --bs-accordion-body-padding-x: 0;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: var(--ink);
    --bs-accordion-btn-color: var(--ink);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-btn-focus-border-color: transparent;
}
.faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.faq .accordion-item:first-child { border-top: 1px solid var(--line); }
.faq .accordion-button { font-family: var(--text); font-weight: 600; font-size: 1.05rem; background: transparent; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--ink); background: transparent; box-shadow: none; }
.faq .accordion-button:focus-visible { outline: 3px solid var(--foil); outline-offset: 2px; }
.faq .accordion-body { color: var(--slate); padding-top: 0; max-width: 40rem; }

/* ---------- Footer & CTA lengket ---------- */
.foot { border-top: 1px solid var(--line); padding: 1.75rem 0 5.5rem; color: var(--slate); font-size: .95rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.foot strong { color: var(--ink); }

.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(251,250,251,.96);
    border-top: 1px solid var(--line);
    transition: transform .25s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); }

@media (min-width: 992px) {
    .foot { padding-bottom: 1.75rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    .container { --bs-gutter-x: 2.25rem; }
    .row.g-5 { --bs-gutter-x: 2.25rem !important; }
    .hero { padding-top: 2.75rem; padding-bottom: 3.75rem; }
    .sec { padding-top: 3.75rem; padding-bottom: 3.75rem; }
    .hero-title,
    .hero-lead,
    .sec-title,
    .sec-lead,
    .list-title,
    .rate-name,
    .rate-desc,
    .flow h3,
    .flow p,
    .q-title,
    .field-label,
    .faq .accordion-button,
    .faq .accordion-body,
    .foot-inner { text-align: center; }
    .hero-title { max-width: none; font-size: 1.5rem; }
    .hero-title,
    .hero-lead,
    .sec-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .spec,
    .spec:first-child { padding: 0 .35rem; text-align: center; }
    .spec:not(:first-child) { border-left: 1px solid var(--line); }
    .spec dt { min-height: 2.4em; display: flex; align-items: flex-end; justify-content: center; font-size: .75rem; line-height: 1.2; text-wrap: balance; }
    .spec dd { font-size: .95rem; line-height: 1.25; text-wrap: balance; }
    .rate-name { justify-content: center; }
    .rate-main { flex-basis: 100%; }
    .rate-list { justify-content: center; }
    .rate-price { width: 100%; align-items: center; text-align: center; }
    .flow li { padding: 3rem 0 0; text-align: center; }
    .flow li::before { left: 50%; transform: translateX(-50%); }
    .faq .accordion-button { justify-content: center; padding-right: 2.5rem; }
    .faq .accordion-button::after { position: absolute; right: 0; }
    .foot-inner { justify-content: center; }
    .foot { padding-bottom: 6rem; }
    .q-nav .btn { flex: 1 1 auto; }
    .q-nav .btn-back { flex: 0 0 auto; }
}
