/* ================================================================
   ASK AIRA (ch-ask)
   Desktop (>=1100px): elemen diposisikan dengan persentase tepat di atas bentuk
   yang sudah ada di gambar (kolom pencarian, 4 kartu, garis catatan), dan ukuran
   teks mengikuti lebar section lewat cqw.
   Di bawah itu: foto dipotong jadi pita di atas, UI disusun normal di bawahnya.
================================================================ */
.ch-ask {
    --ch-gold: #e9b78d;
    --ch-ink: #fbf7f1;
    --ch-bg: #0e2240;
    position: relative;
    background: var(--ch-bg);
    color: var(--ch-ink);
    overflow: hidden;
}

.ch-ask-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ch-ask-stage { position: relative; }

/* ---------- Mobile / tablet (default) ---------- */
.ch-ask-art {
    --h: min(54vw, 340px);
    position: relative;
    height: var(--h);
    overflow: hidden;
}

.ch-ask-art img {
    position: absolute;
    top: 0;
    right: 0;
    height: calc(var(--h) * 2.17);
    width: auto;
    max-width: none;
}

.ch-ask-art-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(0deg, var(--ch-bg) 4%, transparent);
}

.ch-ask-head,
.ch-ask-form,
.ch-ask-cards,
.ch-ask-notes {
    position: relative;
    width: min(100% - 40px, 720px);
    margin-inline: auto;
}

.ch-ask-head { margin-top: -28px; text-align: center; }

.ch-ask-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--ch-gold);
    font-size: 12px;
    line-height: 1;
    letter-spacing: .26em;
}

.ch-ask-eyebrow-line { flex: 0 0 28px; height: 1px; background: rgba(233, 183, 141, .8); }

.ch-ask-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--ch-ink);
    text-wrap: balance;
}

.ch-ask-desc {
    margin: 0 0 26px;
    color: rgba(251, 247, 241, .88);
    font-size: 14px;
    line-height: 1.6;
}

/* Search */
.ch-ask-form {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 8px 0 18px;
    border: 1px solid rgba(255, 233, 214, .6);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 238, 226, .95), rgba(247, 214, 190, .9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    color: #7a5646;
}

.ch-ask-form:focus-within { box-shadow: 0 0 0 3px rgba(233, 183, 141, .55), 0 10px 30px rgba(0, 0, 0, .28); }
.ch-ask-form-icon { flex: 0 0 auto; }

.ch-ask-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4a2f26;
    font-size: 15px;
}

.ch-ask-form input::placeholder { color: #7d5a4a !important; opacity: 1 !important; }

.ch-ask-send {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #c99472, #a8714f);
    color: #fff;
    cursor: pointer;
}

/* Cards */
.ch-ask-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto 0;
    padding: 0;
    list-style: none;
}

.ch-ask-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(233, 183, 141, .4);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--ch-ink);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.ch-ask-card:hover,
.ch-ask-card:focus-visible {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(233, 183, 141, .75);
    transform: translateY(-2px);
}

.ch-ask-card-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(233, 183, 141, .55);
    border-radius: 50%;
    color: var(--ch-gold);
}

.ch-ask-card-text { flex: 1; }
.ch-ask-card-arrow { flex: 0 0 auto; color: var(--ch-gold); }

/* Notes */
.ch-ask-notes { margin-top: 22px; }

.ch-ask-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    color: rgba(251, 247, 241, .8);
    font-size: 12px;
    line-height: 1.5;
}

.ch-ask-note-icon { flex: 0 0 auto; margin-top: 1px; color: var(--ch-gold); }
.ch-ask-note-line { display: inline; }

@media (min-width: 640px) {
    .ch-ask-cards { grid-template-columns: 1fr 1fr; }
    .ch-ask-desc { font-size: 15px; }
}

@media (max-width: 1099px) {
    .ch-ask-stage { padding-bottom: 56px; }
}

