:root {
    --black: #09090b;
    --black-soft: #111114;
    --black-elevated: #17171b;
    --white: #ffffff;
    --off-white: #f5f5f2;
    --surface: #ecece8;
    --line: rgba(13, 13, 15, 0.12);
    --line-light: rgba(255, 255, 255, 0.13);
    --muted: #707078;
    --muted-light: #a6a6ad;
    --red: #e21d2f;
    --red-dark: #bd1121;
    --green: #44c477;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.14);
    --container: 1180px;
    --header-height: 82px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(226, 29, 47, 0.55);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 18px;
    top: -100px;
    z-index: 2000;
    background: var(--white);
    color: var(--black);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 18px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(9, 9, 11, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(9, 9, 11, 0.96);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.brand img {
    width: 174px;
    height: auto;
}

.brand span {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--muted-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #ceced2;
    font-size: 13px;
    font-weight: 700;
}

.main-nav > a:not(.nav-cta) {
    position: relative;
    padding-block: 12px;
}

.main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 6px;
    height: 2px;
    background: var(--red);
    transition: right 180ms ease;
}

.main-nav > a:not(.nav-cta):hover::after {
    right: 0;
}

.nav-cta {
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--white);
    color: var(--black);
    transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--red);
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 1px solid var(--line-light);
    border-radius: 10px;
    background: transparent;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--white);
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    position: relative;
    min-height: 820px;
    padding-top: calc(var(--header-height) + 86px);
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 27%, rgba(226, 29, 47, 0.14), transparent 29%),
        radial-gradient(circle at 10% 86%, rgba(255, 255, 255, 0.05), transparent 25%),
        var(--black);
}

.hero::before {
    content: "";
    position: absolute;
    width: 860px;
    height: 860px;
    right: -330px;
    top: -280px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    box-shadow:
        0 0 0 110px rgba(255, 255, 255, 0.015),
        0 0 0 230px rgba(255, 255, 255, 0.012);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black 12%, transparent 92%);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
    align-items: center;
    gap: 78px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #c9c9ce;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 30px;
    height: 2px;
    background: var(--red);
}

.eyebrow-dark {
    color: #54545c;
}

.hero h1,
.section-heading h2,
.form-intro h2,
.faq-heading h2 {
    margin: 0;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(56px, 6.3vw, 94px);
    font-weight: 300;
}

.hero h1 strong {
    display: block;
    color: var(--white);
    font-weight: 900;
}

.hero h1 strong::after {
    content: ".";
    color: var(--red);
}

.hero-lead {
    max-width: 670px;
    margin: 31px 0 0;
    color: #b7b7be;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(226, 29, 47, 0.18);
}

.button-primary:hover {
    border-color: var(--red-dark);
    background: var(--red-dark);
}

.button-ghost {
    border-color: var(--line-light);
    background: rgba(255, 255, 255, 0.025);
    color: var(--white);
}

.button-ghost:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.button-ghost-dark {
    border-color: rgba(13, 13, 15, 0.18);
    background: transparent;
    color: var(--black);
}

.button-ghost-dark:hover {
    border-color: rgba(13, 13, 15, 0.45);
    background: rgba(13, 13, 15, 0.035);
}

.hero-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 590px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line-light);
    color: #8f8f97;
    font-size: 13px;
}

.hero-notice svg {
    flex: 0 0 18px;
    width: 18px;
    margin-top: 2px;
    fill: var(--red);
}

.hero-notice p {
    margin: 0;
}

.hero-panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(16px);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.2), transparent 38%, rgba(226, 29, 47, 0.22));
    opacity: 0.45;
}

.panel-topline {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 15px;
    color: #9b9ba3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 5px rgba(226, 29, 47, 0.13);
}

.panel-code {
    color: #686870;
}

.map-card {
    position: relative;
    height: 460px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 17px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        #0d0d10;
    background-size: 38px 38px;
}

.map-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 58% 44%, rgba(226, 29, 47, 0.18), transparent 34%);
    pointer-events: none;
}

.tunisia-map {
    position: absolute;
    width: 210px;
    height: auto;
    right: 46px;
    top: 16px;
    z-index: 2;
    overflow: visible;
}

