/* Multi-Year Tax Planning Calculator CSS */
:root {
    --primary-color: #204080;
    --secondary-color: #5AC8FA;
    --dark-color: #0056CC;
    --light-color: #E3F2FD;
    --success-color: #48bb78;
    --warning-color: #f6ad55;
    --error-color: #e53e3e;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 25px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, #204080 0%, #5AC8FA 100%);
    
    /* Multi-year specific colors */
    --timeline-color: #667eea;
    --projection-color: #f093fb;
    --optimization-color: #4facfe;
    --strategy-color: #43e97b;
    --planning-color: #38f9d7;
}

* {
    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: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    font-size: 16px;
    font-weight: 400;
}

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

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.calculator-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calculator-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 80px 80px;
    animation: timelinePattern 40s linear infinite;
}

@keyframes timelinePattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(80px) translateY(80px); }
}

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

.calculator-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.025em;
}

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

/* Calculator Container */
.calculator-container {
    padding: 4rem 0;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Calculator Main */
.calculator-main {
    width: 100%;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(32, 64, 128, 0.1);
    margin-bottom: 2rem;
}

.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Form Styles */
.calculator-form {
    width: 100%;
}

.form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px 0 0 2px;
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    width: 100%;
}

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

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

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 64, 128, 0.1);
    transform: translateY(-1px);
}

.form-input:hover,
.form-select:hover {
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.input-help {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Dynamic Income Years Container */
.income-years-container {
    margin-top: 1rem;
}

.year-input-group {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.year-input-group:hover {
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.year-input-group h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-calculate {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(32, 64, 128, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 220px;
    justify-content: center;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(32, 64, 128, 0.4);
}

.btn-calculate:active {
    transform: translateY(0);
}

.btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Results Section */
.results-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(32, 64, 128, 0.1);
    margin-top: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.results-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Optimization Summary */
.optimization-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.current-strategy::before {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fed7aa 100%);
}

.optimized-strategy::before {
    background: linear-gradient(135deg, var(--success-color) 0%, #9ae6b4 100%);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(32, 64, 128, 0.15);
}

.summary-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.strategy-details {
    space-y: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    font-size: 0.95rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: 'tnum';
}

/* Yearly Analysis */
.yearly-analysis {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.years-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.year-breakdown-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(90, 200, 250, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.year-breakdown-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 200, 250, 0.2);
}

.year-breakdown-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Implementation Roadmap */
.implementation-roadmap {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border: 2px solid var(--projection-color);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.implementation-roadmap h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--projection-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.roadmap-container {
    display: grid;
    gap: 1rem;
}

.roadmap-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(240, 147, 251, 0.3);
    transition: all 0.3s ease;
}

.roadmap-step:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.2);
}

.roadmap-number {
    background: var(--projection-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.roadmap-content {
    flex: 1;
}

.roadmap-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.roadmap-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Sidebar */
.calculator-sidebar {
    width: 100%;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

/* Tax Bracket Ranges */
.brackets-preview {
    space-y: 1rem;
}

.bracket-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.bracket-preview:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(32, 64, 128, 0.1);
}

.bracket-rate {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bracket-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Multi-Year Strategies */
.strategy-list {
    space-y: 1rem;
}

.strategy-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.strategy-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(32, 64, 128, 0.1);
}

.strategy-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.strategy-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Related Calculators */
.related-calculators h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.link-icon {
    font-size: 1.2rem;
}

.link-text {
    font-weight: 600;
    color: var(--primary-color);
}

/* Content Section */
.content-section {
    background: white;
    padding: 4rem 0;
    margin-top: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-main {
    width: 100%;
}

.content-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.content-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

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

.content-card ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.content-card li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Strategies Detailed */
.strategies-detailed {
    space-y: 2rem;
}

.strategy-detail {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.strategy-detail h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.strategy-detail p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Content Sidebar */
.content-sidebar {
    width: 100%;
}

.tip-card,
.warning-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.tip-card {
    border-left: 4px solid var(--success-color);
}

.warning-card {
    border-left: 4px solid var(--warning-color);
}

.tip-card h3,
.warning-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tip-card h3 {
    color: var(--success-color);
}

.warning-card h3 {
    color: var(--warning-color);
}

.tip-item {
    margin-bottom: 1.5rem;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tip-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.warning-card li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.warning-card li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 4rem 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.modal-body {
    margin-bottom: 1.5rem;
}

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

.btn-modal {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(32, 64, 128, 0.3);
}

.error-item {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #9b2c2c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.error-item:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-layout,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .optimization-summary {
        grid-template-columns: 1fr;
    }
    
    .calculator-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .calculator-hero {
        padding: 3rem 0;
    }
    
    .calculator-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .calculator-card,
    .results-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-calculate {
        width: 100%;
    }
    
    .years-breakdown {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .related-links {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-card,
    .results-container {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .calculator-hero h1 {
        font-size: 1.9rem;
    }
    
    .card-header h2 {
        font-size: 1.6rem;
    }
    
    .info-card,
    .tip-card,
    .warning-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Print Styles */
@media print {
    .calculator-hero,
    .calculator-sidebar,
    .button-group,
    .modal {
        display: none;
    }
    
    .calculator-layout {
        grid-template-columns: 1fr;
    }
    
    .results-container {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .optimization-summary {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
    
    .form-input,
    .form-select {
        border-width: 3px;
    }
    
    .btn-calculate {
        background: #000080;
        border: 2px solid #000080;
    }
}

/* Focus Visible for Better Accessibility */
.form-input:focus-visible,
.form-select:focus-visible,
.btn-calculate:focus-visible,
.btn-reset:focus-visible,
.related-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.btn-calculate.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-calculate.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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