.page-header--fiscal {
    margin-top: 24px;
    margin-bottom: 28px;
    max-width: 820px;
}

.hero__title--fiscal {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-family: var(--font-serif);
    font-weight: 400;
}

.hero__subtitle {
    max-width: 760px;
}

.fiscal-form-container {
    width: min(100%, 820px);
    margin-top: 16px;
}

.fiscal-subtabs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--slate-200);
    flex-wrap: wrap;
}

.fiscal-subtab {
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--slate-600);
    padding: 11px 16px;
    margin-bottom: -1px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.fiscal-subtab:hover {
    color: var(--slate-900);
    background-color: #f8fbff;
}

.fiscal-subtab.is-active {
    background: #dbeafe;
    color: #1e3a8a;
}

.fiscal-panel {
    display: none;
}

.fiscal-panel.is-active {
    display: block;
}

.guide-controls {
    margin-bottom: 18px;
    max-width: 280px;
}

.country-guide {
    display: none;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 20px;
    background: #fff;
}

.country-guide.is-active {
    display: block;
}

.country-guide h2 {
    margin-bottom: 10px;
}

.country-guide h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.country-guide p,
.country-guide li {
    color: var(--slate-700);
    line-height: 1.6;
}

.country-guide ul,
.country-guide ol {
    margin-left: 18px;
}

.fiscal-form {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.fiscal-step {
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 16px;
}
.fiscal-step:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.step-title {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--slate-900);
}

.form-row-split {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px; 
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
}

.form-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    border: none;
    border-bottom: 1px solid var(--slate-200);
    border-radius: 0;
    padding: 0 14px;
    font: inherit;
    color: var(--slate-900);
    background-color: transparent;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--slate-900);
    background-color: transparent;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%226%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M0%200l5%206%205-6z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}

.instructions-toggle {
    margin-bottom: 24px;
}

.toggle-summary {
    cursor: pointer;
    color: var(--slate-900);
    font-size: 1.1rem;
    font-family: var(--font-serif);
    font-style: italic;
    border: none;
    background: transparent;
}

.toggle-summary::-webkit-details-marker {
    display: none;
}

.instructions-toggle[open] .chevron-icon {
    transform: rotate(180deg);
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.instructions-content {
    margin-top: 10px;
    padding: 14px 16px;
    margin-left: 6px;
    border-left: 2px solid var(--slate-200);
    color: var(--slate-600);
    font-size: 0.85rem;
    line-height: 1.4;
}

.instructions-content ol {
    margin-left: 18px;
    line-height: 1.55;
}

.instructions-disclaimer {
    margin-top: 14px;
    margin-bottom: 0;
    color: #b91c1c;
    font-weight: 600;
}

.upload-zone {
    margin: 24px 0 0 0;
}

.file-input-hidden {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 250px;
    padding: 24px;
    border: 2px dashed var(--slate-300);
    border-radius: 12px;
    background-color: var(--slate-50);
    text-align: center;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.upload-label:hover,
.upload-label--active {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

.upload-icon {
    margin-bottom: 12px;
    font-size: clamp(24px, 3vw, 30px);
}

.upload-label.upload-label--has-file,
.upload-label.upload-label--has-file:hover,
.upload-label.upload-label--has-file.upload-label--active {
    border-color: transparent;
    background-color: rgba(5, 150, 105, 0.3);
    box-shadow: none;
    animation: uploadDetectedPulse 0.65s ease;
}

.upload-label--has-file .upload-icon {
    color: #047857;
    animation: uploadIconPop 0.65s ease;
}

.upload-label--has-file .upload-text {
    color: #065f46;
}

@keyframes uploadDetectedPulse {
    0% {
        transform: scale(1);
        border-color: #10b981;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
    }
    35% {
        transform: scale(1.015);
        border-color: #10b981;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2);
    }
    100% {
        transform: scale(1);
        border-color: transparent;
        box-shadow: none;
    }
}

@keyframes uploadIconPop {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-2px) scale(1.16); }
    100% { transform: translateY(0) scale(1); }
}

.upload-text {
    overflow-wrap: anywhere;
}

.upload-subtext {
    margin-top: 6px;
    color: var(--slate-500);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.inline-error {
    margin-bottom: 14px;
    color: #b91c1c;
    font-weight: 500;
}

btn-submit {
    border: none;
    background-color: var(--slate-900);
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--slate-700);
    transform: none;
}

.legal-disclaimer {
    margin-top: 24px;
    padding-left: 16px;
    border-left: 3px solid #9ca3af;
    max-width: 900px;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: var(--slate-600);
    line-height: 1.55;
    margin-bottom: 12px;
}

.disclaimer-text strong {
    color: var(--slate-700);
}

@media (max-width: 900px) {
    .page-header--fiscal {
        margin-top: 16px;
    }

    .hero__subtitle {
        font-size: 1.08rem;
    }
}

@media (max-width: 767px) {
    .fiscal-subtabs {
        gap: 6px;
    }

    .fiscal-subtab {
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .form-row-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 20px 0;
    }

    .navbar__links {
        margin-left: auto;
    }

    .legal-disclaimer {
        margin-top: 32px;
    }
}

@media (max-width: 420px) {
    .navbar {
        justify-content: space-between;
    }

    .navbar__links a {
        font-size: 13px;
    }

    .btn-submit {
        width: 100%;
    }
}

/* Support CTA Box */
.support-cta {
    display: none;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 24px;
    margin-top: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(167, 243, 208, 0.4);
}

.support-cta.is-visible {
    display: flex;
    animation: fadeIn 0.5s ease-out forwards;
}

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

.support-cta:hover {
    border-color: #34d399;
}

.support-cta-content {
    flex: 1;
}

.support-cta-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #064e3b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    margin-top: 0;
}

.support-cta-desc {
    font-size: 0.75rem;
    color: rgba(6, 78, 59, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.support-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.support-cta-link:hover {
    background-color: #047857;
    color: #ffffff;
}

@media (max-width: 767px) {
    .support-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .support-cta-link {
        width: 100%;
    }
}
