.tariffs-page {
    --tariff-ink: #003041;
    --tariff-text: #4a5568;
    --tariff-muted: #64748b;
    --tariff-border: #dce8ef;
    --tariff-green: #009347;
    --tariff-light-green: #81c55c;
    --tariff-bounce: cubic-bezier(0.66, 0, 0.34, 1);
    background: #fff;
    color: var(--tariff-text);
    font-family: "Exo 2", sans-serif;
}

.tariffs-container {
    width: min(100% - 48px, 1312px);
    margin: 0 auto;
}

.tariffs-process {
    --tariffs-title-flow-top: 72px;
    position: relative;
    padding: 72px 0 88px;
    border-top: 1px solid #e8edf0;
}

.tariffs-section-title {
    text-align: center;
}

.tariffs-section-title h1 {
    margin: 0;
    color: var(--tariff-ink);
    font-size: clamp(20px, 6.4vw, 32px);
    font-weight: 700;
    line-height: 1.5;
}

.tariffs-title-reveal {
    display: inline-block;
    color: #48a118;
}

.tariffs-divider {
    width: min(648px, 70%);
    height: 1px;
    margin: 8px auto 0;
    background: #e4edf0;
}

.tariffs-benefits-clip {
    overflow: hidden;
    padding-top: 60px;
}

.tariffs-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px;
}

@supports (animation-timing-function: linear(0, 1)) {
    .tariffs-title-group {
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        transform: translateY(-50%);
        animation: tariffs-title-lift-to-flow 700ms 2.15s var(--tariff-bounce) forwards;
    }

    .tariffs-section-title h1 {
        position: relative;
        display: inline-block;
        transform: translateY(32px);
        animation:
            tariffs-title-center 900ms 1.2s var(--tariff-bounce) forwards,
            tariffs-title-lift 700ms 2.15s var(--tariff-bounce) forwards;
    }

    .tariffs-title-reveal {
        position: absolute;
        top: 0;
        left: 100%;
        clip-path: inset(0 100% 0 0);
        transform: translateX(-16px);
        white-space: nowrap;
        animation: tariffs-title-reveal 900ms 1.2s var(--tariff-bounce) forwards;
    }

    .tariffs-divider {
        opacity: 0;
        animation: tariffs-divider-reveal 450ms 2.4s ease-out forwards;
    }

    .tariffs-benefits {
        opacity: 0;
        transform: translateY(-48px);
        animation: tariffs-benefits-reveal 1100ms 2.8s var(--tariff-bounce) forwards;
    }
}

@keyframes tariffs-title-lift-to-flow {
    to {
        top: var(--tariffs-title-flow-top);
        transform: none;
    }
}

@keyframes tariffs-title-center {
    to {
        transform: translate(clamp(-76px, -16vw, -62px), 32px);
    }
}

@keyframes tariffs-title-reveal {
    to {
        clip-path: inset(0);
        transform: translateX(0);
    }
}

@keyframes tariffs-title-lift {
    from {
        transform: translate(clamp(-76px, -16vw, -62px), 32px);
    }
    to {
        transform: translate(clamp(-76px, -16vw, -62px), 0);
    }
}

@keyframes tariffs-title-center-mobile {
    to {
        transform: translate(clamp(-76px, -16vw, -62px), 0);
    }
}

@keyframes tariffs-title-lift-mobile {
    from {
        transform: translate(clamp(-76px, -16vw, -62px), 0);
    }
    to {
        transform: translate(clamp(-76px, -16vw, -62px), -32px);
    }
}

@keyframes tariffs-divider-reveal {
    to {
        height: 1px;
        margin-top: 8px;
        opacity: 1;
    }
}

@keyframes tariffs-benefits-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tariffs-benefits-open {
    to {
        grid-template-rows: 1fr;
        padding-top: 32px;
    }
}

.tariffs-benefit {
    min-width: 0;
    text-align: center;
}

.tariffs-benefit img {
    display: block;
    width: min(210px, 100%);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto 6px;
    object-fit: contain;
}

