/* Roth vs Traditional IRA 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%);
    
    /* IRA-specific colors */
    --traditional-color: #2d3748;
    --traditional-light: #4a5568;
    --roth-color: #38a169;
    --roth-light: #48bb78;
    --gold-accent: #d69e2e;
    --silver-accent: #718096;
}

* {
    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"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
    animation: floatPattern 20s linear infinite;
}

@keyframes floatPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

.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: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.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;
}

/* 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: 200px;
    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;
}

/* IRA Comparison Cards */
.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.ira-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;
}

.ira-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: transform 0.3s ease;
}

.traditional-card::before {
    background: linear-gradient(135deg, var(--traditional-color) 0%, var(--traditional-light) 100%);
}

.roth-card::before {
    background: linear-gradient(135deg, var(--roth-color) 0%, var(--roth-light) 100%);
}

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

.ira-card:hover::before {
    transform: scaleY(2);
}

.ira-card .card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.ira-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

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

.tax-benefit {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.traditional-card .tax-benefit {
    background: linear-gradient(135deg, var(--traditional-color) 0%, var(--traditional-light) 100%);
}

.roth-card .tax-benefit {
    background: linear-gradient(135deg, var(--roth-color) 0%, var(--roth-light) 100%);
}

.balance-display {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-feature-settings: 'tnum';
}

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

.tax-info {
    space-y: 0.75rem;
}

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

.tax-item:last-child {
    border-bottom: none;
    font-weight: 600;
}

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

.tax-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-feature-settings: 'tnum';
}

.tax-value.highlight {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Recommendation Section */
.recommendation-section {
    margin-bottom: 2rem;
}

.recommendation-card {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 2px solid var(--success-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.recommendation-card::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--success-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.recommendation-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 1rem;
    margin-left: 20px;
}

.recommendation-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
}

/* Analysis Details */
.analysis-details {
    margin-top: 2rem;
}

.analysis-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid var(--warning-color);
    border-radius: 16px;
    padding: 2rem;
}

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

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

.factor-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(214, 158, 46, 0.2);
}

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

.factor-item p {
    font-size: 0.9rem;
    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);
}

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

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

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

.limit-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    font-feature-settings: 'tnum';
}

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

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

.difference-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.difference-item ul {
    list-style: none;
    padding: 0;
}

.difference-item li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.difference-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* 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-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;
}

.factors-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

.factor-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.factor-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 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;
    }
    
    .comparison-cards {
        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%;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .related-links {
        gap: 0.5rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .calculator-card,
    .results-container {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .calculator-hero h1 {
        font-size: 1.9rem;
    }
    
    .card-header h2 {
        font-size: 1.6rem;
    }
    
    .balance-amount {
        font-size: 1.8rem;
    }
    
    .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);
    }
    
    .comparison-cards {
        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);
    }
} 