* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beige-light: #F5F1E8;
    --beige-medium: #E8DDD4;
    --beige-dark: #D4C4B0;
    --beige-accent: #C9B99B;
    --text-dark: #2C2C2C;
    --text-light: #555555;
    --success: #7A9E7E;
    --error: #C97D7D;
    --white: #FFFFFF;
}

/* Form validation styles */
input.error,
textarea.error,
select.error {
    border-color: var(--error) !important;
    background-color: #fff5f5;
}

input.valid,
textarea.valid,
select.valid {
    border-color: var(--success) !important;
    background-color: #f5fff5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
    padding: 20px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--beige-accent);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Header Navigation */
.header-navigation {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
}

.header-navigation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.header-navigation:hover::after {
    width: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 18px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    margin: 0 2px;
    display: block;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    transform: scale(0.9);
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:active {
    transform: translateY(0) scale(0.96);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active {
    color: var(--white);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.active::before {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--beige-accent) 0%, var(--beige-dark) 100%);
    color: var(--white);
    padding: 25px 30px 30px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 6px;
}

.subtitle-help {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 0;
}

main {
    padding: 40px 30px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--beige-light);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: var(--text-dark);
    font-size: 1.7rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.section-description {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.5;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--beige-medium);
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--beige-accent);
    box-shadow: 0 0 0 3px rgba(201, 185, 155, 0.1);
}

.form-group input[type="tel"] {
    max-width: 300px;
}

/* Error state for input fields */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
    background-color: rgba(201, 125, 125, 0.05);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(201, 125, 125, 0.1);
}

.required {
    color: var(--error);
    font-weight: 600;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: var(--beige-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 56px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-label:hover {
    background: var(--beige-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 14px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--beige-accent);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--beige-accent);
}

.checkbox-label span {
    flex: 1;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: var(--beige-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 56px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.radio-label:hover {
    background: var(--beige-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.radio-label input[type="radio"] {
    margin-right: 14px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--beige-accent);
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--beige-accent);
}

.radio-label span {
    flex: 1;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

.form-description {
    background: var(--beige-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--beige-accent);
}

.form-description p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.disclaimer {
    background: rgba(201, 125, 125, 0.1);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid var(--error);
}

.disclaimer p {
    color: var(--text-dark);
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

.contact-note {
    background: rgba(122, 158, 126, 0.1);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--success);
    text-align: center;
}

.contact-note p {
    color: var(--text-dark);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, var(--beige-accent) 0%, var(--beige-dark) 100%);
    color: var(--white);
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 185, 155, 0.3);
    min-width: 200px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 185, 155, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: inline;
}

.message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: rgba(122, 158, 126, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.message.error {
    background: rgba(201, 125, 125, 0.1);
    color: var(--error);
    border: 2px solid var(--error);
}

footer {
    background: var(--beige-light);
    padding: 20px;
    text-align: center;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Fieldset and legend styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    width: 100%;
    padding: 0;
    margin-bottom: 15px;
}

legend h2 {
    margin-bottom: 0;
}

/* Form group within fieldset */
fieldset.form-group {
    margin-bottom: 25px;
}

fieldset.form-group legend {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
}

/* Tooltip styling */
.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: var(--beige-accent);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 6px;
    cursor: help;
    position: relative;
    vertical-align: middle;
}

.tooltip-icon:hover::after,
.tooltip-icon:focus::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 113px;
    padding: 8px 12px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: normal;
    max-width: 250px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.tooltip-icon:hover::before,
.tooltip-icon:focus::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 107px;
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
    z-index: 1001;
    pointer-events: none;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 17px;
    }

    .container {
        border-radius: 12px;
    }

    header {
        padding: 20px 20px 25px;
    }

    header h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .subtitle-help {
        font-size: 0.85rem;
    }

    .header-navigation {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 7px 14px;
    }

    main {
        padding: 25px 18px;
    }

    .form-section {
        margin-bottom: 35px;
        padding-bottom: 25px;
    }

    .form-section h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        font-weight: 800;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .form-group {
        margin-bottom: 22px;
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group textarea {
        font-size: 16px;
        padding: 16px 18px;
    }

    .form-group input[type="tel"] {
        max-width: 100%;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkbox-label,
    .radio-label {
        padding: 18px 16px;
        min-height: 60px;
    }

    .checkbox-label span,
    .radio-label span {
        font-size: 1rem;
    }

    .checkbox-label input[type="checkbox"],
    .radio-label input[type="radio"] {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }

    .radio-group {
        gap: 12px;
    }

    .form-description {
        padding: 18px;
        margin-bottom: 25px;
    }

    .form-description p {
        font-size: 1rem;
    }

    .disclaimer,
    .contact-note {
        padding: 18px 16px;
        margin: 25px 0;
    }

    .disclaimer p,
    .contact-note p {
        font-size: 0.95rem;
    }

    .form-actions {
        margin-top: 35px;
    }

    .submit-btn {
        width: 100%;
        padding: 18px 32px;
        font-size: 1.1rem;
        min-height: 56px;
    }

    footer {
        padding: 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    header {
        padding: 18px 16px 22px;
    }

    header h1 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .subtitle-help {
        font-size: 0.8rem;
    }

    .header-navigation {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 0 1px;
    }

    main {
        padding: 20px 16px;
    }

    .form-section h2 {
        font-size: 1.4rem;
        font-weight: 800;
    }

    .checkbox-label,
    .radio-label {
        padding: 16px 14px;
        min-height: 64px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 16px;
    }

    .form-group input[type="tel"] {
        max-width: 100%;
    }
}

/* Filuppladdning styling */
.uploaded-files-list {
    margin-top: 10px;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 5px;
}

.uploaded-file-item.uploaded {
    background-color: #e8f5e9;
}

.uploaded-file-item.error {
    background-color: #ffebee;
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.file-status {
    font-size: 12px;
    font-weight: 500;
}

.file-status.success {
    color: var(--success);
}

.file-status.error {
    color: var(--error);
}

.remove-file-btn {
    background-color: var(--error);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.remove-file-btn:hover {
    background-color: #a55a5a;
}

#intyg_file {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--beige-medium);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--white);
    transition: border-color 0.3s;
}

#intyg_file:focus {
    outline: none;
    border-color: var(--beige-accent);
    box-shadow: 0 0 0 3px rgba(201, 185, 155, 0.1);
}

.file-count-info {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
}

.file-count-info.warning {
    color: var(--error);
    font-weight: 600;
}

/* SEO Content Section */
.seo-content {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.seo-content h2 {
    margin-top: 0;
    margin-bottom: 0;
    color: #2C2C2C;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.4;
}

.seo-content h3 {
    margin-top: 0;
    margin-bottom: 0;
    color: #2C2C2C;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

.seo-content p {
    margin-bottom: 0;
    margin-top: 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
}

.seo-content > h3 {
    margin-top: 1.5em;
}

.seo-content > p + p {
    margin-top: 1em;
}

.seo-content ul {
    margin: 1em 0;
    padding-left: 24px;
    list-style-position: outside;
}

.seo-content li {
    margin-bottom: 0.5em;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
}

.seo-content li:last-child {
    margin-bottom: 0;
}

/* Mobile optimization for SEO content */
@media (max-width: 768px) {
    .seo-content {
        margin: 0 auto 30px;
        padding: 24px 20px;
        border-radius: 12px;
    }

    .seo-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .seo-content h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .seo-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .seo-content ul {
        padding-left: 20px;
    }

    .seo-content li {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .seo-content {
        margin: 0 auto 25px;
        padding: 20px 16px;
        border-radius: 8px;
    }

    .seo-content h2 {
        font-size: 1.4rem;
    }

    .seo-content h3 {
        font-size: 1.2rem;
    }

    .seo-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .seo-content ul {
        padding-left: 18px;
    }

    .seo-content li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Comparison Table Section */
.comparison-section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.4;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
}

.comparison-table thead {
    background: var(--beige-light);
}

.comparison-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid var(--beige-accent);
    font-size: 1.05rem;
}

.comparison-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--beige-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.comparison-table tbody tr:hover {
    background: var(--beige-light);
    transition: background 0.2s ease;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Calculator Section */
.calculator-section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calculator-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.4;
}

.calculator-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

.calculator-form {
    margin-top: 30px;
}

.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--beige-medium);
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C2C2C' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    padding-right: 45px;
}

.form-select:focus {
    outline: none;
    border-color: var(--beige-accent);
    box-shadow: 0 0 0 3px rgba(201, 185, 155, 0.1);
}

.form-select.error {
    border-color: var(--error);
    background-color: rgba(201, 125, 125, 0.05);
}

/* Calculator Result */
.calculator-result {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
    border-radius: 8px;
    border: 2px solid var(--beige-accent);
}

.calculator-result h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.result-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--beige-light);
    margin-bottom: 20px;
}

.result-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--beige-accent);
}

