/* Inquiry form — multi step */
.iq {
    padding: clamp(1.4rem, 3vw, 2.4rem);
}
.iq-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    counter-reset: s;
}
.iq-step {
    flex: 1;
    position: relative;
    text-align: center;
    counter-increment: s;
    padding-top: 2.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9a9082;
}
.iq-step::before {
    content: counter(s);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--earth);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    z-index: 1;
    transition: 0.4s;
}
.iq-step::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: var(--sand);
    transition: 0.4s;
}
.iq-step:last-child::after {
    display: none;
}
.iq-step.on {
    color: var(--navy);
}
.iq-step.on::before {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(20, 32, 46, 0.1);
}
.iq-step.done::before {
    content: "\2713";
    background: var(--gold);
    color: #fff;
}
.iq-step.done::after {
    background: var(--gold);
}
.iq-pane {
    display: none;
}
.iq-pane.on {
    display: block;
    animation: up 0.55s both;
}
.iq-t {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 1.2rem;
}
.iq-h {
    font:
        700 0.85rem Manrope,
        sans-serif;
    color: var(--navy);
    margin: 0 0 0.8rem;
}
.iq-h small {
    font-weight: 400;
    color: #7a7266;
}
.iq-n {
    font-size: 0.82rem;
    color: #6b6358;
    margin: 0;
}
.iq-n i {
    color: var(--gold);
}
.iq-cond {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0 !important; /* tutup: tanpa jarak gutter */
    transition:
        grid-template-rows 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        margin-top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.iq-cond.open {
    grid-template-rows: 1fr;
    margin-top: var(--bs-gutter-y) !important; /* buka: jarak kembali */
}
.iq-cond > div {
    overflow: hidden;
    min-height: 0;
    padding: 0; /* wrapper harus bisa 0 tinggi */
    margin: 0;
    visibility: hidden; /* tidak terlihat & tidak bisa difokus */
    transition: visibility 0s 0.5s; /* sembunyikan setelah animasi tutup selesai */
}
.iq-cond.open > div {
    visibility: visible;
    transition-delay: 0s; /* langsung tampil saat dibuka */
}
.iq-box {
    background: var(--warm);
    border: 1px solid #e6ddcd;
    border-radius: 6px;
    padding: 1.2rem;
}
.iq-grp {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.iq-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.iq-opt {
    position: relative;
    margin: 0;
    cursor: pointer;
    display: block;
}
.iq-opt input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.iq-opt > span {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.1rem;
    border: 1px solid #ddd5c8;
    border-radius: 30px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    transition: 0.25s;
}
.iq-opt:hover > span {
    border-color: var(--gold);
}
.iq-opt input:checked + span {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.iq-opt input:focus-visible + span {
    outline: 3px solid rgba(184, 146, 79, 0.5);
    outline-offset: 2px;
}
.iq-card > span {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
}
.iq-card i {
    font-size: 1.4rem;
    color: var(--gold);
}
.iq-card small {
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.76rem;
    line-height: 1.3;
}
.iq-card input:checked + span i {
    color: #e8d5b0;
}
.iq-rp {
    position: relative;
}
.iq-rp span {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--earth);
    font-weight: 700;
    font-size: 0.85rem;
}
.iq-rp .form-control {
    padding-left: 2.4rem;
}
.iq-fw {
    position: relative;
}
.iq-file {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 2px dashed #cfc5b3;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: var(--warm);
    cursor: pointer;
    transition: 0.25s;
    margin: 0;
    color: var(--ink);
    font-weight: 500;
}
.iq-file i {
    font-size: 1.5rem;
    color: var(--gold);
    flex: none;
}
.iq-file small,
.iq-fn b {
    display: block;
}
.iq-file small {
    color: #7a7266;
    font-weight: 400;
    font-size: 0.75rem;
}
.iq-fn {
    min-width: 0;
    font-size: 0.85rem;
    line-height: 1.35;
}
.iq-fn b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.iq-fw:hover .iq-file,
.iq-fw.over .iq-file {
    border-color: var(--gold);
    background: #fbf6ea;
}
.iq-fw.has .iq-file {
    border-style: solid;
    border-color: #4d6b57;
    background: #f1f6f2;
}
.iq-fw.has .iq-file i::before {
    content: "\f26a";
}
.iq-rm {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.iq-rm:hover {
    background: var(--navy);
    color: #fff;
}
.iq-chk {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #5d564c;
    font-weight: 400;
    margin: 0.4rem 0 0;
    cursor: pointer;
}
.iq-chk input {
    margin-top: 0.25rem;
    accent-color: var(--navy);
    width: 18px;
    height: 18px;
    flex: none;
}
.iq-er {
    color: #b3392b;
    font-size: 0.78rem;
    margin-top: 0.35rem;
}
.is-bad,
.form-control.is-bad,
.form-select.is-bad {
    border-color: #b3392b !important;
}
.iq-fw.is-bad .iq-file {
    border-color: #b3392b;
}
.iq-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid #eee6d8;
}
.iq-nav .iq-next,
.iq-nav .iq-submit {
    margin-left: auto;
}
.iq-count {
    font-size: 0.78rem;
    color: #8a8175;
}
.iq-nav button[hidden] {
    display: none !important;
}
.iq-submit.loading {
    pointer-events: none;
    opacity: 0.75;
}
.iq-submit.loading i {
    animation: iqs 1s linear infinite;
}
@keyframes iqs {
    to {
        transform: rotate(360deg);
    }
}
.iq-ok {
    text-align: center;
    padding: 1rem 0;
}
.iq-okic {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eaf3ec;
    color: #2e5a3d;
    display: grid;
    place-items: center;
    font-size: 2rem;
    animation: iqp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes iqp {
    from {
        transform: scale(0.4);
        opacity: 0;
    }
}
.iq-ok h3 {
    font-size: 1.8rem;
    color: var(--navy);
}
.iq-sum {
    display: inline-block;
    text-align: left;
    background: var(--warm);
    border: 1px solid #e6ddcd;
    border-radius: 6px;
    padding: 1rem 1.4rem;
    margin: 0.5rem 0 1.4rem;
    font-size: 0.88rem;
    min-width: min(100%, 320px);
}
.iq-sum div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.2rem 0;
}
.iq-sum span {
    color: #7a7266;
}
.iq.done .iq-steps,
.iq.done .iq-pane,
.iq.done .iq-nav {
    display: none;
}
@media (max-width: 767px) {
    .iq-grid3 {
        grid-template-columns: 1fr;
    }
    .iq-step span {
        display: none;
    }
    .iq-step.on span {
        display: block;
        position: absolute;
        top: 2.4rem;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
    .iq-step {
        padding-top: 2.4rem;
    }
    .iq-steps {
        margin-bottom: 2.6rem;
    }
    .iq-fn b {
        max-width: 150px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .iq-cond {
        transition: none;
    }
}
