/* ==========================================================================
   HOTEL WIFI
   ORDER / CHECKOUT PAGE
   ========================================================================== */


/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {

    --order-primary: #2563eb;
    --order-primary-dark: #1d4ed8;

    --order-text: #0f172a;
    --order-text-secondary: #475569;
    --order-text-muted: #64748b;

    --order-border: #dbe3ef;

    --order-bg: #f8fafc;
    --order-card: #ffffff;

    --order-radius: 14px;

    --order-shadow:
        0 8px 30px rgba(
            15,
            23,
            42,
            .06
        );

    --order-shadow-hover:
        0 14px 40px rgba(
            15,
            23,
            42,
            .09
        );
}


/* ==========================================================================
   PAGE
   ========================================================================== */

.order-page {

    min-height: calc(
        100vh - 70px
    );

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #f8fafc 100%
        );

    padding:
        38px 20px 52px;
}


.order-container {

    width: 100%;

    max-width: 1120px;

    margin: 0 auto;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.order-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: inherit;
}


.order-brand-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-size: 18px;

    font-weight: 800;

    box-shadow:
        0 6px 16px
        rgba(
            37,
            99,
            235,
            .20
        );
}


.order-brand-text {

    display: flex;

    flex-direction: column;
}


.order-brand-name {

    font-size: 16px;

    line-height: 1.2;

    font-weight: 800;

    color: var(--order-text);
}


.order-brand-subtitle {

    margin-top: 2px;

    font-size: 11px;

    line-height: 1.2;

    color: var(--order-text-muted);
}


.order-home-link {

    color:
        var(--order-text-secondary);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        color .2s ease;
}


.order-home-link:hover {

    color:
        var(--order-primary);
}


/* ==========================================================================
   ALERT
   ========================================================================== */

.order-alert {

    margin-bottom: 22px;

    padding: 16px 18px;

    border:
        1px solid #fecaca;

    border-radius: 12px;

    background: #fef2f2;

    color: #991b1b;

    font-size: 14px;
}


.order-alert-title {

    font-weight: 700;

    margin-bottom: 6px;
}


.order-alert ul {

    margin: 0;

    padding-left: 20px;
}


/* ==========================================================================
   FORM LAYOUT
   ========================================================================== */

#orderForm {

    display: grid;

    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(390px, .98fr);

    gap: 26px;

    align-items: start;
}


.order-column {

    min-width: 0;
}


.order-column-summary {

    position: sticky;

    top: 18px;
}


/* ==========================================================================
   SECTION HEADING
   ========================================================================== */

.order-section-heading {

    margin-bottom: 12px;
}


.order-section-heading h1,
.order-section-heading h2 {

    margin: 0;

    color: var(--order-text);

    font-size: 22px;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -.02em;
}


.order-section-heading p {

    margin:
        5px 0 0;

    color:
        var(--order-text-muted);

    font-size: 13px;

    line-height: 1.5;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.order-card {

    background:
        var(--order-card);

    border:
        1px solid var(--order-border);

    border-radius:
        var(--order-radius);

    box-shadow:
        var(--order-shadow);

    padding: 22px;

    transition:
        box-shadow .2s ease,
        border-color .2s ease;
}


.order-card:hover {

    box-shadow:
        var(--order-shadow-hover);
}


/* ==========================================================================
   CUSTOMER FORM
   ========================================================================== */

.order-form-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 17px 14px;
}


.order-form-group {

    min-width: 0;
}


.order-form-label {

    display: block;

    margin-bottom: 7px;

    color:
        #334155;

    font-size: 12px;

    line-height: 1.3;

    font-weight: 700;
}


.order-form-label .required {

    color: #dc2626;

    margin-left: 2px;
}


