/* #region Checkout Section */

.checkout-section {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 140px 0;
}

.checkout-section h2,
.checkout-section .section-kicker {
    color: var(--color-white);
}

.checkout-section p {
    margin-top: 18px;
    color: var(--color-paper-76);
}

.checkout-form {
    margin-top: 32px;
}

.form-field {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: inherit;
    font-weight: 800;
}

.form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    padding: 0.74rem 0.85rem;
    color: var(--color-ink);
    background: var(--color-white);
}

.selected-plan {
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid var(--color-paper-22);
    background: var(--color-paper-08);
}

.form-note {
    margin-top: 8px;
    font-size: 0.9rem;
}

.consent-field {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 20px 0 24px;
}

.consent-field .text-danger {
    grid-column: 2;
}

.consent-field a {
    color: var(--color-checkout-link);
}

.checkout-error {
    margin: -2px 0 22px;
    padding: 12px 14px;
    border: 1px solid var(--color-checkout-error-line);
    border-radius: 6px;
    background: var(--color-accent-12);
    color: var(--color-checkout-error-text);
    font-size: 0.94rem;
    line-height: 1.45;
}

.checkout-aside {
    display: grid;
    gap: 18px;
}

.checkout-preview {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgb(252, 188, 112);
}

.checkout-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    padding: 22px;
}

.checkout-preview-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(95, 41, 34, 0.22);
    border-radius: 50%;
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.checkout-preview-arrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.checkout-preview-arrow-prev {
    left: 14px;
}

.checkout-preview-arrow-prev::before {
    transform: translateX(2px) rotate(-135deg);
}

.checkout-preview-arrow-next {
    right: 14px;
}

.checkout-preview-arrow-next::before {
    transform: translateX(-2px) rotate(45deg);
}

.checkout-preview-arrow:hover {
    background: var(--color-white);
    border-color: var(--color-accent);
    transform: translateY(-50%) translateY(-1px);
}

.support-note {
    padding: 20px;
    border: 1px solid var(--color-paper-18);
    border-radius: 8px;
    background: var(--color-paper-08);
}

.support-note span {
    display: block;
    color: var(--color-paper-66);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.support-note strong {
    display: block;
    margin-top: 8px;
    color: var(--color-white);
}

/* #endregion Checkout Section */

/* #region FAQ Section */

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-paper);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 0 22px;
    cursor: pointer;
}

.faq-question::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: var(--color-steel);
    transform: rotate(45deg);
    transition: transform 0.22s ease, color 0.22s ease;
    flex: 0 0 auto;
}

.faq-question.open::after {
    color: var(--color-accent);
    transform: rotate(-135deg);
}

.faq-question:hover::after {
    color: var(--color-accent);
}

.faq-question-text {
    color: var(--color-ink);
    font-weight: 800;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 22px 22px;
    color: var(--color-muted);
}

/* #endregion FAQ Section */

/* #region Footer */

.footer {
    background: var(--color-footer);
    color: var(--color-paper-72);
    padding: 34px 0;
}

.footer-shell {
    width: min(var(--site-width), calc(100% - 56px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer strong {
    color: var(--color-white);
}

.footer p {
    margin: 0;
}

.footer-mobile-supporter {
    display: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--color-paper-72);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .footer-shell > p {
        order: 2;
    }

    .footer-links {
        order: 3;
    }

    .footer-mobile-supporter {
        order: 1;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 0;
        color: var(--color-paper-72);
        font-size: inherit;
        line-height: 1.2;
    }

        .footer-mobile-supporter a {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: var(--color-white);
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
            text-decoration-color: rgba(255, 255, 255, 0.55);
        }

            .footer-mobile-supporter a::after {
                display: none;
                content: "";
            }

        .footer-mobile-supporter img {
            width: 36px;
            height: auto;
            display: block;
            filter: brightness(0) invert(1);
        }
}

/* #endregion Footer */

/* #region Validation States */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-valid);
}

.invalid {
    outline: 1px solid var(--color-invalid);
}

.validation-message,
.text-danger {
    color: var(--color-validation) !important;
}

.blazor-error-boundary {
    padding: 1rem;
    color: var(--color-white);
    background: var(--color-error-surface);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* #endregion Validation States */
