/* Medicare Tax Calculator Styles */
:root {
    --medicare-primary: #1e40af;
    --medicare-secondary: #3b82f6;
    --medicare-accent: #10b981;
    --medicare-light: #eff6ff;
    --medicare-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

* {
    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-color: #ffffff;
}

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

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

.breadcrumb-content a {
    color: var(--medicare-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-content a:hover {
    text-decoration: underline;
}

.breadcrumb-content span {
    color: var(--text-secondary);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30h30v30H30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.calculator-header {
    background: var(--medicare-gradient);
    color: white;
    padding: 2rem;
    text-align: center;
}

.calculator-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.calculator-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

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

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

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

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--medicare-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: var(--medicare-secondary);
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    z-index: 1;
}

.input-wrapper:has(.input-prefix) .input-field {
    padding-left: 2.5rem;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--medicare-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--medicare-primary);
    border: 2px solid var(--medicare-primary);
}

.btn-secondary:hover {
    background: var(--medicare-primary);
    color: white;
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    animation: slideUp 0.6s ease-out;
}

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

.results-container {
    max-width: 1000px;
    margin: 0 auto;
}

.results-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--medicare-primary);
}

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

.result-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--medicare-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.result-card.highlight {
    border-color: var(--medicare-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.result-card.highlight .card-value {
    color: var(--medicare-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--medicare-secondary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Breakdown Section */
.breakdown-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.breakdown-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--medicare-primary);
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

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

.breakdown-row:hover {
    background-color: var(--medicare-light);
}

.breakdown-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid var(--medicare-primary);
    color: var(--medicare-primary);
}

.breakdown-label {
    font-weight: 500;
    color: var(--text-primary);
}

.breakdown-value {
    font-weight: 600;
    color: var(--medicare-secondary);
}

/* Information Section */
.info-section {
    padding: 4rem 0;
    background-color: white;
}

.info-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

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

.info-card {
    background: var(--medicare-light);
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid var(--medicare-primary);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--medicare-primary);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--medicare-primary);
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--medicare-light);
}

.faq-answer {
    padding: 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Related Calculators */
.related-calculators {
    padding: 4rem 0;
    background-color: white;
}

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

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--medicare-primary);
}

.calculator-card .calculator-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.calculator-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--medicare-primary);
}

.calculator-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.related-link {
    color: var(--medicare-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.related-link:hover {
    color: var(--medicare-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .calculator-section,
    .results-section,
    .info-section,
    .faq-section,
    .related-calculators {
        padding: 2rem 0;
    }

    .calculator-form {
        padding: 1.5rem;
    }

    .results-title,
    .info-content h2,
    .faq-container h2,
    .related-calculators h2 {
        font-size: 2rem;
    }
}

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

    .hero::before {
        animation: none;
    }
}

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

    .result-card {
        border-color: #000000;
    }

    .btn-primary {
        background: #000000;
    }
}

/* Print Styles */
@media print {
    .hero,
    .calculator-section,
    .faq-section,
    .related-calculators {
        display: none;
    }

    .results-section,
    .info-section {
        page-break-inside: avoid;
    }

    .results-container,
    .info-content {
        box-shadow: none;
        border: 1px solid #000;
    }

    .result-card {
        border: 1px solid #000;
        box-shadow: none;
    }
} 