/* RSVP Wizard Styles */

.rsvp-wizard-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 6;
}

/* Ensure the wizard is clickable even inside neela form wrapper */
#rsvp .form-wrapper.neela-style {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}
#rsvp .form-wrapper.neela-style::before,
#rsvp .form-wrapper.neela-style::after {
    pointer-events: none;
}
#rsvp .form-wrapper.neela-style .h-lines,
#rsvp .form-wrapper.neela-style .v-lines {
    pointer-events: none;
}

.form-wrapper .rsvp-wizard-container {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef3f6;
    color: #5a7480;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    z-index: 2;
    border: 1px solid #d5e0e5;
}

.wizard-step.active .step-number {
    background: #8eaeba;
    border-color: #7d9ba8;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(142, 174, 186, 0.25);
}

.wizard-step.completed .step-number {
    background: #7d9ba8;
    border-color: #6b8895;
    color: #fff;
}

.step-label {
    font-size: 0.85rem;
    color: #5a7480;
    text-align: center;
    transition: color 0.3s ease;
}

.wizard-step.active .step-label {
    color: #3e545e;
    font-weight: 600;
}

.step-line {
    height: 2px;
    background: #e4ecef;
    flex: 1;
    margin: 0 -1rem;
    margin-top: -20px;
    z-index: 1;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: #8eaeba;
}

/* Wizard Content */
.wizard-content {
    min-height: 400px;
}

.wizard-step-content {
    display: none;
}

.wizard-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Step Headers */
.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #666;
    font-size: 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group label.required::after {
    content: " *";
    color: #d32f2f;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control.error {
    border-color: #d32f2f;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-control.error + .error-message {
    display: block;
}

/* Guest Cards */
.guest-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fafafa;
}

.guest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.guest-card-header h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.guest-number {
    background: #eef3f6;
    color: #5a7480;
    border: 1px solid #d5e0e5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Radio and Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover, .checkbox-option:hover {
    background: #f5f5f5;
    border-color: #d4af37;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.radio-option.selected,
.checkbox-option.selected {
    background: #fff8e1;
    border-color: #d4af37;
    border-width: 2px;
}

/* Number Selector */
.number-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.number-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #8eaeba;
    background: #f4f8fa;
    color: #5a7480;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.number-btn:hover {
    background: #8eaeba;
    color: #fff;
    box-shadow: 0 6px 12px rgba(142, 174, 186, 0.25);
}

.number-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.number-display {
    font-size: 3rem;
    font-weight: 600;
    color: #4a4124;
    min-width: 100px;
    text-align: center;
}

/* Quick Number Buttons */
.quick-numbers {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.quick-number-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d5e0e5;
    background: #fff;
    color: #4a5e68;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.2rem;
}

.quick-number-btn:hover, .quick-number-btn.active {
    background: #8eaeba;
    color: #fff;
    border-color: #7d9ba8;
    box-shadow: 0 4px 10px rgba(142, 174, 186, 0.25);
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.wizard-btn {
    margin: 0.3rem;
    padding: 0.75rem 2rem;
}

.btn-wizard:disabled,
.wizard-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* Loading State */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f6f8;
    border-top: 4px solid #8eaeba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
}

.success-message.active {
    display: block;
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .rsvp-wizard-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .wizard-progress {
        padding: 0;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .guest-card {
        padding: 1rem;
    }
    
    .number-display {
        font-size: 2.5rem;
    }
    
    .wizard-navigation {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .btn-wizard {
        width: 100%;
    }
}