/* ---------- Desktop: overlay di atas gambar ---------- */
@media (min-width: 1100px) {
    .ch-ask-stage { container-type: inline-size; }

    .ch-ask-art { --h: auto; height: auto; }
    .ch-ask-art img { position: static; display: block; width: 100%; height: auto; }
    .ch-ask-art-fade { display: none; }

    .ch-ask-head,
    .ch-ask-form,
    .ch-ask-cards,
    .ch-ask-notes { position: absolute; margin: 0; width: auto; }

    .ch-ask-head { left: 24%; width: 46%; top: 8%; }

    .ch-ask-eyebrow { gap: 1.4cqw; margin-bottom: 1.2cqw; font-size: max(11px, .95cqw); }
    .ch-ask-eyebrow-line { flex-basis: 3cqw; }
    .ch-ask-title { margin-bottom: 1.2cqw; font-size: 3.1cqw; }
    .ch-ask-desc { margin: 0; font-size: max(12px, 1cqw); line-height: 1.55; }

    /* Kolom pencarian (gambar: x 378-1298, y 420-515 dari 1668x943) */
    .ch-ask-form {
        left: 22.66%;
        top: 44.5%;
        width: 55.16%;
        height: 10.07%;
        gap: 0;
        padding: 0 5.6cqw 0 5.6cqw;
        border: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
        color: inherit;
    }

    .ch-ask-form:focus-within { box-shadow: 0 0 0 .25cqw rgba(233, 183, 141, .7); }
    .ch-ask-form-icon { display: none; }
    .ch-ask-form input { font-size: max(14px, 1.15cqw); }

    .ch-ask-send {
        position: absolute;
        left: 90.2%;
        top: 4%;
        width: 8%;
        height: 88%;
        background: transparent;
        color: transparent;
    }

    .ch-ask-send svg { display: none; }
    .ch-ask-send:focus-visible { outline: 2px solid var(--ch-gold); outline-offset: 2px; }

    /* Kartu (gambar: kolom x 373-831 / 842-1303, baris y 537-641 / 653-761) */
    .ch-ask-cards {
        left: 22.3%;
        top: 56.9%;
        width: 55.9%;
        height: 24.3%;
        display: grid;
        grid-template-columns: 49.1% 49.4%;
        grid-template-rows: 46.3% 47.8%;
        column-gap: 1.5%;
        row-gap: 5.9%;
    }

    .ch-ask-cards li { display: contents; }

    .ch-ask-card {
        height: 100%;
        padding: 0 5.2cqw 0 6.3cqw;
        gap: 0;
        border: 0;
        border-radius: 1.8cqw;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        font-size: .98cqw;
        line-height: 1.3;
        position: relative;
    }

    .ch-ask-card:hover,
    .ch-ask-card:focus-visible {
        background: rgba(255, 255, 255, .08);
        transform: none;
        box-shadow: inset 0 0 0 1px rgba(233, 183, 141, .6);
    }

    .ch-ask-card-icon {
        position: absolute;
        left: 2.3cqw;
        top: 50%;
        width: 2.9cqw;
        height: 2.9cqw;
        transform: translateY(-50%);
    }

    .ch-ask-card-icon svg { width: 52%; height: 52%; }
    .ch-ask-card-arrow { display: none; }

    /* Catatan (gambar: ikon + garis di y~803 dan y~853) */
    .ch-ask-notes { left: 0; top: 80%; width: 100%; height: 14%; }

    .ch-ask-note {
        position: absolute;
        margin: 0;
        font-size: max(11px, .82cqw);
        line-height: 1.55;
        white-space: nowrap;
    }

    .ch-ask-note-icon { display: none; }

    /* teks duduk tepat di atas garis (x 535-1177, garis di y 803) */
    .ch-ask-note--kb { left: 32.1%; bottom: 64%; }

    /* dua baris diapit garis (x mulai 643, garis di y 853) */
    .ch-ask-note--disclaimer { left: 38.5%; top: 55%; }
    .ch-ask-note-line { display: block; }
    .ch-ask-note-line:first-child { margin-bottom: .45cqw; }
}

@media (prefers-reduced-motion: reduce) {
    .ch-ask-card { transition: none; }
}