.order-form-control {

    width: 100%;

    min-height: 43px;

    box-sizing: border-box;

    padding:
        10px 12px;

    border:
        1px solid #cbd5e1;

    border-radius: 9px;

    background: #ffffff;

    color:
        var(--order-text);

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.order-form-control::placeholder {

    color: #94a3b8;
}


.order-form-control:hover {

    border-color:
        #94a3b8;
}


.order-form-control:focus {

    border-color:
        var(--order-primary);

    box-shadow:
        0 0 0 3px
        rgba(
            37,
            99,
            235,
            .10
        );
}


/* ==========================================================================
   INFO NOTE
   ========================================================================== */

.order-info-note {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 20px;

    padding: 12px 13px;

    border-radius: 9px;

    background:
        #f8fafc;

    color:
        var(--order-text-muted);

    font-size: 11px;

    line-height: 1.55;
}


.order-info-note-icon {

    flex: 0 0 auto;

    width: 20px;

    height: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        #dbeafe;

    color:
        var(--order-primary);

    font-size: 11px;

    font-weight: 800;
}


/* ==========================================================================
   PACKAGE
   ========================================================================== */

.order-package-header {

    display: flex;

    gap: 14px;

    align-items: flex-start;
}


.order-package-icon {

    flex: 0 0 auto;

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        #eff6ff;

    color:
        var(--order-primary);

    font-size: 18px;

    font-weight: 800;
}


.order-package-content {

    flex: 1;

    min-width: 0;
}


.order-package-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;
}


.order-package-top h3 {

    margin: 0;

    color:
        var(--order-text);

    font-size: 17px;

    line-height: 1.3;

    font-weight: 800;
}


.order-package-price {

    flex: 0 0 auto;

    color:
        var(--order-primary);

    font-size: 17px;

    line-height: 1.3;

    font-weight: 800;

    white-space: nowrap;
}


.order-package-code {

    margin-top: 3px;

    color:
        var(--order-text-muted);

    font-size: 11px;

    font-weight: 500;
}


.order-package-meta {

    margin-top: 5px;

    color:
        var(--order-text-muted);

    font-size: 12px;

    line-height: 1.4;
}


.order-package-meta strong {

    color:
        #334155;

    font-weight: 700;
}


.order-package-description {

    margin-top: 7px;

    color:
        var(--order-primary);

    font-size: 11px;

    line-height: 1.45;
}


/* ==========================================================================
   DIVIDER
   ========================================================================== */

.order-divider {

    height: 1px;

    margin:
        18px 0;

    background:
        #e2e8f0;
}


/* ==========================================================================
   SUMMARY ROW
   ========================================================================== */

.order-summary-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    min-height: 34px;

    color:
        var(--order-text-muted);

    font-size: 13px;
}


.order-summary-row + .order-summary-row {

    margin-top: 5px;
}


.order-summary-row strong {

    color:
        #334155;

    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================================================
   QUANTITY
   ========================================================================== */

.order-quantity-control {

    display: flex;

    align-items: center;

    height: 38px;

    overflow: hidden;

    border:
        1px solid #cbd5e1;

    border-radius: 8px;

    background: #ffffff;
}


.order-quantity-button {

    width: 36px;

    height: 100%;

    border: 0;

    background: #ffffff;

    color:
        #475569;

    font-family: inherit;

    font-size: 19px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}


.order-quantity-button:hover {

    background:
        #eff6ff;

    color:
        var(--order-primary);
}


#quantity {

    width: 42px;

    height: 100%;

    padding: 0;

    border: 0;

    border-left:
        1px solid #e2e8f0;

    border-right:
        1px solid #e2e8f0;

    background: #ffffff;

    color:
        var(--order-text);

    text-align: center;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    outline: none;
}


/* Hide number arrows */

#quantity::-webkit-inner-spin-button,
#quantity::-webkit-outer-spin-button {

    appearance: none;

    margin: 0;
}


#quantity {

    -moz-appearance: textfield;
}


/* ==========================================================================
   TOTAL
   ========================================================================== */

.order-total-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 16px;

    padding:
        13px 14px;

    border-radius: 10px;

    background:
        #eff6ff;

    color:
        var(--order-primary);

    font-size: 14px;

    font-weight: 800;
}


.order-total-box strong {

    font-size: 23px;

    line-height: 1.2;

    white-space: nowrap;
}


/* ==========================================================================
   PAYMENT INFO
   ========================================================================== */

.order-payment-info {

    margin-top: 19px;
}


.order-payment-title {

    color:
        var(--order-text);

    font-size: 16px;

    line-height: 1.3;

    font-weight: 800;
}


.order-payment-description {

    margin-top: 4px;

    color:
        var(--order-text-muted);

    font-size: 12px;

    line-height: 1.5;
}


.order-payment-method {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 12px;

    padding:
        10px 12px;

    border:
        1px solid #dbeafe;

    border-radius: 9px;

    background:
        #f8fbff;

    color:
        #334155;

    font-size: 12px;

    font-weight: 700;
}


