/* NGEmail Checkout — wizard + order summary */

.checkout-page {
    --ck-primary: #6366f1;
    --ck-primary-dark: #4f46e5;
    --ck-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --ck-bg: #faf9ff;
    --ck-card-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
    --ck-hover-shadow: 0 15px 40px rgba(99, 102, 241, 0.14);
    background: var(--ck-bg);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.checkout-page .checkout-nav {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 14px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.checkout-page .checkout-nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark, #1e1b4b);
    font-weight: 700;
    font-size: 1.15rem;
}

.checkout-page .checkout-nav .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ck-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-page .checkout-main {
    padding-top: 96px;
    padding-bottom: 60px;
}

.checkout-page .step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.checkout-page .step-indicator::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

.checkout-page .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.checkout-page .step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.checkout-page .step-item.active .step-number {
    background: var(--ck-gradient);
    border-color: var(--ck-primary);
    color: #fff;
    transform: scale(1.08);
}

.checkout-page .step-item.completed .step-number {
    background: var(--ck-primary);
    border-color: var(--ck-primary-dark);
    color: #fff;
}

.checkout-page .step-label {
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.85rem;
}

.checkout-page .step-item.active .step-label,
.checkout-page .step-item.completed .step-label {
    color: var(--ck-primary-dark);
}

.checkout-page .step {
    display: none;
    animation: ckFadeIn 0.35s ease;
}

.checkout-page .step.active {
    display: block;
}

@keyframes ckFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-page .form-container,
.checkout-page .order-summary {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--ck-card-shadow);
    border: 1px solid rgba(99, 102, 241, 0.08);
    transition: box-shadow 0.25s ease;
}

.checkout-page .form-container:hover,
.checkout-page .order-summary:hover {
    box-shadow: var(--ck-hover-shadow);
}

.checkout-page .form-title {
    color: var(--ck-primary-dark);
    margin-bottom: 24px;
    font-size: 1.45rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.checkout-page .form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--ck-gradient);
    border-radius: 3px;
}

.checkout-page .form-label {
    font-weight: 600;
    color: var(--ck-primary-dark);
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.checkout-page .form-control,
.checkout-page .form-select {
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-page .form-control:focus,
.checkout-page .form-select:focus {
    border-color: var(--ck-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

.checkout-page .info-box {
    background: rgba(99, 102, 241, 0.06);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--ck-primary);
}

.checkout-page .info-box h5 {
    color: var(--ck-primary-dark);
    font-size: 1rem;
    margin-bottom: 8px;
}

.checkout-page .info-box ul {
    margin: 0;
    padding-left: 18px;
    color: #64748b;
    font-size: 0.88rem;
}

.checkout-page .payment-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.checkout-page .payment-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 10px 18px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
}

.checkout-page .payment-tabs .nav-link.active {
    color: var(--ck-primary-dark);
    background: rgba(99, 102, 241, 0.08);
    border-bottom-color: var(--ck-primary);
}

.checkout-page .payment-option {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.checkout-page .payment-option:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.checkout-page .payment-option.selected {
    border-color: var(--ck-primary);
    background: rgba(99, 102, 241, 0.05);
}

.checkout-page .payment-option input[type="radio"] {
    display: none;
}

.checkout-page .payment-icon {
    width: 52px;
    height: 52px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-page .payment-icon img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.checkout-page .payment-info h6 {
    margin: 0 0 2px;
    color: var(--ck-primary-dark);
    font-size: 0.95rem;
}

.checkout-page .payment-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.checkout-page .checkmark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-page .payment-option.selected .checkmark {
    background: var(--ck-primary);
    border-color: var(--ck-primary);
    color: #fff;
}

.checkout-page .checkmark i {
    font-size: 11px;
    opacity: 0;
}

.checkout-page .payment-option.selected .checkmark i {
    opacity: 1;
}

.checkout-page .confirmation-item {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    border-left: 3px solid var(--ck-primary);
}

.checkout-page .confirmation-label {
    color: var(--ck-primary-dark);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.checkout-page .confirmation-value {
    font-weight: 600;
    color: #1e293b;
}

.checkout-page .order-summary {
    position: sticky;
    top: 96px;
}

.checkout-page .order-summary h5 {
    color: var(--ck-primary-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.checkout-page .order-summary h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--ck-gradient);
    border-radius: 3px;
}

.checkout-page .summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.checkout-page .summary-label {
    color: #64748b;
}

.checkout-page .summary-value {
    font-weight: 600;
    color: #1e293b;
    text-align: right;
}

.checkout-page .price-original {
    color: #94a3b8 !important;
    text-decoration: line-through;
}

.checkout-page .discount {
    color: #10b981 !important;
}

.checkout-page .total-price {
    background: rgba(99, 102, 241, 0.08);
    padding: 14px;
    border-radius: 10px;
    margin: 16px 0;
}

.checkout-page .total-price .summary-value {
    color: var(--ck-primary-dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.checkout-page .btn-checkout {
    background: var(--ck-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 700;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-page .btn-checkout:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.checkout-page .btn-outline-checkout {
    background: transparent;
    color: var(--ck-primary-dark);
    border: 2px solid var(--ck-primary);
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
}

.checkout-page .btn-outline-checkout:hover {
    background: var(--ck-primary);
    color: #fff;
}

.checkout-page .btn-primary-step {
    background: var(--ck-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
}

.checkout-page .btn-primary-step:hover {
    color: #fff;
    opacity: 0.95;
}

.checkout-page #loaderOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.checkout-page .loader-text {
    margin-top: 16px;
    color: var(--ck-primary-dark);
    font-weight: 600;
}

.checkout-page .checkout-alert {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.88rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

@media (max-width: 768px) {
    .checkout-page .step-indicator {
        gap: 24px;
    }

    .checkout-page .order-summary {
        position: static;
        margin-top: 24px;
    }

    .checkout-page .form-container,
    .checkout-page .order-summary {
        padding: 22px;
    }
}
