.ftf-public-page {
    background:
        linear-gradient(rgba(248, 249, 250, 0.76), rgba(238, 244, 255, 0.82)),
        var(--ftf-page-bg-image) center center / cover no-repeat fixed;
    background-color: #eef4ff;
}

html {
    overflow-y: scroll;
}

.ftf-public-wrap {
    min-height: 100vh;
}

.ftf-public-shell {
    max-width: 1320px;
    margin: 0 auto;
}

body.ftf-public-page.modal-open {
    padding-right: 0 !important;
}

.ftf-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
    padding: 1.75rem;
    border: 0;
    border-radius: 1.5rem;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.28) 70%, rgba(255, 255, 255, 0) 78%),
        var(--ftf-hero-bg-image) var(--ftf-hero-bg-position-desktop, center center) / cover no-repeat;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.ftf-public-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 60%;
}

.ftf-company-mark {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ftf-accent);
}

.ftf-public-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    font-weight: 800;
    color: var(--ftf-primary);
    letter-spacing: -0.03em;
}

.ftf-public-intro {
    max-width: 42rem;
    font-size: 1.06rem;
    line-height: 1.75;
    color: #42526b;
}

.ftf-public-hero-media {
    min-height: 280px;
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.35));
}

.ftf-public-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ftf-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.ftf-form-card {
    border-radius: 1.5rem;
    background: var(--ftf-card-background);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.ftf-form-card .card-body {
    padding: 2rem;
}

.ftf-public-guidance-card .card-body {
    color: #304258;
}

.ftf-public-guidance-card p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.ftf-form-card h2.h5 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(13, 42, 84, 0.10);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ftf-primary);
}

.ftf-form-card h2.h5:first-of-type {
    margin-top: 0;
}

.ftf-form-card .form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2f46;
}

.ftf-form-card .form-control,
.ftf-form-card .form-select {
    min-height: 52px;
    border: 1px solid #d7dfeb;
    border-radius: 0.9rem;
    background-color: rgba(255, 255, 255, 0.96);
    color: #1d2a3b;
    box-shadow: none;
}

.ftf-form-card .form-control:focus,
.ftf-form-card .form-select:focus {
    border-color: var(--ftf-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.ftf-form-card .text-muted,
.ftf-form-card .form-text,
.ftf-form-footnote {
    color: #5c6b82 !important;
}

.ftf-form-card .alert {
    border-radius: 1rem;
}

.ftf-form-card .form-check {
    /* padding: 0.85rem 0 0.85rem 2rem; */
    padding: 0.4rem 0 0.4rem 2rem;
    margin-bottom: 0;
}

.ftf-required-indicator {
    color: #dc3545;
    font-weight: 700;
}

.ftf-form-card .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: -2rem;
    margin-top: 0.15rem;
    border-color: #a9b7c9;
}

.ftf-form-card .form-check-input:checked {
    background-color: var(--ftf-primary);
    border-color: var(--ftf-primary);
}

.ftf-form-card .form-check-label {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #1c2738;
}

.ftf-form-card .bg-light {
    background-color: #f4f8fc !important;
}

.ftf-form-card form > button[type="submit"] {
    width: 100%;
    margin-top: 1.5rem;
}

.ftf-form-footnote {
    margin-top: 0.9rem;
    font-size: 0.92rem;
    text-align: center;
}

.ftf-btn-primary {
    min-height: 56px;
    border-radius: 0.95rem;
    background: var(--ftf-button);
    border: 0;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 32px rgba(13, 42, 84, 0.18);
}

.ftf-btn-primary:hover,
.ftf-btn-primary:focus {
    background: var(--ftf-button);
    color: #ffffff;
    opacity: 0.96;
}

.ftf-sidebar-translation-button {
    min-height: 50px;
}

.ftf-public-language-modal-action-button {
    min-height: auto;
    border-radius: 0.375rem;
    box-shadow: none;
}

.ftf-form-sidebar {
    display: grid;
    gap: 1rem;
}

.ftf-sidebar-card {
    padding: 1.5rem;
    border: 1px solid rgba(13, 42, 84, 0.10);
    border-radius: 1.25rem;
    background: var(--ftf-card-background);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(6px);
}

.ftf-sidebar-card--success {
    background:
        linear-gradient(rgba(241, 250, 244, 0.86), rgba(241, 250, 244, 0.86)),
        var(--ftf-card-background);
}

.ftf-sidebar-card--warning {
    background:
        linear-gradient(rgba(255, 249, 238, 0.88), rgba(255, 249, 238, 0.88)),
        var(--ftf-card-background);
}

.ftf-sidebar-card--info {
    background:
        linear-gradient(rgba(240, 247, 255, 0.88), rgba(240, 247, 255, 0.88)),
        var(--ftf-card-background);
}

.ftf-sidebar-title {
    margin: 0 0 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(13, 42, 84, 0.10);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ftf-primary);
}

.ftf-sidebar-company {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2f46;
}

.ftf-sidebar-meta,
.ftf-sidebar-card p,
.ftf-sidebar-card li {
    color: #304258;
    line-height: 1.65;
}

.ftf-sidebar-card ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.ftf-header-image img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.card {
    border-radius: 1rem;
}

/* .ftf-signature-canvas-wrap {
    width: 50%;
} */

.ftf-signature-canvas-wrap {
    width: min(100%, 28rem);
}

@media (max-width: 991.98px) {
    .ftf-public-hero,
    .ftf-form-layout {
        grid-template-columns: 1fr;
    }

    .ftf-public-hero-media {
        min-height: 220px;
    }
}

@media (max-width: 767.98px) {
    .ftf-public-hero {
        padding: 1.25rem;
        background:
            linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
            var(--ftf-hero-bg-image) var(--ftf-hero-bg-position-mobile, right center) / cover no-repeat;
    }

    .ftf-public-hero-copy {
        max-width: 100% !important;
        width: 100%;
    }

    .ftf-form-card .card-body {
        padding: 1.25rem;
    }

    .ftf-public-intro {
        font-size: 1rem;
        line-height: 1.65;
    }
}