/* ========== CHECKOUT PAGE - Clean & Minimal Design ========== */

.checkout-section {
    padding: 40px 0 60px;
    background: #f7f8fa;
    min-height: 80vh;
}

/* Header & Steps */
.checkout-header {
    text-align: center;
    margin-bottom: 32px;
}
.checkout-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.checkout-steps .step {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eee;
    transition: all 0.3s;
}
.checkout-steps .step.active {
    background: #1e3869;
    color: #fff;
}
.checkout-steps .step-divider {
    width: 24px;
    height: 2px;
    background: #ddd;
}

/* Grid Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

/* Cards */
.checkout-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.checkout-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.checkout-card .card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.checkout-card .card-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

/* Form Elements */
.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.form-col {
    flex: 1;
}
.form-col.full {
    flex: 1 1 100%;
}
.input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}
.checkout-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1.5px solid #e0e3e8;
    border-radius: 8px;
    background: #fafbfc;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.checkout-input:focus {
    border-color: #1e3869;
    box-shadow: 0 0 0 3px rgba(30,56,105,0.08);
    background: #fff;
}
.checkout-input::placeholder {
    color: #aaa;
}
.checkout-textarea {
    min-height: 70px;
    resize: vertical;
}

/* Phone Verify Section */
.phone-verify-row {
    margin-bottom: 16px;
}
.input-with-btn {
    display: flex;
    gap: 10px;
}
.input-with-btn .checkout-input {
    flex: 1;
}
.btn-checkout-secondary {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f2f5;
    color: #1e3869;
    border: 1.5px solid #1e3869;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-checkout-secondary:hover {
    background: #1e3869;
    color: #fff;
}
.btn-checkout-primary {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    background: #1e3869;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-checkout-primary:hover {
    background: #15294d;
}
.mt-12 { margin-top: 12px; }