.order-payment-icon {

    width: 28px;

    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    background:
        #dbeafe;

    color:
        var(--order-primary);

    font-size: 9px;

    font-weight: 800;
}


/* ==========================================================================
   SUBMIT
   ========================================================================== */

.order-submit-button {

    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 17px;

    padding:
        12px 18px;

    border: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 18px
        rgba(
            37,
            99,
            235,
            .20
        );

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        opacity .15s ease;
}


.order-submit-button:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 24px
        rgba(
            37,
            99,
            235,
            .24
        );
}


.order-submit-button:active {

    transform:
        translateY(0);
}


.order-submit-button:disabled {

    opacity: .65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


.order-submit-arrow {

    font-size: 19px;

    line-height: 1;
}


/* ==========================================================================
   SECURE NOTE
   ========================================================================== */

.order-secure-note {

    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin-top: 11px;

    color:
        #64748b;

    font-size: 10px;

    line-height: 1.5;

    text-align: center;

    justify-content: center;
}


.order-secure-note > span:first-child {

    color:
        var(--order-primary);

    font-weight: 800;
}


/* ==========================================================================
   INVALID PACKAGE
   ========================================================================== */

.order-invalid-package {

    max-width: 520px;

    margin: 50px auto;

    padding: 40px 30px;

    border:
        1px solid var(--order-border);

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        var(--order-shadow);

    text-align: center;
}


.order-invalid-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 14px;

    background:
        #eff6ff;

    color:
        var(--order-primary);

    font-size: 18px;

    font-weight: 800;
}


.order-invalid-package h1 {

    margin: 0;

    color:
        var(--order-text);

    font-size: 21px;

    font-weight: 800;
}


.order-invalid-package p {

    margin:
        8px 0 20px;

    color:
        var(--order-text-muted);

    font-size: 13px;

    line-height: 1.5;
}


.order-back-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding:
        0 18px;

    border-radius: 8px;

    background:
        var(--order-primary);

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.order-footer {

    border-top:
        1px solid #e2e8f0;

    background:
        #ffffff;

    padding:
        17px 20px;
}


.order-footer-inner {

    width: 100%;

    max-width: 1120px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 30px;
}


.order-footer-item {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.order-footer-icon {

    flex: 0 0 auto;

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background:
        #eff6ff;

    color:
        var(--order-primary);

    font-size: 11px;

    font-weight: 800;
}


.order-footer-item div {

    display: flex;

    flex-direction: column;

    min-width: 0;
}


.order-footer-item strong {

    color:
        #334155;

    font-size: 11px;

    line-height: 1.3;
}


.order-footer-item small {

    margin-top: 2px;

    color:
        #94a3b8;

    font-size: 10px;

    line-height: 1.3;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 899px) {

    .order-page {

        padding:
            28px 16px 40px;
    }


    #orderForm {

        grid-template-columns: 1fr;

        gap: 25px;
    }


    .order-column-summary {

        position: static;
    }

}


@media (max-width: 700px) {

    .customer-header-inner {

        padding-left: 16px !important;

        padding-right: 16px !important;
    }


    .order-page {

        padding:
            22px 12px 35px;
    }


    .order-card {

        padding: 17px;
    }


    .order-section-heading h1,
    .order-section-heading h2 {

        font-size: 20px;
    }


    .order-form-grid {

        grid-template-columns: 1fr;

        gap: 14px;
    }


    .order-package-top {

        flex-direction: column;

        gap: 5px;
    }


    .order-package-price {

        font-size: 16px;
    }


    .order-total-box strong {

        font-size: 20px;
    }


    .order-footer {

        padding:
            15px 12px;
    }


    .order-footer-inner {

        grid-template-columns: 1fr;

        gap: 12px;
    }

}


@media (max-width: 430px) {

    .order-brand-icon {

        width: 38px;

        height: 38px;

        font-size: 16px;
    }


    .order-brand-name {

        font-size: 14px;
    }


    .order-brand-subtitle {

        font-size: 10px;
    }


    .order-home-link {

        font-size: 12px;
    }


    .order-card {

        padding: 15px;
    }


    .order-package-icon {

        width: 46px;

        height: 46px;
    }


    .order-total-box {

        padding:
            12px;
    }


    .order-total-box strong {

        font-size: 18px;
    }

}