.tunisia-map > path:first-child {
    fill: rgba(255, 255, 255, 0.035);
    stroke: rgba(255, 255, 255, 0.48);
    stroke-width: 2;
}

.tunisia-map circle {
    fill: var(--red);
    stroke: rgba(226, 29, 47, 0.25);
    stroke-width: 8;
}

.tunisia-map .pulse-line {
    fill: none;
    stroke: rgba(226, 29, 47, 0.5);
    stroke-width: 2;
    stroke-dasharray: 6 8;
}

.map-overlay {
    position: absolute;
    left: 25px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-overlay > span {
    color: var(--muted-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.map-overlay strong {
    font-size: 27px;
    line-height: 1.2;
}

.map-overlay small {
    max-width: 230px;
    color: #797981;
    font-size: 11px;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.signal-grid > div {
    display: flex;
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    padding: 11px 12px;
    background: #101013;
}

.signal-grid span {
    color: #686870;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.signal-grid strong {
    margin-top: 4px;
    color: #d9d9dd;
    font-size: 11px;
}

.hero-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-width: max-content;
    padding: 19px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.018);
    color: #686870;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero-strip i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red);
}

.section {
    position: relative;
    padding: 118px 0;
}

.section-light,
.section-process,
.section-faq {
    background: var(--off-white);
    color: var(--black);
}

.section-dark {
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0, rgba(226, 29, 47, 0.1), transparent 25%),
        var(--black-soft);
}

.section-dark::after {
    content: "PITSTOP";
    position: absolute;
    right: -30px;
    bottom: -45px;
    color: rgba(255, 255, 255, 0.022);
    font-size: clamp(110px, 18vw, 260px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.07em;
    pointer-events: none;
}

.section-heading {
    position: relative;
    z-index: 2;
    margin-bottom: 62px;
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 80px;
}

.section-heading h2,
.form-intro h2,
.faq-heading h2 {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
}

.section-heading h2 em {
    color: var(--red);
    font-style: normal;
}

.split-heading > p,
.centered-heading > p,
.faq-heading + p {
    margin: 0;
    color: #66666e;
    font-size: 17px;
    line-height: 1.75;
}

.centered-heading {
    max-width: 790px;
    margin-inline: auto;
    text-align: center;
}

.centered-heading .eyebrow {
    justify-content: center;
}

.centered-heading h2 {
    color: var(--white);
}

.centered-heading > p {
    max-width: 680px;
    margin: 25px auto 0;
    color: #a5a5ad;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.principle-card {
    position: relative;
    min-height: 365px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.principle-card:hover {
    z-index: 2;
    transform: translateY(-7px);
    border-color: rgba(226, 29, 47, 0.25);
    box-shadow: 0 25px 60px rgba(20, 20, 22, 0.09);
}

.principle-featured {
    background: var(--black);
    color: var(--white);
}

.card-index {
    color: #9a9aa0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.card-icon {
    width: 54px;
    height: 54px;
    margin: 54px 0 30px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(226, 29, 47, 0.08);
}

.card-icon svg {
    width: 30px;
    fill: none;
    stroke: var(--red);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.principle-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
}

.principle-card p {
    margin: 15px 0 0;
    color: #6c6c74;
    font-size: 14px;
}

.principle-featured p {
    color: #9b9ba3;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
}

.card-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #aaaab1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.truth-banner {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
    padding: 25px 32px;
    border-radius: var(--radius-md);
    background: #e8e8e3;
}

.truth-mark {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
}

.truth-banner span {
    display: block;
    margin-bottom: 4px;
    color: #75757c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.truth-banner strong {
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1.3;
}

.profile-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.profile-card {
    min-height: 400px;
    padding: 30px 27px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
    transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.profile-card:hover {
    transform: translateY(-7px);
    border-color: rgba(226, 29, 47, 0.42);
    background: rgba(255, 255, 255, 0.05);
}

.profile-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(226, 29, 47, 0.5);
    border-radius: 50%;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.profile-card h3 {
    margin: 65px 0 16px;
    font-size: 24px;
    line-height: 1.15;
}

.profile-card p {
    margin: 0;
    color: #9f9fa7;
    font-size: 14px;
}

.profile-card ul {
    display: grid;
    gap: 9px;
    margin: 28px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line-light);
    list-style: none;
}

.profile-card li {
    position: relative;
    padding-left: 17px;
    color: #cbcbcf;
    font-size: 12px;
}

.profile-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
}

.section-process {
    background: #e8e8e3;
}

.process-timeline {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(13, 13, 15, 0.2);
    list-style: none;
}

.process-timeline li {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 130px;
    padding: 24px 4px;
    border-bottom: 1px solid rgba(13, 13, 15, 0.14);
}

.timeline-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.process-timeline strong {
    display: block;
    font-size: 24px;
}

.process-timeline p {
    margin: 4px 0 0;
    color: #66666e;
    font-size: 14px;
}

.timeline-state {
    min-width: 112px;
    padding: 8px 12px;
    border: 1px solid rgba(13, 13, 15, 0.16);
    border-radius: 999px;
    color: #77777d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-align: center;
    text-transform: uppercase;
}

.state-active {
    border-color: rgba(68, 196, 119, 0.45);
    background: rgba(68, 196, 119, 0.08);
    color: #168846;
}

.section-form {
    padding: 120px 0;
    background:
        radial-gradient(circle at 10% 8%, rgba(226, 29, 47, 0.14), transparent 20%),
        #101013;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
    align-items: start;
    gap: 76px;
}

.form-intro {
    position: sticky;
    top: 125px;
}

.form-intro h2 {
    max-width: 520px;
    color: var(--white);
}

.form-intro > p {
    max-width: 470px;
    margin: 26px 0 0;
    color: #9e9ea6;
    font-size: 17px;
}

.form-assurances {
    display: grid;
    gap: 14px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--line-light);
}

