/* Enhanced Quiz 2 Styles */

/* Children Section Styles */
.children-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid #e9ecef;
}

.child-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.child-entry:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.child-entry:last-child {
    margin-bottom: 0;
}

.child-number {
    font-weight: 600;
    color: #495057;
    min-width: 60px;
}

.child-entry select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.child-entry select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.remove-child {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.remove-child:hover {
    background: #c82333;
}

.add-child-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 12px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-child-btn:hover {
    background: #218838;
}

.add-child-btn i {
    font-size: 12px;
}

/* Budget Range Styles */
.budget-range {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.budget-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.budget-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.budget-option.selected {
    border-color: #007bff;
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

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

.budget-option label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
}

.budget-option.selected label {
    color: white;
}

/* Custom Budget Input */
.custom-budget {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    animation: slideDown 0.3s ease;
}

.custom-budget input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.custom-budget input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .budget-range {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 6px;
    }
    
    .budget-option {
        padding: 10px 8px;
    }
    
    .budget-option label {
        font-size: 13px;
    }
    
    .child-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .child-number {
        min-width: auto;
    }
    
    .child-entry select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .budget-range {
        grid-template-columns: 1fr;
    }
    
    .children-container {
        padding: 12px;
    }
    
    .child-entry {
        padding: 10px;
    }
}

/* Enhanced Question Card Styles */
.question-card {
    transition: all 0.3s ease;
}

.question-card.active {
    animation: fadeInUp 0.4s ease;
}

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

/* Loading States */
.budget-option.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.child-entry.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success States */
.budget-option.success {
    border-color: #28a745;
    background: #d4edda;
}

.child-entry.success {
    border-color: #28a745;
    background: #d4edda;
}

/* Error States */
.budget-option.error {
    border-color: #dc3545;
    background: #f8d7da;
}

.child-entry.error {
    border-color: #dc3545;
    background: #f8d7da;
}
