/* ============================================
   CHECKOUT PAGE SPECIFIC STYLES
   WiFiHapa - Checkout & Payment Styles
   ============================================ */
/* Main Content */
.main-content {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Hero Section */
.checkout-hero {
    background: linear-gradient(145deg, #edf4ff 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 32px;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(13, 110, 253, 0.05);
    transition: var(--transition, all 0.3s ease);
}

body.dark .checkout-hero {
    background: var(--hero-bg, linear-gradient(145deg, #111827 0%, #1e2538 100%));
}

@media (max-width: 768px) {
    .checkout-hero {
        padding: 1rem;
    }
}

/* Checkout Card */
.checkout-card {
    background: var(--card-bg, white);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--border-light, rgba(0, 0, 0, 0.05));
    height: 100%;
}

body.dark .checkout-card {
    background: var(--card-bg, #1e2538);
}

@media (max-width: 768px) {
    .checkout-card {
        padding: 1rem;
    }
}

/* Section Title */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #0a2c3d);
}

/* Form Elements */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary, #0a2c3d);
    margin-bottom: 0.4rem;
}

.form-control-custom {
    border-radius: 12px;
    padding: 0.7rem 1rem;
    border: 1px solid #e9ecef;
    width: 100%;
    background: var(--input-bg, white);
    color: var(--text-primary, #0a2c3d);
    transition: var(--transition, all 0.2s ease);
}

body.dark .form-control-custom {
    background: var(--input-bg, #2d3748);
    border-color: var(--border-light, rgba(255, 255, 255, 0.05));
}

.form-control-custom:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
    outline: none;
}

/* Payment Methods */
.payment-method {
    border: 1.5px solid #e9ecef;
    border-radius: 12px;
    padding: 0.8rem;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
    margin-bottom: 0.8rem;
    background: var(--card-bg, white);
    color: var(--text-primary, #0a2c3d);
}

body.dark .payment-method {
    background: var(--card-bg, #1e2538);
    border-color: var(--border-light, rgba(255, 255, 255, 0.05));
}

.payment-method:hover {
    border-color: #0d6efd;
    background: var(--dropdown-hover, #f8f9fa);
}

.payment-method.selected {
    border-color: #d4a11e;
    background: #fff9e6;
}

body.dark .payment-method.selected {
    background: #2a2a1c;
}

/* Order Summary */
.order-summary {
    background: var(--badge-light-bg, #f8fafd);
    border-radius: 20px;
    padding: 1rem;
}

body.dark .order-summary {
    background: var(--badge-light-bg, #2a3448);
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    background: #d4a11e;
    border: none;
    border-radius: 50px;
    padding: 0.8rem;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    transition: var(--transition, all 0.2s ease);
    cursor: pointer;
}

.btn-checkout:hover {
    background: #b3881a;
    transform: scale(0.98);
}

/* Form Check */
.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    font-size: 0.8rem;
    color: var(--text-secondary, #5e6f7d);
}

/* Alert */
.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    border: none;
    color: #0d6efd;
}

body.dark .alert-info {
    background-color: rgba(13, 110, 253, 0.2);
}

/* Trust Badges */
.trust-badge {
    text-align: center;
}

.trust-badge i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.trust-badge p {
    font-size: 0.7rem;
    margin: 0;
}

/* Success Modal */
.modal-success {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-success-content {
    background: var(--card-bg, white);
    max-width: 400px;
    width: 90%;
    border-radius: 28px;
    padding: 1.5rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

body.dark .modal-success-content {
    background: var(--card-bg, #1e2538);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1rem;
    }

    .payment-method {
        padding: 0.6rem;
    }

    .checkout-card {
        margin-bottom: 1rem;
    }

    .btn-checkout {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .checkout-hero h1 {
        font-size: 1.2rem;
    }

    .order-summary {
        padding: 0.8rem;
    }

    .trust-badge p {
        font-size: 0.6rem;
    }
}