.form-assurances > div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cdccd1;
    font-size: 13px;
}

.form-assurances svg {
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(68, 196, 119, 0.12);
    fill: none;
    stroke: var(--green);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.anti-fraud {
    margin-top: 35px;
    padding: 19px 20px;
    border: 1px solid rgba(226, 29, 47, 0.3);
    border-radius: var(--radius-md);
    background: rgba(226, 29, 47, 0.055);
}

.anti-fraud strong {
    color: #f4d8dc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.anti-fraud p {
    margin: 8px 0 0;
    color: #a8a8af;
    font-size: 12px;
}

.application-card {
    min-width: 0;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow);
}

.alert {
    margin-bottom: 24px;
    padding: 15px 17px;
    border-radius: 12px;
}

.alert strong {
    display: block;
    font-size: 14px;
}

.alert p {
    margin: 4px 0 0;
    font-size: 13px;
}

.alert-error {
    border: 1px solid rgba(226, 29, 47, 0.25);
    background: rgba(226, 29, 47, 0.07);
    color: #951323;
}

.form-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 34px;
}

.progress-line {
    position: absolute;
    top: 15px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    overflow: hidden;
    background: #e3e3e5;
}

.progress-line span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--red);
    transition: width 240ms ease;
}

.progress-line span.step-1 { width: 0; }
.progress-line span.step-2 { width: 33.333%; }
.progress-line span.step-3 { width: 66.666%; }
.progress-line span.step-4 { width: 100%; }

.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9b9ba1;
}

.progress-step > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid #e3e3e5;
    border-radius: 50%;
    background: var(--white);
    font-size: 11px;
    font-weight: 900;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.progress-step small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.progress-step.is-active,
.progress-step.is-complete {
    color: var(--black);
}

