/* =========================================================
   PREMIUM INLINE ORDER SECTION
   ========================================================= */

.buy-modal {
    display: none;
    width: 100%;
    margin: 42px 0 50px;
}

.buy-modal.active {
    display: block;
}

.buy-modal-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.03),
        0 14px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}


/* =========================================================
   PREMIUM ORDER HEADER
   ========================================================= */

.buy-modal-header {
    position: relative;
    padding: 30px 34px;
    color: #ffffff;
    background: linear-gradient(135deg,
            #0b5ed7 0%,
            #084298 55%,
            #062f6b 100%);
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.buy-modal-header h2 {
    margin: 0 0 7px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.buy-modal-header p {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.buy-modal-close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease, transform 0.2s ease;
}

.buy-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}




/* =========================================================
   ORDER FORM
   ========================================================= */

#orderForm {
    padding: 34px;
    background: #fbfcfe;
}


/* =========================================================
   FORM SECTION TITLE
   ========================================================= */

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 20px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e5e7eb;
    color: #0b3d91;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.form-section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: #0d6efd;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1px;
}

.form-group label span {
    color: #dc3545;
}


/* =========================================================
   INPUTS / SELECT / TEXTAREA
   ========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #b8c2d1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0d6efd;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.10);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}


/* =========================================================
   FORM ROW
   ========================================================= */

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}


/* =========================================================
   PLACE ORDER BUTTON
   ========================================================= */

.place-order-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 14px 22px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg,
            #0d6efd,
            #084298);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.20);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.place-order-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 9px 22px rgba(13, 110, 253, 0.26);
}

.place-order-btn:active {
    transform: translateY(0);
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.form-security {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}
/* =========================================================
   SUCCESS POPUP
   ========================================================= */

.error-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-modal.active {
    display: flex;
}

.error-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
}

.error-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    padding: 38px 30px 30px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.22);
}


/* =========================
   GREEN SUCCESS ICON
   ========================= */

.error-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    border: 2px solid #86efac;
    border-radius: 50%;

    background: #ecfdf3;
    color: #16a34a;

    font-size: 36px;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(22, 163, 74, 0.15);
}


/* =========================
   TITLE
   ========================= */

.error-modal-box h2 {
    margin: 0 0 10px;

    color: #172033;

    font-size: 24px;
    font-weight: 700;
}


/* =========================
   MESSAGE
   ========================= */

.error-modal-box p {
    max-width: 350px;

    margin: 0 auto 16px;

    color: #5f6b7a;

    font-size: 15px;
    line-height: 1.65;
}


/* =========================
   CONTACT INFORMATION
   ========================= */

.error-note {
    margin: 0 auto 22px;

    padding: 12px 14px;

    border: 1px solid #dcfce7;
    border-radius: 9px;

    background: #f0fdf4;

    color: #4b5563;

    font-size: 13px;
    line-height: 1.6;
}

.error-note a {
    color: #15803d;

    font-weight: 700;

    text-decoration: none;
}

.error-note a:hover {
    text-decoration: underline;
}


/* =========================
   CLOSE ICON
   ========================= */

.error-modal-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: #f1f3f5;
    color: #555;

    font-size: 23px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.error-modal-close:hover {
    background: #e9ecef;
    transform: scale(1.05);
}


/* =========================
   CLOSE BUTTON
   ========================= */

.error-ok-btn {
    width: 100%;

    padding: 13px 20px;

    border: none;
    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #22c55e,
        #15803d
    );

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(22, 163, 74, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.error-ok-btn:hover {
    transform: translateY(-1px);

    filter: brightness(1.04);

    box-shadow:
        0 8px 20px rgba(22, 163, 74, 0.28);
}

.error-ok-btn:active {
    transform: translateY(0);
}

.disabled-buy {
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 15px 22px;

    background: linear-gradient(135deg, #302dff, #0d28a2);
    color: #fff;

    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    box-shadow:
        0 8px 20px rgba(48, 45, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}


/* Shine effect */
.disabled-buy::before {
    content: "";
    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}


.disabled-buy:hover::before {
    left: 130%;
}


.disabled-buy:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(48, 45, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    filter: brightness(1.05);
}


.disabled-buy:active {
    transform: translateY(0);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    main:has(.buy-modal.active)>.safety-band,
    main:has(.buy-modal.active)>.section:not(:first-of-type) {
        display: none;
    }

    .buy-modal {
        margin: 20px 0 30px;
    }

    .buy-modal-box {
        width: 100%;
        max-width: none;
        max-height: none;
        border-radius: 16px;
    }

    .buy-modal-header {
        padding: 24px 22px;
        border-radius: 16px 16px 0 0;
    }

    .buy-modal-header h2 {
        font-size: 21px;
    }

    .buy-modal-header p {
        font-size: 13px;
    }

    #orderForm {
        padding: 22px;
    }

    .form-row {
        display: block;
        margin-bottom: 0;
    }

    .form-row .form-group {
        min-width: 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 13px;
        font-size: 14px;
    }

    .place-order-btn {
        min-height: 50px;
    }

    .error-modal {
        padding: 14px;
    }

    .error-modal-box {
        padding: 28px 22px;
        border-radius: 16px;
    }
}


/* =========================================================
   SLIDESHOW
   ========================================================= */

.slideshow {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 420px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.slide.active {
    display: block;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.slide-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-btn.prev {
    left: 15px;
}

.slide-btn.next {
    right: 15px;
}
