/* State & Local Tax (SALT) Deduction Calculator - Professional Government Theme CSS */
/* Optimized for tax deduction planning and SALT cap analysis */

:root {
    /* SALT Government Theme Colors */
    --primary-blue: #204080;
    --secondary-blue: #5AC8FA;
    --government-blue: #003366;
    --tax-navy: #1e3a8a;
    --cap-red: #dc2626;
    --savings-green: #059669;
    --warning-amber: #f59e0b;
    --policy-purple: #7c3aed;
    
    /* Professional Colors */
    --dark-blue: #0056CC;
    --light-blue: #E3F2FD;
    --success-green: #48bb78;
    --warning-orange: #ed8936;
    --error-red: #e53e3e;
    
    /* Text Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --bg-gradient: linear-gradient(135deg, #204080 0%, #003366 50%, #1e3a8a 100%);
    
    /* Effects */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.breadcrumb-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--government-blue);
    text-decoration: underline;
}

/* Hero Section with Government Animation */
.hero {
    background: var(--bg-gradient);
    color: var(--text-white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(0, 51, 102, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(30, 58, 138, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 75%, rgba(32, 64, 128, 0.15) 0%, transparent 45%);
    animation: governmentPatternMove 25s linear infinite;
}

@keyframes governmentPatternMove {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Main Calculator Section */
.calculator-section {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--government-blue) 0%, var(--primary-blue) 50%, var(--tax-navy) 100%);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '🏛️';
    margin-left: 0.5rem;
    font-size: 1.5rem;
    animation: governmentPulse 3s ease-in-out infinite;
}

@keyframes governmentPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

/* Form Styling */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border-left: 4px solid var(--government-blue);
    transition: var(--transition-normal);
}

.form-section:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-blue);
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3::before {
    content: '📋';
    font-size: 1.2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-label.required::after {
    content: ' *';
    color: var(--error-red);
    font-weight: 700;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-white);
    color: var(--text-primary);
}

.input-field:focus {
    outline: none;
    border-color: var(--government-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    background: var(--bg-white);
}

.input-field.error {
    border-color: var(--error-red);
    background: rgba(229, 62, 62, 0.05);
}

.input-field.error:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Select Styling */
.select-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-field:focus {
    outline: none;
    border-color: var(--government-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* Radio Button Styling */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.radio-option:hover {
    border-color: var(--government-blue);
    background: var(--light-blue);
}

.radio-option.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(32, 64, 128, 0.1) 0%, rgba(0, 51, 102, 0.1) 100%);
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.radio-option label {
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
}

/* Help Text */
.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--government-blue) 0%, var(--primary-blue) 100%);
    color: var(--text-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--government-blue) 100%);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

/* Results Section */
.results-section {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--savings-green) 0%, var(--government-blue) 50%, var(--cap-red) 100%);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--government-blue);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.result-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--government-blue) 0%, var(--primary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    animation: governmentGlow 4s ease-in-out infinite;
}

@keyframes governmentGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(0, 51, 102, 0.5);
    }
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.result-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(0, 51, 102, 0.1) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--government-blue);
}

.summary-item-label {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-item-value {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Optimization Section */
.optimization-section {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.optimization-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.recommendations-list {
    display: grid;
    gap: 1rem;
}

.recommendation-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border-left: 4px solid var(--warning-amber);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.recommendation-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.recommendation-item.high-priority {
    border-left-color: var(--cap-red);
}

.recommendation-item.medium-priority {
    border-left-color: var(--warning-amber);
}

.recommendation-item.low-priority {
    border-left-color: var(--savings-green);
}

.recommendation-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.recommendation-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Information Cards */
.info-section {
    margin: 3rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--government-blue);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-gray);
    position: relative;
    padding-left: 1.5rem;
}

.info-card li::before {
    content: '🏛️';
    position: absolute;
    left: 0;
    color: var(--government-blue);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin: 3rem 0;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question::before {
    content: '❓';
    font-size: 1rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1.5rem;
}

/* Related Calculators */
.related-calculators {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 3rem 0;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--government-blue);
}

.related-icon {
    width: 50px;
    height: 50px;
    background: var(--government-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: var(--text-white);
}

.related-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.related-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.related-link {
    color: var(--government-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.related-link:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Validation Modal */
.validation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.validation-modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--error-red);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--error-red);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-footer {
    text-align: center;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--border-color);
    border-top-color: var(--government-blue);
    border-radius: 50%;
    animation: governmentSpin 1s linear infinite;
}

@keyframes governmentSpin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .calculator-section,
    .results-section,
    .faq-section {
        padding: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .calculator-section,
    .results-section,
    .faq-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .calculator-section,
    .results-section,
    .faq-section,
    .related-calculators {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .result-value {
        font-size: 1.6rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
        --bg-light: #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .hero,
    .related-calculators,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    .calculator-section,
    .results-section {
        box-shadow: none;
        border: 1px solid var(--border-color);
        page-break-inside: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
} 