.tariffs-benefit h2 {
    margin: 0 0 4px;
    color: var(--tariff-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.tariffs-benefit p {
    margin: 0;
    color: var(--tariff-muted);
    font-size: 14px;
    line-height: 1.7;
}

.tariffs-application {
    border-top: 1px solid #e8edf0;
}

.tariffs-application > .tariffs-container {
    padding: 88px 0 96px;
}

@media (prefers-reduced-motion: no-preference) {
    .tariffs-application {
        display: grid;
        grid-template-rows: 0fr;
        overflow: hidden;
        transition: grid-template-rows 700ms var(--tariff-bounce);
    }

    .tariffs-application > .tariffs-container {
        min-height: 0;
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 700ms ease, transform 700ms var(--tariff-bounce);
    }

    .tariffs-application.is-visible {
        grid-template-rows: 1fr;
    }

    .tariffs-application.is-visible > .tariffs-container {
        opacity: 1;
        transform: none;
    }
}

.tariff-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 48px;
    margin-bottom: 48px;
}

.tariff-tab {
    min-width: 150px;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #8c8c8c;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    transition: color 180ms ease, border-color 180ms ease;
}

.tariff-tab i {
    margin-right: 8px;
}

.tariff-tab[aria-selected="true"] {
    border-bottom-color: var(--tariff-light-green);
    color: #4d7f32;
}

.tariff-tab:hover {
    color: var(--tariff-green);
}

.tariff-tab:focus-visible,
.tariff-form-card input:focus-visible,
.tariff-submit:focus-visible,
.tariffs-cta-button:focus-visible {
    outline: 3px solid rgba(0, 147, 71, 0.35);
    outline-offset: 3px;
}

.tariff-tabs-separator {
    color: #343a40;
    font-size: 24px;
    transform: rotate(10deg);
}

.tariffs-application .alert {
    margin-bottom: 24px;
}

.tariffs-application-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 512px;
    align-items: start;
    gap: 64px;
}

.tariff-copy {
    max-width: 723px;
    padding-top: 40px;
}

.tariff-copy h2 {
    margin: 0 0 12px;
    color: var(--tariff-ink);
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.22;
}

.tariff-copy p,
.tariff-copy li {
    color: var(--tariff-text);
    font-size: 15px;
    line-height: 1.75;
}

.tariff-copy p {
    margin: 0 0 12px;
}

.tariff-details,
.tariff-rich-text h3 {
    padding-top: 24px;
}

.tariff-details h3,
.tariff-rich-text h3 {
    margin: 0 0 4px;
    color: var(--tariff-ink);
    font-size: 17px;
    font-weight: 600;
}

.tariff-details ul,
.tariff-rich-text ul {
    margin: 0;
    padding-left: 20px;
}

.tariff-form-card {
    padding: 40px;
    border: 1px solid var(--tariff-border);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.tariff-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tariff-field {
    min-width: 0;
}

.tariff-field-wide {
    grid-column: 1 / -1;
}

.tariff-field label {
    display: block;
    min-height: 24px;
    padding-bottom: 6px;
    color: var(--tariff-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 18px;
    text-transform: uppercase;
}

.tariff-field label span {
    color: var(--tariff-green);
}

.tariff-field input:not([type="checkbox"]) {
    width: 100%;
    min-height: 45px;
    padding: 11px 16px;
    border: 1px solid #d1dde6;
    border-radius: 0;
    background: #fff;
    color: var(--tariff-ink);
    font: inherit;
    font-size: 16px;
}

.tariff-field input::placeholder {
    color: #8797a4;
}

.tariff-field input[type="file"] {
    padding: 8px;
    color: var(--tariff-muted);
    font-size: 13px;
}

.tariff-field > span,
.tariff-consent > span {
    display: block;
    margin-top: 4px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
}

.tariff-validation-summary:empty {
    display: none;
}

.tariff-validation-summary {
    margin-bottom: 16px;
    color: #b42318;
    font-size: 13px;
}

.tariff-consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 4px 10px;
    margin-top: 20px;
}

.tariff-consent input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--tariff-green);
}

.tariff-consent label {
    color: var(--tariff-muted);
    font-size: 13px;
    line-height: 1.55;
}

.tariff-consent a {
    color: var(--tariff-green);
    text-decoration: underline;
}

.tariff-consent > span {
    grid-column: 2;
}

