/* ==========================================================
   MUFLIKHUN.ID
   BOOK ORDER V1
   Web order -> WhatsApp + external marketplace buttons
   ========================================================== */


/* ==========================================================
   DETAIL BOOK BUY ACTIONS
   ========================================================== */

.book-detail .hero-actions.book-buy-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-top: 27px;
}


.book-detail
.book-buy-actions
.book-order-primary {
    border-color:
        var(--book-accent, #d9b564);

    background:
        var(--book-accent, #d9b564);

    color:
        #071019;
}


.book-detail
.book-buy-actions
.book-external-buy {
    border:
        1px solid
        rgba(213,181,111,.38);

    background:
        rgba(6,24,36,.52);

    color:
        #efe8dc;
}


.book-detail
.book-buy-actions
.book-external-buy.is-primary {
    border-color:
        rgba(222,185,103,.78);

    color:
        #f2cd7c;
}


/* ==========================================================
   ORDER PAGE
   ========================================================== */

.book-order-page {
    --order-bg: #020c15;
    --order-panel: rgba(7,28,42,.72);
    --order-panel-soft: rgba(9,35,50,.48);
    --order-border: rgba(105,169,203,.16);
    --order-gold: #dcb665;
    --order-gold-light: #efd18f;
    --order-text: #f3eee5;
    --order-muted: #93aab8;

    position: relative;

    min-height:
        calc(100vh - 86px);

    padding:
        68px 26px
        90px;

    color:
        var(--order-text);

    background:
        radial-gradient(
            ellipse at 18% 12%,
            rgba(21,88,125,.16),
            transparent 32%
        ),
        radial-gradient(
            ellipse at 84% 58%,
            rgba(26,79,116,.12),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #03111c,
            #020b13
        );

    overflow: hidden;
}


.book-order-page::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .56;

    background-image:
        radial-gradient(
            circle at 9% 11%,
            rgba(255,255,255,.80) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 27% 8%,
            rgba(190,228,251,.67) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 48% 17%,
            rgba(255,221,153,.60) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 71% 7%,
            rgba(255,255,255,.75) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 88% 29%,
            rgba(183,225,249,.68) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 16% 63%,
            rgba(255,255,255,.68) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 63% 72%,
            rgba(255,221,153,.55) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 93% 86%,
            rgba(190,228,251,.61) 0 1px,
            transparent 1.5px
        );
}


.book-order-shell {
    position: relative;

    z-index: 2;

    width:
        min(
            1120px,
            100%
        );

    margin:
        0 auto;

    display: grid;

    grid-template-columns:
        minmax(250px, 335px)
        minmax(0, 1fr);

    gap:
        clamp(42px, 6vw, 80px);

    align-items: start;
}


/* ==========================================================
   ORDER BOOK SUMMARY
   ========================================================== */

.book-order-book {
    position: sticky;

    top: 30px;
}


.book-order-cover {
    width:
        min(
            100%,
            290px
        );

    margin:
        0 auto;

    padding: 7px;

    border:
        1px solid
        rgba(111,167,196,.12);

    background:
        rgba(5,22,33,.52);

    box-shadow:
        0 28px 55px
        rgba(0,0,0,.42);
}


.book-order-cover img {
    display: block;

    width: 100%;

    height: auto;

    object-fit: contain;
}


.book-order-book-copy {
    max-width: 310px;

    margin:
        24px auto 0;
}


.book-order-kicker {
    display: block;

    color:
        var(--order-gold);

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: .18em;

    text-transform: uppercase;
}


.book-order-book-copy h1 {
    margin:
        10px 0 0;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(34px, 3.1vw, 48px);

    font-weight: 600;

    line-height: .98;

    letter-spacing: -.025em;
}


.book-order-book-copy p {
    margin:
        12px 0 0;

    color:
        var(--order-muted);

    font-size: 11px;

    line-height: 1.55;
}


.book-order-price {
    margin-top: 16px;

    color:
        var(--order-gold-light);

    font-size: 14px;

    font-weight: 600;
}


/* ==========================================================
   FORM PANEL
   ========================================================== */

.book-order-panel {
    padding:
        clamp(27px, 4vw, 48px);

    border:
        1px solid
        var(--order-border);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(8,31,46,.82),
            rgba(3,17,27,.72)
        );

    box-shadow:
        0 26px 65px
        rgba(0,0,0,.28);

    backdrop-filter:
        blur(12px);
}


.book-order-panel > header {
    margin-bottom: 29px;
}


.book-order-panel > header span {
    color:
        var(--order-gold);

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: .17em;

    text-transform: uppercase;
}


.book-order-panel > header h2 {
    margin:
        9px 0 0;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(38px, 4vw, 55px);

    font-weight: 500;

    line-height: .96;

    letter-spacing: -.025em;
}


.book-order-panel > header p {
    max-width: 600px;

    margin:
        13px 0 0;

    color:
        var(--order-muted);

    font-size: 11px;

    line-height: 1.6;
}


/* ==========================================================
   FORM
   ========================================================== */

.book-order-form {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        17px;
}


.book-order-field {
    min-width: 0;
}


.book-order-field.full {
    grid-column:
        1 / -1;
}


.book-order-field label {
    display: block;

    margin-bottom: 7px;

    color:
        rgba(239,232,220,.88);

    font-size: 9px;

    font-weight: 600;

    line-height: 1.2;

    letter-spacing: .04em;
}