/* OTP Boxes */
.otp-section {
    margin-top: 16px;
}
.otp-input-group {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.otp-box {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid #e0e3e8;
    border-radius: 8px;
    outline: none;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s;
}
.otp-box:focus {
    border-color: #1e3869;
    box-shadow: 0 0 0 3px rgba(30,56,105,0.08);
    background: #fff;
}
.otp-box.filled {
    border-color: #28a745;
    background: #f0fff4;
}
.otp-msg {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}
.verified-badge {
    margin-top: 12px;
    padding: 10px 16px;
    background: #e8f8ee;
    color: #1a7a3a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* Order Summary */
.summary-card .order-items-list {
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}
.summary-card .order-items-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.summary-card .order-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
}
.summary-card .order-items-list li:last-child {
    border-bottom: none;
}
.summary-card .order-items-list li span {
    font-weight: 600;
    color: #1a1a1a;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
}
.summary-line .free-tag {
    color: #28a745;
    font-weight: 500;
    font-size: 12px;
}
.discount-line {
    color: #28a745;
}
.discount-amount {
    font-weight: 600;
}
.remove-coupon-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 12px;
    border-top: 2px solid #1e3869;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Coupon */
.coupon-row {
    display: flex;
    gap: 8px;
    margin: 12px 0 4px;
}
.coupon-input {
    flex: 1;
    padding: 8px 12px !important;
    font-size: 13px !important;
}
.btn-coupon {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f2f5;
    color: #333;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-coupon:hover {
    background: #e8eaed;
    border-color: #bbb;
}
.coupon-msg {
    font-size: 11px;
    display: block;
    margin-bottom: 8px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sin-payment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1.5px solid #e0e3e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.sin-payment:hover {
    border-color: #1e3869;
    background: #f8f9fc;
}
.sin-payment input[type="radio"] {
    accent-color: #1e3869;
    width: 16px;
    height: 16px;
}
.sin-payment input[type="radio"]:checked ~ label {
    color: #1e3869;
    font-weight: 600;
}
.sin-payment label {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    flex: 1;
}
.sin-payment .payment-box {
    display: none;
}

/* Place Order Button */
.btn-place-order {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    background: #1e3869;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}
.btn-place-order:hover {
    background: #15294d;
}
.btn-place-order:active {
    transform: scale(0.98);
}
.btn-place-order:disabled {
    background: #aab4c2;
    cursor: not-allowed;
}
.privacy-note {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .checkout-section {
        padding: 16px 0 80px;
    }
    .checkout-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .checkout-header {
        margin-bottom: 20px;
    }
    .checkout-header h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .checkout-steps {
        gap: 6px;
        flex-wrap: nowrap;
    }
    .checkout-steps .step {
        font-size: 10px;
        padding: 5px 8px;
        white-space: nowrap;
    }
    .checkout-steps .step-divider {
        width: 10px;
        min-width: 10px;
    }
    .checkout-card {
        padding: 18px 14px;
        border-radius: 10px;
        margin-bottom: 14px;
    }
    .checkout-card h4 {
        font-size: 15px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-col {
        margin-bottom: 12px;
    }
    .checkout-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        border-radius: 8px;
    }
    .input-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* Phone verify */
    .input-with-btn {
        flex-direction: column;
        gap: 10px;
    }
    .input-with-btn .checkout-input {
        width: 100%;
    }
    .input-with-btn .btn-checkout-secondary {
        width: 100%;
        padding: 12px 20px;
        text-align: center;
    }

    /* OTP */
    .otp-input-group {
        justify-content: center;
        gap: 6px;
    }
    .otp-box {
        width: 40px;
        height: 44px;
        font-size: 18px;
        border-radius: 8px;
    }
    .btn-checkout-primary {
        width: 100%;
        padding: 12px;
        text-align: center;
    }

    /* Order summary */
    .summary-card .order-items-list {
        max-height: 150px;
    }
    .summary-card .order-items-list li {
        font-size: 12px;
        padding: 6px 0;
    }
    .summary-line {
        font-size: 12px;
        padding: 6px 0;
    }
    .summary-total {
        font-size: 15px;
        padding: 12px 0 0;
        margin-top: 10px;
    }

    /* Coupon */
    .coupon-row {
        flex-direction: column;
        gap: 8px;
    }
    .coupon-input {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    .coupon-row .btn-coupon {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
    .coupon-msg {
        font-size: 11px;
    }

    /* Grid / Layout */
    .checkout-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .checkout-left, .checkout-right {
        width: 100%;
    }

    /* Payment */
    .sin-payment {
        padding: 12px 14px;
    }
    .sin-payment label {
        font-size: 13px;
    }
    .sin-payment input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    /* Place Order */
    .btn-place-order {
        padding: 14px;
        font-size: 15px;
        border-radius: 10px;
        position: sticky;
        bottom: 10px;
        z-index: 100;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    }
    .privacy-note {
        font-size: 10px;
        margin-top: 8px;
    }

    /* Back button */
    .btn-back-step {
        padding: 12px;
        font-size: 13px;
    }

    /* Steps */
    #checkoutStep1, #checkoutStep2 {
        width: 100%;
        overflow-x: hidden;
    }

    /* Summary mini */
    .summary-card-mini {
        padding: 14px 16px !important;
    }

    /* Discount row */
    .discount-line {
        flex-wrap: wrap;
        gap: 4px;
    }
    .discount-line small {
        font-size: 10px;
    }

    /* Verified badge */
    .verified-badge {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Textarea */
    .checkout-textarea {
        min-height: 60px;
        font-size: 16px;
    }
}

/* Back Button */
.btn-back-step {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: #666;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}
.btn-back-step:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

/* Summary Card Mini (Step 2 recap) */
.summary-card-mini {
    padding: 16px 20px !important;
}
.summary-card-mini .summary-total {
    padding: 0;
    margin: 0;
    border-top: none;
}
