/* ===========================
   TRANSACTION PAGE
=========================== */

.txn-page {
    min-height: calc(100vh - 64px);
}

.txn-header-section {
    padding: 40px;
    background: linear-gradient(140deg, #f4f8fc, #eef3fa);
    border-bottom: 2px solid #DCE3EF;
}

.txn-page-title {
    margin-bottom: 4px;
    color: #101828;
    font-size: 36px;
    font-weight: 900;
}

.txn-page-sub {
    color: #9AA0B4;
    font-size: 15px;
}

.txn-body {
    padding: 36px 40px;
}


/* ===========================
   PROGRESS STEP
=========================== */

.progress-steps {
    display: flex;
    align-items: center;
    margin-top: 28px;
}

.step-item {
    flex: 1;
    display: flex;
    align-items: center;
}

.step-circle {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.step-circle.done {
    background: #5B87B0;
    color: white;
}

.step-circle.active {
    background: #006FEE;
    color: white;
    box-shadow: 0 0 0 4px #EAF2FF;
}

.step-circle.todo {
    background: #DCE3EF;
    color: #9AA0B4;
}

.step-label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
}

.step-line {
    flex: 1;
    height: 3px;
    margin: 0 4px;
    border-radius: 2px;
}

.step-line.done {
    background: #006FEE;
}

.step-line.todo {
    background: #DCE3EF;
}


/* ===========================
   SECTION CARD
=========================== */

.txn-section,
.order-summary-card {
    background: #fff;
    border: 2px solid #DCE3EF;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 111, 238, .08);
}

.txn-section {
    padding: 28px;
    margin-bottom: 20px;
}

.order-summary-card {
    padding: 28px;
    position: sticky;
    top: 80px;
}

.txn-section-title,
.order-summary-title {
    margin-bottom: 20px;
    color: #101828;
    font-weight: 900;
}


/* ===========================
   DURATION
=========================== */

.dur-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.dur-item {
    padding: 16px 8px;
    background: #F7FAFF;
    border: 2px solid #DCE3EF;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
}

.dur-item:hover,
.dur-item.selected {
    background: #EAF2FF;
    border-color: #006FEE;
}

.dur-jam {
    font-size: 24px;
    font-weight: 900;
}

.dur-price-label {
    margin-top: 4px;
    color: #9AA0B4;
    font: 700 10px 'Space Mono', monospace;
}


/* ===========================
   SNACK
=========================== */

.snack-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.snack-card {
    position: relative;
    padding: 18px 12px;
    background: #F7FAFF;
    border: 2px solid #DCE3EF;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
}

.snack-card:hover,
.snack-card.selected {
    background: #EAF2FF;
    border-color: #006FEE;
}

.snack-emoji {
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
}

.snack-name {
    margin-bottom: 4px;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
}

.snack-price {
    color: #006FEE;
    font: 700 11px 'Space Mono', monospace;
}

.snack-check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    width: 22px;
    height: 22px;
    background: #006FEE;
    color: #fff;
    border-radius: 50%;
}

.snack-card.selected .snack-check-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===========================
   PAYMENT
=========================== */

.pay-option {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 18px 20px;
    background: #F7FAFF;
    border: 2px solid #DCE3EF;
    border-radius: 14px;
    cursor: pointer;
    transition: .2s;
}

.pay-option:hover,
.pay-option.selected {
    background: #EAF2FF;
    border-color: #006FEE;
}

.pay-emoji {
    width: 32px;
    color: #006FEE;
    font-size: 26px;
    text-align: center;
}

.pay-name {
    color: #101828;
    font-size: 15px;
    font-weight: 800;
}

.pay-sub {
    color: #9AA0B4;
    font-size: 12px;
}

.pay-check {
    margin-left: auto;
    display: none;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    background: #006FEE;
    color: white;
    border-radius: 50%;
}

.pay-option.selected .pay-check {
    display: flex;
}


/* ===========================
   PAYMENT DETAIL
=========================== */

.pay-detail-panel {
    margin: -8px 0 12px;
    padding: 16px;
    background: #F7FAFF;
    border: 1.5px dashed #006FEE;
    border-radius: 0 0 14px 14px;
}


/* ===========================
   QRIS
=========================== */

.qris-detail {
    padding: 16px 0;
    text-align: center;
}

.qris-frame {
    display: inline-block;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border: 3px solid #006FEE;
    border-radius: 16px;
}

.qris-frame img {
    width: 180px;
    border-radius: 8px;
}

.qris-title {
    color: #101828;
    font-size: 13px;
    font-weight: 800;
}

.qris-sub {
    color: #9AA0B4;
    font-size: 12px;
}


/* ===========================
   BANK TRANSFER
=========================== */

.bank-label {
    margin-bottom: 12px;
    color: #9AA0B4;
    font: 800 12px 'Space Mono', monospace;
}

.bank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 12px 14px;
    background: #F7FAFF;
    border: 2px solid #DCE3EF;
    border-radius: 12px;
    cursor: pointer;
}

.bank-row:hover {
    border-color: #006FEE;
}

.bank-badge {
    width: 48px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #006FEE;
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
}

.bank-rek {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}

.bank-an {
    color: #9AA0B4;
    font-size: 11px;
}

.bank-copy-icon {
    margin-left: auto;
    color: #006FEE;
}


/* ===========================
   CASH DETAIL
=========================== */

.cash-icon {
    color: #006FEE;
    font-size: 44px;
    margin-bottom: 12px;
}

.cash-title {
    color: #101828;
    font-size: 16px;
    font-weight: 900;
}

.cash-sub {
    color: #9AA0B4;
    font-size: 13px;
}


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

.order-room-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 18px;
    background: #F7FAFF;
    border: 1.5px solid #DCE3EF;
    border-radius: 14px;
}

.order-room-emoji {
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #EAF2FF;
    border-radius: 12px;
    color: #006FEE;
    font-size: 26px;
}

.order-room-name {
    color: #101828;
    font-size: 15px;
    font-weight: 900;
}

.order-room-price {
    color: #006FEE;
    font-size: 13px;
    font-weight: 700;
}

.order-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #EAF2FF;
    font-size: 13px;
}

.order-line-key {
    color: #9AA0B4;
}

.order-line-val {
    color: #101828;
    font-weight: 800;
}


/* ===========================
   TOTAL
=========================== */

.order-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    padding: 16px;
    background: #006FEE;
    border-radius: 14px;
    color: white;
}

.order-total-label {
    font-weight: 900;
}

.order-total-value {
    font: 900 22px 'Space Mono', monospace;
}


/* ===========================
   CONFIRM BUTTON
=========================== */

.btn-confirm {
    width: 100%;
    padding: 14px;
    background: #006FEE;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 900;
    transition: .2s;
}

.btn-confirm:hover:not(:disabled) {
    background: #0057c2;
    transform: translateY(-2px);
}

.btn-confirm:disabled {
    background: #DCE3EF;
    color: #9AA0B4;
}


/* ===========================
   SUCCESS MODAL
=========================== */

.modal-success-icon {
    color: #10B981;
    font-size: 56px;
}

.modal-success-title {
    color: #101828;
    font-size: 24px;
    font-weight: 900;
}

.modal-success-sub {
    color: #9AA0B4;
    font-size: 13px;
}

.modal-booking-code {
    display: inline-block;
    padding: 10px 24px;
    background: #EAF2FF;
    border: 2px dashed #006FEE;
    border-radius: 12px;
    color: #006FEE;
    font: 900 20px 'Space Mono', monospace;
}


/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:992px) {

    .dur-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .snack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .txn-body {
        padding: 25px;
    }

}