/* CDA Calculator 2025 Styles */
/* Extracted from calculator-form.php */

.cda-calculator-container-2025 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 2rem;
    margin: 2rem auto;
    color: #333;
    position: relative;
    overflow: hidden;
    
    --cda-primary: #0056b3;
    --cda-secondary: #25D366; /* WhatsApp Green */
    --cda-accent: #ffc107;
    --cda-gray: #6c757d;
    --cda-light: #f8f9fa;
    --cda-border-radius: 8px;
}

/* Header */
.cda-calculator-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.cda-calculator-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--cda-primary);
    margin: 0 0 0.5rem 0;
}

.cda-calculator-subtitle {
    font-size: 16px;
    color: var(--cda-gray);
    margin: 0;
}

/* Service Selector */
.cda-service-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.cda-service-selector h2 {
    font-size: 18px;
    margin-bottom: 1rem;
    color: #444;
}

.service-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-btn {
    background: white;
    border: 2px solid #eee;
    padding: 12px 20px;
    border-radius: var(--cda-border-radius);
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-btn:hover {
    border-color: var(--cda-primary);
    color: var(--cda-primary);
}

.service-btn.active {
    background: var(--cda-primary);
    border-color: var(--cda-primary);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--cda-border-radius);
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--cda-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,86,179, 0.1);
}

.form-control:disabled {
    background: #f9f9f9;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Preventiva Cards */
.preventiva-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.option-card {
    border: 1px solid #eee;
    border-radius: var(--cda-border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--cda-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.option-card h4 {
    margin-top: 0;
    color: #444;
}

.option-card .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--cda-primary);
    margin: 1rem 0;
}

.option-card .savings {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    background: var(--cda-primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--cda-border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.calculate-btn:hover {
    background: #004494;
}

.calculate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Result Section */
.calculator-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #eee;
    animation: fadeIn 0.5s ease;
}

.calculator-result h3 {
    text-align: center;
    color: #444;
    margin-bottom: 1.5rem;
}

.result-breakdown {
    background: var(--cda-light);
    padding: 1.5rem;
    border-radius: var(--cda-border-radius);
}

.result-breakdown > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 15px;
}

.result-breakdown .total-final {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-weight: 800;
    font-size: 20px;
    color: var(--cda-primary);
}

.result-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Helpers */
.hidden {
    display: none;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

/* Custom Template Styles */
.service-description {
    font-size: 14px;
    color: var(--cda-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.option-description {
    font-size: 14px;
    color: var(--cda-gray);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.result-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-style: italic;
}

.agendar-cita-container {
    text-align: center;
    padding: 1rem;
}

.agendar-cita-btn {
    display: inline-block;
    background: var(--cda-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--cda-border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--cda-primary);
}

.agendar-cita-btn:hover {
    background: white;
    color: var(--cda-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Estilos para botón de asesor SOAT */
.agendar-cita-btn.asesor-style {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.agendar-cita-btn.asesor-style:hover {
    background: white;
    color: #25D366;
    border-color: #25D366;
}

.agendar-cita-btn.agendar-style {
    background: var(--cda-primary);
    border-color: var(--cda-primary);
    color: white;
}

.agendar-cita-btn.agendar-style:hover {
    background: white;
    color: var(--cda-primary);
    border-color: var(--cda-primary);
}

/* Finance Note */
.cda-finance-note {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ffeeba;
    display: none; /* Controlled by JS */
}

.result-content {
    display: flex;
    flex-direction: column;
}

@media (max-width: 479px) {
    .agendar-cita-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 18px;
    }
    .result-breakdown {
        grid-template-columns: 1fr !important;
    }
}
