/* signup-wizard.css - Additional styles for the existing wizard structure */

/* Plan Selection Enhancements */
.plan-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: white;
}

.plan-card .card-body {
    background-color: white;
    color: #333;
}

.plan-card .card-body ul li {
    color: #555;
}

.plan-card .card-body .text-muted {
    color: #6c757d !important;
}

.plan-card .card-header {
    background: #f8f9fa !important;
    color: #333 !important;
    border-bottom: 1px solid #dee2e6;
}

.plan-card .card-header h4 {
    color: #333 !important;
    margin-bottom: 10px;
    font-weight: 600;
}

.plan-card .card-header h2 {
    color: #007bff !important;
    margin-bottom: 5px;
    font-weight: bold;
}

.plan-card .card-header .text-muted {
    color: #6c757d !important;
}

.plan-card .card-header p {
    color: #6c757d !important;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.plan-card.selected {
    border-color: #007bff !important;
    background-color: #f8f9ff;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    transform: translateY(-3px);
}

.plan-card.selected .card-body {
    background-color: #f8f9ff;
    color: #333;
}

.plan-card.selected .card-header {
    background: #e8f4fd !important;
    color: #333 !important;
    border-bottom: 1px solid #007bff;
}

.plan-card.selected .card-header h2 {
    color: #0056b3 !important;
}

.plan-card.selected::after {
    content: "✓ Selected";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* Billing Toggle Improvements */
.billing-toggle {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.btn-group .btn {
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-group .btn:first-child {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.btn-group .btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Form Validation */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.step-navigation .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.step-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-navigation .btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Summary Cards */
.summary-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-card h5 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.summary-card .row {
    margin-bottom: 8px;
    padding: 3px 0;
}

.summary-card .row:last-child {
    border-top: 2px solid #007bff;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}

/* Auto-fill helpers */
.auto-fill-note {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
}

/* Progress Bar Enhancements */
.progress-step {
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.progress-step.completed .step-circle {
    transform: scale(1.05);
}

.step-label {
    transition: color 0.3s ease;
    font-weight: 500;
}

.progress-step.active .step-label {
    font-weight: 600;
}

/* Payment Section */
.payment-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

#complete-payment {
    background: #28a745;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#complete-payment:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

#complete-payment:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Loading States */
.spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-navigation .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .plan-card {
        margin-bottom: 20px;
    }
    
    .plan-card.selected::after {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 576px) {
    .billing-toggle {
        padding: 15px 10px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .payment-section {
        padding: 20px 15px;
    }
    
    #complete-payment {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.wizard-step.active {
    animation: fadeIn 0.3s ease-in;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.plan-card.selected {
    animation: pulse 0.6s ease-in-out;
}

/* Focus states for accessibility */
.plan-card:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .plan-card {
        border-width: 3px;
    }
    
    .plan-card.selected {
        border-width: 4px;
    }
    
    .progress-step.active .step-circle,
    .progress-step.completed .step-circle {
        border-width: 4px;
    }
}