/* Childcare Cost Calculator */

.ccc-form-card {
    max-width: 600px;
    margin: -32px auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 32px;
    position: relative;
    z-index: 1;
}

.ccc-section {
    margin-bottom: 24px;
}

.ccc-section:last-of-type {
    margin-bottom: 0;
}

.ccc-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 16px;
}

.ccc-section-icon {
    font-size: 20px;
}

.ccc-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #3D2F50;
    margin: 16px 0 6px;
}

.ccc-section-title + .ccc-label {
    margin-top: 0;
}

.ccc-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #3D2F50;
    background: #fff;
    appearance: auto;
}

.ccc-input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.ccc-prefix {
    position: absolute;
    left: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #695A80;
    pointer-events: none;
}

.ccc-input {
    width: 100%;
    padding: 10px 12px 10px 28px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #3D2F50;
}

.ccc-input:focus,
.ccc-select:focus {
    outline: none;
    border-color: #8B7BB8;
    box-shadow: 0 0 0 3px rgba(139,123,184,0.12);
}

/* Toggle buttons */
.ccc-toggle-row {
    display: flex;
    gap: 8px;
}

.ccc-toggle {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    background: #fff;
    color: #3D2F50;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.ccc-toggle:hover {
    border-color: #8B7BB8;
    background: #f5f2fa;
}

.ccc-toggle.active {
    background: linear-gradient(135deg, #8B7BB8, #a594d0);
    color: #fff;
    border-color: #8B7BB8;
}

/* Optional section */
.ccc-optional-section {
    border-top: 1px solid rgba(139,123,184,0.10);
    padding-top: 16px;
}

.ccc-optional-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 0;
    border: none;
    background: none;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #695A80;
    cursor: pointer;
}

.ccc-chevron {
    font-size: 16px;
    transition: transform 0.2s;
}

.ccc-optional-fields {
    padding-top: 8px;
}

/* Calculate button */
.ccc-calculate-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ccc-calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123,200,184,0.3);
}

/* Results */
.ccc-results {
    animation: cccFadeIn 0.3s ease;
}

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

.ccc-results-card {
    max-width: 600px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 32px;
}

/* Verdict */
.ccc-verdict {
    text-align: center;
    margin-bottom: 20px;
}

.ccc-verdict-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.ccc-verdict-badge.positive { background: #2ea44f; }
.ccc-verdict-badge.neutral { background: #f9a825; }
.ccc-verdict-badge.negative { background: #e53935; }

.ccc-verdict-text {
    font-size: 15px;
    color: #695A80;
    margin: 10px 0 0;
    line-height: 1.5;
}

/* Big number */
.ccc-big-number {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(139,123,184,0.10);
    margin-bottom: 20px;
}

.ccc-big-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ccc-big-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #3D2F50;
    line-height: 1.1;
}

.ccc-big-sub {
    display: block;
    font-size: 15px;
    color: #695A80;
    margin-top: 6px;
}

/* Breakdown */
.ccc-breakdown {
    margin-bottom: 20px;
}

.ccc-breakdown-title {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 12px;
}

.ccc-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: #3D2F50;
    border-bottom: 1px solid rgba(139,123,184,0.06);
}

.ccc-breakdown-row.income {
    font-weight: 700;
}

.ccc-breakdown-row.deduction span:last-child {
    color: #e53935;
}

.ccc-breakdown-row.childcare span:last-child {
    color: #e53935;
    font-weight: 700;
}

.ccc-breakdown-row.extra span:last-child {
    color: #e53935;
}

.ccc-breakdown-row.total {
    border-bottom: none;
    border-top: 2px solid #3D2F50;
    padding-top: 12px;
    margin-top: 4px;
    font-weight: 800;
    font-size: 16px;
}

.ccc-net-value.positive { color: #2ea44f; }
.ccc-net-value.negative { color: #e53935; }

/* Tax savings */
.ccc-tax-savings {
    background: #f5f2fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 4px;
}

.ccc-savings-title {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 12px;
}

.ccc-savings-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccc-savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.ccc-savings-label {
    color: #695A80;
}

.ccc-savings-value {
    font-weight: 700;
    color: #2ea44f;
}

.ccc-savings-item.total {
    border-top: 1px solid rgba(139,123,184,0.15);
    padding-top: 8px;
    margin-top: 4px;
}

.ccc-savings-item.total .ccc-savings-label {
    font-weight: 700;
    color: #3D2F50;
}

/* Part-time comparison */
.ccc-comparison {
    max-width: 600px;
    margin: 0 auto 24px;
    padding: 24px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    background: #fff;
}

.ccc-comparison-title {
    font-size: 17px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 16px;
}

.ccc-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ccc-comparison-card {
    text-align: center;
    padding: 16px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    background: #faf8ff;
}

.ccc-comparison-card.current {
    border-color: #8B7BB8;
    background: linear-gradient(135deg, rgba(139,123,184,0.06), rgba(139,123,184,0.02));
}

.ccc-comparison-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ccc-comparison-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #3D2F50;
}

.ccc-comparison-sub {
    display: block;
    font-size: 13px;
    color: #695A80;
    margin-top: 4px;
}

/* State link */
.ccc-state-link {
    display: block;
    width: fit-content;
    margin: 0 auto 24px;
    text-align: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 24px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ccc-state-link:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123,200,184,0.3);
}

/* Info sections */
.ccc-info-section {
    margin: 24px 0;
    padding: 24px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    background: #fff;
}

.ccc-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 16px;
}