.book-order-field input,
.book-order-field textarea,
.book-order-field select {
    width: 100%;

    min-height: 47px;

    padding:
        11px 13px;

    border:
        1px solid
        rgba(113,163,190,.20);

    border-radius: 7px;

    outline: none;

    background:
        rgba(2,15,24,.67);

    color:
        #f4efe6;

    font:
        inherit;

    font-size: 12px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.book-order-field textarea {
    min-height: 102px;

    resize: vertical;
}


.book-order-field input:focus,
.book-order-field textarea:focus,
.book-order-field select:focus {
    border-color:
        rgba(220,182,100,.66);

    box-shadow:
        0 0 0 3px
        rgba(220,182,100,.08);
}


.book-order-field input::placeholder,
.book-order-field textarea::placeholder {
    color:
        rgba(141,164,177,.55);
}


/* ==========================================================
   LIVE SUMMARY
   ========================================================== */

.book-order-preview {
    grid-column:
        1 / -1;

    margin-top: 5px;

    padding:
        18px 19px;

    border:
        1px solid
        rgba(111,168,197,.13);

    border-radius: 8px;

    background:
        rgba(4,19,29,.52);
}


.book-order-preview > span {
    display: block;

    margin-bottom: 11px;

    color:
        var(--order-gold);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.book-order-preview dl {
    margin: 0;

    display: grid;

    grid-template-columns:
        132px minmax(0,1fr);

    gap:
        8px 14px;
}


.book-order-preview dt {
    color:
        #839eae;

    font-size: 10px;
}


.book-order-preview dd {
    margin: 0;

    color:
        #e9e5dd;

    font-size: 10px;

    font-weight: 500;

    word-break: break-word;
}


/* ==========================================================
   ORDER ACTION
   ========================================================== */

.book-order-submit {
    grid-column:
        1 / -1;

    width: 100%;

    min-height: 51px;

    margin-top: 2px;

    border:
        1px solid
        var(--order-gold);

    border-radius: 999px;

    cursor: pointer;

    background:
        var(--order-gold);

    color:
        #08111a;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .025em;

    transition:
        transform .18s ease,
        opacity .18s ease;
}


.book-order-submit:hover:not(:disabled) {
    transform:
        translateY(-1px);
}


.book-order-submit:disabled {
    cursor: not-allowed;

    opacity: .45;
}


.book-order-wa-note {
    grid-column:
        1 / -1;

    margin:
        -4px 0 0;

    color:
        #90a7b5;

    font-size: 9px;

    line-height: 1.5;

    text-align: center;
}


.book-order-wa-note.is-warning {
    color:
        #d9b66c;
}


/* ==========================================================
   EXTERNAL CHANNELS
   ========================================================== */

.book-order-external {
    margin-top: 27px;

    padding-top: 25px;

    border-top:
        1px solid rgba(119,167,191,.13);
}


.book-order-external > span {
    display: block;

    margin-bottom: 12px;

    color:
        #8da6b5;

    font-size: 9px;

    line-height: 1.4;
}


.book-order-external-links {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.book-external-buy {
    min-height: 39px;

    padding:
        0 16px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(213,181,111,.31);

    border-radius: 999px;

    color:
        #eee7dc;

    font-size: 9px;

    font-weight: 600;

    text-decoration: none;

    transition:
        border-color .18s ease,
        color .18s ease;
}


.book-external-buy:hover {
    border-color:
        rgba(223,188,111,.75);

    color:
        var(--order-gold-light);
}


.book-external-buy.is-primary {
    border-color:
        rgba(222,184,103,.72);

    color:
        var(--order-gold-light);
}


/* ==========================================================
   BACK LINK
   ========================================================== */

.book-order-back {
    margin-top: 22px;
}


.book-order-back a {
    color:
        #9db1bd;

    font-size: 9px;

    text-decoration: none;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:760px) {

    .book-detail
    .hero-actions.book-buy-actions {
        justify-content: center;

        gap: 8px;
    }


    .book-detail
    .book-buy-actions
    .btn,
    .book-detail
    .book-buy-actions
    .book-external-buy {
        min-height: 39px;

        padding:
            0 13px;

        font-size: 8px;
    }


    .book-order-page {
        min-height:
            calc(100vh - 68px);

        padding:
            38px 16px
            58px;
    }


    .book-order-shell {
        display: flex;

        flex-direction: column;

        gap: 32px;
    }


    .book-order-book {
        position: static;

        width: 100%;

        display: grid;

        grid-template-columns:
            116px
            minmax(0,1fr);

        gap: 18px;

        align-items: center;
    }


    .book-order-cover {
        width: 116px;

        margin: 0;

        padding: 4px;
    }


    .book-order-book-copy {
        max-width: none;

        margin: 0;
    }


    .book-order-book-copy h1 {
        font-size: 30px;

        line-height: .98;
    }


    .book-order-book-copy p {
        font-size: 9px;
    }


    .book-order-price {
        margin-top: 10px;

        font-size: 12px;
    }


    .book-order-panel {
        padding:
            24px 17px;

        border-radius: 9px;
    }


    .book-order-panel > header {
        margin-bottom: 23px;
    }


    .book-order-panel > header h2 {
        font-size: 38px;
    }


    .book-order-panel > header p {
        font-size: 10px;
    }


    .book-order-form {
        grid-template-columns:
            1fr;

        gap: 14px;
    }


    .book-order-field.full,
    .book-order-preview,
    .book-order-submit,
    .book-order-wa-note {
        grid-column:
            1;
    }


    .book-order-preview dl {
        grid-template-columns:
            100px
            minmax(0,1fr);

        gap:
            7px 10px;
    }

}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media
(
    prefers-reduced-motion:
    reduce
) {

    .book-order-submit,
    .book-external-buy {
        transition:
            none !important;
    }

}
