.order {
    padding: 80px 0;
}

.order-form {
    background: white;
    border-radius: 25px;
    max-width: 700px;
    margin: auto;
    margin-top: 10px;
}

.input-group {
    margin-bottom: 20px;
}

input,
textarea,
select {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
}

select {
    font-size: 16px;
}


.product-summary {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin: 20px 0;
    border: 1px solid #f1e6dc;
}

/* header */
.summary-header {
    font-size: 18px;
    font-weight: 800;
    color: #2B1D16;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* rows */
.summary-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px !important;
    font-weight: 600;
    color: #5B4B43;
}

/* values bold */
.summary-row span:last-child {
    font-weight: 800;
    color: #2B1D16;
}

/* total highlight */
.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    font-size: 18px !important;
}

.summary-row.total span {
    font-weight: 900;
    color: #7A5230;
}


/* ------------------------------Order Success--------------------- */
.success-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}


/* ------------------------------Modal--------------------- */
.order-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 999999;
}

/* active */
.order-modal.active {
    opacity: 1;
    visibility: visible;
}

/* dark overlay */
.order-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* modal box */
.order-modal-content {
    position: relative;
    width: 95%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: modalUp .3s ease;
}

/* close button */
.order-modal-close {
    position: absolute;
    top: 11px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: 20px;
    cursor: pointer;
    transition: .25s ease;
}

.order-modal-close:hover {
    background: #eee;
    transform: rotate(90deg);
}






@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media(max-width:768px) {
    .order-modal-content {
        height: 80%;
        position: relative;
        border-radius: 24px;
        width: 95%;
        max-height: 100vh;
        padding: 18px;
        bottom: 0;
        animation: mobileModal .3s ease;
    }

    @keyframes mobileModal {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

}

@media (max-width: 768px) {
    .input-group {
        margin-bottom: 10px;
    }

    input,
    textarea,
    select {
        padding: 10px;
        border-radius: 10px;
        font-size: 14px;
    }

    textarea {
        min-height: 80px;
    }


    /* summary tighter spacing */
    .product-summary {
        padding: 10px;
        margin: 12px 0;
    }

    .summary-body {
        gap: 8px;
    }

    .summary-row {
        font-size: 14px !important;
    }

    .summary-row.total {
        font-size: 16px !important;
    }

    .summary-header {
        font-size: 15px;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }

    .price-box {
        margin-bottom: 12px;
        /* was too big */
    }

    .old-price {
        font-size: 28px;
        display: block;
    }

    .new-price {
        font-size: 34px;
        line-height: 1.1;
        margin-top: 0;
    }

}


@media(max-width:768px) {
    .error-box {
        padding: 30px 20px;
    }

    .error-box h2 {
        font-size: 18px;
    }
}