/* LexNova Checkout Modal Styles */

/* Checkout Modal Overlay */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.checkout-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Checkout Modal */
.checkout-modal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .checkout-modal {
    background: rgba(18, 32, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-overlay.active .checkout-modal {
    transform: scale(1);
    opacity: 1;
}

/* Checkout Header */
.checkout-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .checkout-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f1a13;
    margin-bottom: 1.5rem;
}

.dark .checkout-title {
    color: #f8fbfa;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.dark .step-circle {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.step-circle.active {
    background: #26d971;
    color: #0f1a13;
    box-shadow: 0 0 0 4px rgba(38, 217, 113, 0.2);
}

.step-circle.completed {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.dark .step-label {
    color: #94a3b8;
}

.step-label.active {
    color: #0f1a13;
    font-weight: 600;
}

.dark .step-label.active {
    color: #f8fbfa;
}

.step-divider {
    width: 2rem;
    height: 2px;
    background: #e2e8f0;
}

.dark .step-divider {
    background: rgba(255, 255, 255, 0.1);
}

/* Checkout Body */
.checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* User Type Selection */
.user-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-type-card {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.dark .user-type-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.user-type-card:hover {
    border-color: #26d971;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 217, 113, 0.2);
}

.user-type-card.selected {
    border-color: #26d971;
    background: rgba(38, 217, 113, 0.05);
}

.user-type-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: #64748b;
}

.user-type-card.selected .user-type-icon {
    color: #26d971;
}

.user-type-title {
    font-weight: 600;
    color: #0f1a13;
    margin-bottom: 0.5rem;
}

.dark .user-type-title {
    color: #f8fbfa;
}

.user-type-desc {
    font-size: 0.875rem;
    color: #64748b;
}

/* Form Styles */
.checkout-form {
    display: none;
}

.checkout-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.dark .form-label {
    color: #cbd5e1;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
    color: #0f1a13;
}

.dark .form-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fbfa;
}

.form-input:focus {
    outline: none;
    border-color: #26d971;
    box-shadow: 0 0 0 3px rgba(38, 217, 113, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkout Footer */
.checkout-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
}

.dark .checkout-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.dark .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.dark .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: #26d971;
    color: #0f1a13;
}

.btn-primary:hover {
    background: #22c766;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 217, 113, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 640px) {
    .checkout-modal {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .user-type-selection {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-label {
        display: none;
    }
}