.progress-step.is-active > span,
.progress-step.is-complete > span {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.form-panel {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-panel[hidden] {
    display: none;
}

.form-panel legend {
    width: 100%;
    margin-bottom: 7px;
    padding: 0;
    color: var(--black);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.form-panel legend span {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.panel-help {
    margin: 0 0 30px;
    color: #77777e;
    font-size: 13px;
}

.field-grid {
    display: grid;
    gap: 17px;
}

.field-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    margin-bottom: 19px;
}

.field label,
.label-row label {
    display: block;
    margin-bottom: 8px;
    color: #313136;
    font-size: 12px;
    font-weight: 800;
}

.field label > span,
.consent-box strong {
    color: var(--red);
}

.field label small,
.label-row label small {
    color: #8a8a91;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d9d9dd;
    border-radius: 11px;
    background: #fff;
    color: #161619;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input,
.field select {
    height: 50px;
    padding: 0 14px;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
    padding: 14px;
    line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #aaaab0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    border-color: rgba(226, 29, 47, 0.72);
    box-shadow: 0 0 0 4px rgba(226, 29, 47, 0.08);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.consent-box.is-invalid {
    border-color: var(--red);
    background: rgba(226, 29, 47, 0.025);
}

.field-error {
    margin: 6px 0 0;
    color: #bd1325;
    font-size: 11px;
    font-weight: 700;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.label-row > span {
    color: #8a8a91;
    font-size: 10px;
    font-weight: 700;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #ededee;
}

.form-actions-end {
    justify-content: flex-end;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.consent-box {
    padding: 17px;
    border: 1px solid #dedee1;
    border-radius: 12px;
    background: #fafafa;
}

.consent-secondary {
    margin-top: 11px;
    background: #fff;
}

.checkbox-label {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    display: grid;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    place-items: center;
    border: 1px solid #c9c9cd;
    border-radius: 6px;
    background: #fff;
    transition: background 160ms ease, border-color 160ms ease;
}

.custom-check::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transform: rotate(-45deg) translateY(-1px);
}

.checkbox-label input:checked + .custom-check {
    border-color: var(--red);
    background: var(--red);
}

.checkbox-label input:checked + .custom-check::after {
    opacity: 1;
}

.checkbox-label input:focus-visible + .custom-check {
    outline: 3px solid rgba(226, 29, 47, 0.25);
    outline-offset: 2px;
}

.checkbox-label > span:last-child {
    color: #58585f;
    font-size: 12px;
    line-height: 1.55;
}

.checkbox-label a {
    color: var(--red-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.non-contractual-box {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    margin-top: 18px;
    padding: 15px 17px;
    border-radius: 12px;
    background: #f0f0ed;
}

.non-contractual-box svg {
    width: 24px;
    fill: none;
    stroke: var(--red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.non-contractual-box p {
    margin: 0;
    color: #5f5f66;
    font-size: 11px;
}

.button-submit {
    position: relative;
    min-width: 220px;
}

.button-submit.is-loading {
    pointer-events: none;
    opacity: 0.78;
}

.button-submit.is-loading [data-submit-label] {
    opacity: 0;
}

.button-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: spin 700ms linear infinite;
}

.button-submit.is-loading .button-loader {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.section-faq {
    background: var(--off-white);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 90px;
}

.faq-heading {
    position: sticky;
    top: 125px;
    margin: 0;
}

.faq-heading h2 {
    max-width: 450px;
}

.faq-list {
    border-top: 1px solid rgba(13, 13, 15, 0.18);
}

.faq-list details {
    border-bottom: 1px solid rgba(13, 13, 15, 0.15);
}

.faq-list summary {
    position: relative;
    padding: 25px 56px 25px 0;
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    font-weight: 800;
}

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

.faq-list summary span,
.faq-list summary span::after {
    position: absolute;
    background: var(--black);
}

.faq-list summary span {
    right: 10px;
    top: 50%;
    width: 17px;
    height: 2px;
}

.faq-list summary span::after {
    content: "";
    left: 7.5px;
    top: -7.5px;
    width: 2px;
    height: 17px;
    transition: transform 180ms ease;
}

.faq-list details[open] summary span::after {
    transform: rotate(90deg);
}

.faq-list details p {
    max-width: 690px;
    margin: -8px 0 26px;
    color: #66666d;
    font-size: 14px;
}

.site-footer {
    padding: 68px 0 20px;
    background: #08080a;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    padding-bottom: 52px;
}

.footer-brand img {
    width: 170px;
}

.footer-brand p {
    margin: 13px 0 0;
    color: #76767e;
    font-size: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 170px);
    gap: 40px;
}

.footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links strong {
    margin-bottom: 7px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links a {
    color: #8e8e96;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
    color: #66666e;
    font-size: 10px;
}

/* Legal and confirmation pages */
.inner-page {
    min-height: 100vh;
    padding: calc(var(--header-height) + 80px) 0 90px;
    background: var(--off-white);
    color: var(--black);
}

.inner-page-header {
    margin-bottom: 46px;
}

.inner-page-header .eyebrow {
    margin-bottom: 14px;
}

.inner-page-header h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.inner-page-header > p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #66666e;
    font-size: 17px;
}

.legal-card,
.confirmation-card {
    max-width: 900px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 20px 50px rgba(20, 20, 24, 0.06);
}

.legal-card h2 {
    margin: 34px 0 12px;
    font-size: 24px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: #5f5f66;
    font-size: 14px;
}

.legal-card a {
    color: var(--red-dark);
    font-weight: 700;
    text-decoration: underline;
}

.legal-card ul {
    padding-left: 20px;
}

.confirmation-card {
    max-width: 760px;
    text-align: center;
}

.confirmation-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(68, 196, 119, 0.12);
}

.confirmation-icon svg {
    width: 36px;
    fill: none;
    stroke: #16934e;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.confirmation-card h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.confirmation-card > p {
    max-width: 580px;
    margin: 20px auto 0;
    color: #66666e;
}

.reference-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 28px auto;
    padding: 13px 18px;
    border-radius: 12px;
    background: #f0f0ed;
}

.reference-box span {
    color: #77777e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.reference-box strong {
    font-size: 17px;
    letter-spacing: 0.05em;
}

.confirmation-note {
    margin: 10px 0 28px;
    padding: 17px;
    border-left: 4px solid var(--red);
    border-radius: 8px;
    background: rgba(226, 29, 47, 0.05);
    color: #64646b;
    font-size: 12px;
    text-align: left;
}

@media (max-width: 1080px) {
    .hero-layout {
        grid-template-columns: 1fr 410px;
        gap: 42px;
    }

    .hero h1 {
        font-size: clamp(52px, 7vw, 76px);
    }

    .principles-grid,
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-layout {
        grid-template-columns: 0.65fr 1.35fr;
        gap: 42px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: min(var(--container), calc(100% - 36px));
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        min-height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 30px 24px 42px;
        overflow-y: auto;
        background: #09090b;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .main-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    body.nav-open .site-header {
        background: #09090b;
        backdrop-filter: none;
    }

    .main-nav a {
        padding: 18px 4px;
        border-bottom: 1px solid var(--line-light);
        font-size: 17px;
    }

    .main-nav .nav-cta {
        margin-top: 22px;
        padding: 15px 20px;
        border: 0;
        text-align: center;
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 65px) 0 100px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .hero-copy {
        max-width: 740px;
    }

    .hero-panel {
        width: min(100%, 560px);
        margin-inline: auto;
        transform: none;
    }

    .hero-strip {
        overflow: hidden;
        justify-content: flex-start;
    }

    .split-heading,
    .form-layout,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .form-intro,
    .faq-heading {
        position: static;
    }

    .form-intro > p {
        max-width: 650px;
    }

    .section {
        padding: 90px 0;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .profile-card {
        min-height: 350px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 142px;
    }

    .brand span {
        display: none;
    }

    .hero {
        padding-top: calc(var(--header-height) + 48px);
    }

    .hero h1 {
        font-size: clamp(46px, 14vw, 64px);
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-panel {
        padding: 12px;
        border-radius: 18px;
    }

    .map-card {
        height: 390px;
    }

    .tunisia-map {
        right: 25px;
        width: 178px;
    }

    .signal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .principles-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .principle-card,
    .profile-card {
        min-height: auto;
    }

    .card-icon {
        margin-top: 40px;
    }

    .truth-banner {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .process-timeline li {
        grid-template-columns: 54px 1fr;
        gap: 15px;
    }

    .timeline-state {
        grid-column: 2;
        justify-self: start;
    }

    .application-card {
        margin-inline: -4px;
        padding: 24px 18px;
        border-radius: 20px;
    }

    .form-progress small {
        display: none;
    }

    .field-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .button {
        width: 100%;
    }

    .form-actions-end {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .legal-card,
    .confirmation-card {
        padding: 25px 20px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