.result-breakdown {
    margin-top: 20px;
}

.result-breakdown p {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.result-breakdown ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.result-breakdown li {
    padding: 10px 0;
    border-bottom: 1px solid var(--beige-light);
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.result-breakdown li:last-child {
    border-bottom: none;
}

/* Mobile optimization for calculator */
@media (max-width: 768px) {
    .comparison-section,
    .calculator-section {
        padding: 24px 20px;
        margin: 0 auto 30px;
    }

    .comparison-section h2,
    .calculator-section h2 {
        font-size: 1.5rem;
    }

    .comparison-section h3,
    .calculator-section h3 {
        font-size: 1.3rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }

    .calculator-result {
        padding: 24px 20px;
    }

    .result-box {
        padding: 20px;
    }

    .result-value {
        font-size: 1.6rem;
    }

    .result-amount {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .comparison-section,
    .calculator-section {
        padding: 20px 16px;
        margin: 0 auto 25px;
    }

    .comparison-section h2,
    .calculator-section h2 {
        font-size: 1.4rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 6px;
    }

    .result-value {
        font-size: 1.4rem;
    }
}

/* Legal Help Section */
.legal-help-section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-help-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.4;
}

.legal-help-form {
    margin-top: 30px;
}

/* Mobile optimization for navigation */
@media (max-width: 768px) {
    .header-navigation {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 16px;
        margin: 0 2px;
    }

    .legal-help-section {
        padding: 24px 20px;
        margin: 0 auto 30px;
    }

    .legal-help-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-navigation {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .nav-menu {
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
        margin: 0 1px;
    }

    .nav-link::after {
        bottom: 6px;
    }

    .legal-help-section {
        padding: 20px 16px;
        margin: 0 auto 25px;
    }

    .legal-help-section h2 {
        font-size: 1.4rem;
    }
}