.ccc-info-icon {
    font-size: 20px;
}

/* Stats grid */
.ccc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ccc-stat-card {
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    background: #faf8ff;
}

.ccc-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #8B7BB8;
}

.ccc-stat-label {
    display: block;
    font-size: 13px;
    color: #695A80;
    line-height: 1.4;
    margin-top: 4px;
}

/* Credits grid */
.ccc-credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ccc-credit-card {
    padding: 16px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    background: #faf8ff;
}

.ccc-credit-name {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 8px;
}

.ccc-credit-text {
    font-size: 15px;
    color: #695A80;
    line-height: 1.5;
    margin: 0;
}

/* FAQ */
.ccc-faq {
    padding: 12px 0;
    border-bottom: 1px solid rgba(139,123,184,0.08);
}

.ccc-faq:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ccc-faq-q {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 4px;
}

.ccc-faq-a {
    font-size: 15px;
    color: #695A80;
    line-height: 1.6;
    margin: 0;
}

/* CTA grid */
.ccc-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ccc-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ccc-cta-card:hover {
    text-decoration: none;
    border-color: #8B7BB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(61,47,80,0.08);
}

.ccc-cta-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.ccc-cta-text {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
}

.ccc-cta-desc {
    font-size: 13px;
    color: #695A80;
    margin-top: 2px;
}

/* Disclaimer */
.ccc-disclaimer {
    margin: 16px 0 0;
    font-size: 12px;
    color: #695A80;
    text-align: center;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
    .ccc-form-card {
        margin: -12px 12px 20px;
        padding: 20px;
    }

    .ccc-results-card {
        margin: 0 12px 20px;
        padding: 20px;
    }

    .ccc-big-value {
        font-size: 28px;
    }

    .ccc-stats-grid {
        grid-template-columns: 1fr;
    }

    .ccc-credits-grid {
        grid-template-columns: 1fr;
    }

    .ccc-comparison-grid {
        grid-template-columns: 1fr;
    }

    .ccc-cta-grid {
        grid-template-columns: 1fr;
    }

    .ccc-info-section {
        margin: 20px 12px;
    }

    .ccc-comparison {
        margin: 0 12px 20px;
    }

    .ccc-state-link {
        margin: 0 auto 20px;
    }

    .ccc-toggle {
        font-size: 13px;
        padding: 8px 8px;
    }
}