.tariff-submit,
.tariffs-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    border: 0;
    background: var(--tariff-green);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.tariff-submit {
    width: 100%;
    margin-top: 24px;
    cursor: pointer;
}

.tariff-submit i,
.tariffs-cta-button i {
    margin-right: 10px;
}

.tariff-submit:hover,
.tariffs-cta-button:hover {
    background: #007b3c;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 147, 71, 0.22);
}

.tariffs-cta {
    position: relative;
    display: grid;
    min-height: 447px;
    overflow: hidden;
    place-items: center;
    background: var(--tariff-ink);
    text-align: center;
}

.tariffs-cta::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 48, 65, 0.9), rgba(0, 48, 65, 0.9)),
        url("../img/about/mosbio-gallery-3.jpg") center / cover;
    content: "";
}

.tariffs-cta-content {
    position: relative;
    width: min(100% - 48px, 560px);
    padding: 72px 0;
}

.tariffs-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--tariff-light-green);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.54px;
    text-transform: uppercase;
}

.tariffs-eyebrow::before,
.tariffs-eyebrow::after {
    width: 24px;
    height: 1px;
    background: var(--tariff-light-green);
    content: "";
}

.tariffs-cta h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(30px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.25;
}

.tariffs-cta p {
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    line-height: 1.7;
}

.tariffs-cta-button {
    padding: 14px 32px;
}

@media (max-width: 1100px) {
    .tariffs-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tariffs-application-grid {
        grid-template-columns: minmax(0, 1fr) 440px;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .tariffs-application-grid {
        grid-template-columns: 1fr;
    }

    .tariff-copy {
        max-width: none;
        padding-top: 0;
    }

    .tariff-form-card {
        width: min(100%, 600px);
    }
}

@media (max-width: 600px) {
    .tariffs-process {
        --tariffs-title-flow-top: 56px;
    }

    .tariffs-container,
    .tariffs-cta-content {
        width: min(100% - 32px, 1312px);
    }

    .tariffs-process {
        padding: 56px 0;
    }

    .tariffs-application > .tariffs-container {
        padding: 56px 0;
    }

    .tariffs-benefits,
    .tariff-form-grid {
        grid-template-columns: 1fr;
    }

    .tariffs-benefits {
        gap: 32px;
    }

    @supports (animation-timing-function: linear(0, 1)) {
        .tariffs-section-title h1 {
            transform: none;
            animation:
                tariffs-title-center-mobile 900ms 1.2s var(--tariff-bounce) forwards,
                tariffs-title-lift-mobile 700ms 2.15s var(--tariff-bounce) forwards;
        }

        .tariffs-divider {
            height: 0;
            margin-top: 0;
        }

        .tariffs-benefits-clip {
            display: grid;
            grid-template-rows: 0fr;
            padding-top: 0;
            animation: tariffs-benefits-open 1100ms 2.8s var(--tariff-bounce) forwards;
        }

        .tariffs-benefits {
            min-height: 0;
            overflow: hidden;
        }
    }

    .tariff-tabs {
        justify-content: center;
        gap: 8px;
        margin-bottom: 40px;
    }

    .tariff-tab {
        min-width: 128px;
    }

    .tariff-field-wide {
        grid-column: auto;
    }

    .tariff-form-card {
        padding: 24px;
    }

    .tariffs-cta {
        min-height: 400px;
    }

    .tariffs-cta h2 br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tariffs-page *,
    .tariffs-page *::before,
    .tariffs-page *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .tariffs-process .tariffs-title-reveal,
    .tariffs-process .tariffs-title-group,
    .tariffs-process .tariffs-section-title h1,
    .tariffs-process .tariffs-divider,
    .tariffs-process .tariffs-benefits {
        opacity: 1;
        transform: none;
    }

    .tariffs-process .tariffs-title-group {
        position: static;
    }

    .tariffs-process .tariffs-title-reveal {
        clip-path: none;
        position: static;
        white-space: normal;
    }

    .tariffs-process .tariffs-benefits-clip {
        grid-template-rows: 1fr;
        padding-top: 32px;
    }

    .tariffs-process .tariffs-divider {
        height: 1px;
        margin-top: 8px;
    }
}
