@import url("../../../assets/css/cabbia-font.css");

:root {
            --dark: #121212;
            --light: #F9F8F6;
            --paper: rgba(255, 255, 255, 0.72);
            --text-dark: #42413D;
            --text-soft: rgba(66, 65, 61, 0.72);
            --text-light: #FDF5E6;
            --gold: #D7AD46;
            --gold-deep: #9A7431;
            --line: rgba(66, 65, 61, 0.18);
            --danger: #8A1F1F;
            --success: #1F6F43;
            color-scheme: only light;
        }

        * {
            box-sizing: border-box;
        }

        html {
            background: var(--light);
            color-scheme: only light;
            -webkit-text-size-adjust: none;
            text-size-adjust: none;
        }

body {
            margin: 0;
            min-height: 100vh;
            font-family: var(--cabbia-font);
            background: linear-gradient(to bottom, var(--light) 0 50vh, var(--dark) 50vh 100vh);
            background-attachment: fixed;
            background-repeat: no-repeat;
            background-size: 100vw 100vh;
            color: var(--text-dark);
            color-scheme: only light;
            -webkit-text-size-adjust: none;
            text-size-adjust: none;
        }

        main {
            position: relative;
            width: min(760px, calc(100vw - 28px));
            margin: 34px auto;
            padding: clamp(22px, 4vw, 34px);
            background: var(--light);
            color: var(--text-dark);
            border: 1px solid var(--line);
            border-radius: 8px;
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
            color-scheme: only light;
        }

        .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;
        }

        @keyframes cabbiaButtonThrob {
            0%,
            100% {
                transform: translateY(0) scale(1);
                filter: drop-shadow(0 0 0 rgba(215, 173, 70, 0));
            }

            50% {
                transform: translateY(-1px) scale(1.035);
                filter: drop-shadow(0 0 9px rgba(215, 173, 70, 0.30));
            }
        }

        button.throb-until-clicked:not(:disabled):not(.hidden):not(.has-been-clicked) {
            animation: cabbiaButtonThrob 1.85s ease-in-out infinite;
            transform-origin: center;
            will-change: transform, filter;
        }

        button.throb-until-clicked:not(:disabled):not(.hidden):not(.has-been-clicked):hover {
            animation-play-state: paused;
        }

        @media (prefers-reduced-motion: reduce) {
            button.throb-until-clicked:not(:disabled):not(.hidden):not(.has-been-clicked) {
                animation: none;
            }
        }

        .language-switcher {
            position: absolute;
            top: 14px;
            right: 14px;
            z-index: 5;
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        .language-switcher-links {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px;
            border: 1px solid rgba(154, 116, 49, 0.24);
            background: rgba(255, 255, 255, 0.52);
        }

        .language-switcher a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            min-height: 24px;
            padding: 0 8px;
            color: var(--text-soft);
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
            text-decoration: none;
            transition: background 140ms ease, color 140ms ease;
        }

        .language-switcher a:hover,
        .language-switcher a.is-active {
            background: rgba(215, 173, 70, 0.16);
            color: var(--gold-deep);
        }

        .language-switcher-select {
            position: relative;
            display: none;
        }

        .language-switcher-select select {
            width: 58px;
            height: 30px;
            padding: 0 24px 0 10px;
            border: 1px solid rgba(154, 116, 49, 0.30);
            border-radius: 0;
            background: rgba(255, 255, 255, 0.68);
            color: var(--gold-deep);
            font: inherit;
            font-size: 12px;
            font-weight: 800;
            appearance: none;
            cursor: pointer;
        }

        .language-switcher-select::after {
            content: "";
            position: absolute;
            right: 9px;
            top: 50%;
            width: 8px;
            height: 8px;
            border-right: 2px solid var(--gold-deep);
            border-bottom: 2px solid var(--gold-deep);
            transform: translateY(-70%) rotate(45deg);
            pointer-events: none;
        }

        .brand {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 22px;
            padding-right: 128px;
            min-width: 0;
        }

        .brand > div:first-child {
            min-width: 0;
            width: 100%;
            max-width: 100%;
        }

        h1 {
            margin: 0 0 8px;
            font-size: clamp(28px, 5vw, 38px);
            line-height: 1.08;
            font-weight: 400;
            letter-spacing: 0;
            display: block;
            width: 100%;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
        }

        .lead {
            margin: 0;
            color: var(--text-soft);
            font-size: 15px;
            line-height: 1.55;
        }

        .badge {
            flex: 0 0 auto;
            padding: 9px 12px;
            border: 1px solid rgba(154, 116, 49, 0.34);
            border-radius: 0;
            color: var(--gold-deep);
            font-size: 13px;
            font-weight: 700;
            background: rgba(255, 255, 255, 0.58);
        }

        .portal-section {
            display: none;
        }

        .portal-section.is-active {
            display: block;
        }

        h2 {
            margin: 30px 0 10px;
            font-size: clamp(21px, 3vw, 27px);
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: 0;
        }

        #intro_section h2 {
            max-width: 100%;
            white-space: nowrap;
            font-size: clamp(14px, 3.15vw, 25px);
            line-height: 1.18;
        }

        .heading-section-link {
            display: block;
            min-width: 0;
            width: 100%;
            max-width: 100%;
            height: auto;
            padding: 0;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: inherit;
            font: inherit;
            font-weight: inherit;
            line-height: inherit;
            letter-spacing: inherit;
            box-shadow: none;
            cursor: pointer;
            text-align: inherit;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: clip;
            transition: color 140ms ease;
        }

        .heading-section-link:hover,
        .heading-section-link:hover:not(:disabled) {
            background: transparent;
            color: var(--gold-deep);
            box-shadow: none;
        }

        .portal-section p,
        .portal-section li {
            color: var(--text-soft);
            font-size: 15px;
            line-height: 1.65;
        }

        .portal-section p {
            margin: 0 0 14px;
        }

        .portal-section ul {
            margin: 0 0 18px;
            padding-left: 20px;
        }

        .section-notice {
            margin: 24px 0;
            padding: 16px 18px;
            border: 1px solid rgba(154, 116, 49, 0.28);
            border-radius: 8px;
            background: var(--paper);
        }

        .section-links {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
            margin-top: 28px;
        }

        .section-links.form-nav {
            justify-content: flex-end;
            gap: 14px;
            margin: 0 0 26px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--line);
        }

        .section-link {
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 13px;
            min-width: 0;
            min-height: 30px;
            max-width: 100%;
            padding: 5px 12px;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: var(--text-dark);
            font: inherit;
            font-weight: 800;
            font-size: clamp(12px, 1.7vw, 14px);
            line-height: 1.1;
            text-decoration: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            box-shadow: none;
            transition: color 140ms ease, opacity 140ms ease, transform 140ms ease;
        }

        .section-link::before,
        .verification-panel .secondary-button::before {
            content: "";
            width: 10px;
            height: 10px;
            flex: 0 0 10px;
            border-radius: 50%;
            background: var(--gold);
            border: 2px solid #ffffff;
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.26);
        }

        .section-link::after,
        .verification-panel .secondary-button::after {
            content: "\2193";
            margin-left: 9px;
            color: var(--gold);
            font-size: 17px;
            font-weight: 800;
            line-height: 1;
            transform: translateY(0);
            flex: 0 0 auto;
        }

        .verification-panel #send_verification_button::after {
            content: "";
            width: 19px;
            height: 15px;
            margin-left: 9px;
            background-color: var(--gold);
            mask-image: url("data:image/svg+xml,%3Csvg width='24' height='18' viewBox='0 0 24 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.8 2.5H20.2C21.2 2.5 22 3.3 22 4.3V13.7C22 14.7 21.2 15.5 20.2 15.5H3.8C2.8 15.5 2 14.7 2 13.7V4.3C2 3.3 2.8 2.5 3.8 2.5Z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M3 4L10.9 10.15C11.55 10.66 12.45 10.66 13.1 10.15L21 4' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.9 8.6L3.1 14.4M15.1 8.6L20.9 14.4' stroke='black' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round' opacity='.55'/%3E%3C/svg%3E");
            mask-repeat: no-repeat;
            mask-position: center;
            mask-size: contain;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='18' viewBox='0 0 24 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.8 2.5H20.2C21.2 2.5 22 3.3 22 4.3V13.7C22 14.7 21.2 15.5 20.2 15.5H3.8C2.8 15.5 2 14.7 2 13.7V4.3C2 3.3 2.8 2.5 3.8 2.5Z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M3 4L10.9 10.15C11.55 10.66 12.45 10.66 13.1 10.15L21 4' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.9 8.6L3.1 14.4M15.1 8.6L20.9 14.4' stroke='black' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round' opacity='.55'/%3E%3C/svg%3E");
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-position: center;
            -webkit-mask-size: contain;
            transform: translateY(0);
        }

        .verification-panel #send_verification_button.secondary-button {
            justify-content: center;
            min-width: min(100%, 280px);
            min-height: 36px;
            padding: 7px 18px;
            border: 1px solid rgba(18, 18, 18, 0.86);
            border-radius: 4px;
            background: var(--dark);
            color: var(--text-light);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
        }

        .verification-panel #send_verification_button.secondary-button::before {
            content: none;
        }

        .verification-panel #send_verification_button.secondary-button::after {
            background-color: var(--text-light);
        }

        .verification-panel #send_verification_button.secondary-button:hover:not(:disabled) {
            background: #050505;
            color: var(--text-light);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
        }

        .section-link.arrow-up::after {
            content: "\2191";
        }

        .section-link.arrow-down::after {
            content: "\2193";
        }

        .section-links.form-nav .section-link {
            min-height: 28px;
            padding: 3px 0;
            font-size: clamp(11px, 1.5vw, 13px);
            font-weight: 800;
        }

        button.section-link:hover,
        button.section-link:hover:not(:disabled),
        .section-link:hover {
            background: rgba(255, 255, 255, 0.78);
            color: var(--gold-deep);
            box-shadow: none;
            transform: translateY(-1px);
        }

        .section-links.form-nav .section-link:hover,
        .section-links.form-nav .section-link:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.78);
            box-shadow: none;
        }

        .section-link.secondary {
            background: transparent;
            color: var(--dark);
            border: 0;
        }

        button.section-link.secondary:hover,
        button.section-link.secondary:hover:not(:disabled),
        .section-link.secondary:hover {
            background: rgba(255, 255, 255, 0.78);
        }

        .section-footer {
            margin-top: 30px;
            padding-top: 18px;
            border-top: 1px solid var(--line);
            color: var(--text-soft);
            font-size: 13px;
            line-height: 1.55;
        }

        .message {
            margin: 18px 0;
            padding: 14px 16px;
            border-radius: 8px;
            line-height: 1.5;
            font-weight: 700;
        }

        .message.error {
            background: rgba(138, 31, 31, 0.12);
            border: 1px solid rgba(138, 31, 31, 0.28);
            color: var(--danger);
        }

        .message.success {
            background: rgba(31, 111, 67, 0.12);
            border: 1px solid rgba(31, 111, 67, 0.28);
            color: var(--success);
        }

        form {
            display: grid;
            gap: 18px;
        }

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

        .field {
            position: relative;
        }

        .field.full {
            grid-column: 1 / -1;
        }

        .floating-label {
            position: absolute;
            left: 13px;
            top: -9px;
            max-width: calc(100% - 26px);
            padding: 0 7px;
            background: var(--light);
            color: var(--gold-deep);
            font-size: clamp(10px, 1.6vw, 13px);
            font-weight: 700;
            line-height: 18px;
            z-index: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .label-hint {
            display: none;
            color: var(--text-soft);
            font-weight: 600;
            white-space: nowrap;
        }

        .field:focus-within .label-hint {
            display: inline;
        }

        input,
        select,
        textarea {
            width: 100%;
            border: 1px solid rgba(66, 65, 61, 0.30);
            border-radius: 7px;
            background: rgba(255, 255, 255, 0.88);
            color: var(--text-dark);
            font: inherit;
            outline: none;
            color-scheme: only light;
            transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
        }

        input,
        select {
            height: 40px;
            padding: 8px 12px;
        }

        textarea {
            min-height: 76px;
            resize: vertical;
            padding: 12px;
        }

        input:focus,
        select:focus,
        textarea:focus {
            border-color: var(--danger);
            box-shadow: 0 0 0 3px rgba(138, 31, 31, 0.10);
            background: #fff;
        }

        .field.is-valid input,
        .field.is-valid select,
        .field.is-valid textarea {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(215, 173, 70, 0.20);
        }

        .field.is-invalid input,
        .field.is-invalid select,
        .field.is-invalid textarea {
            border-color: var(--danger);
            box-shadow: 0 0 0 3px rgba(138, 31, 31, 0.10);
        }

        .field.is-disabled .floating-label {
            color: rgba(154, 116, 49, 0.68);
        }

        input:disabled,
        select:disabled,
        textarea:disabled {
            opacity: 0.58;
            cursor: not-allowed;
            background: rgba(255, 255, 255, 0.48);
        }

        input[readonly],
        textarea[readonly] {
            cursor: not-allowed;
        }

        .promo-code-field input[readonly] {
            opacity: 0.72;
            background: rgba(255, 255, 255, 0.48);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .promo-code-field.has-promo-code input[readonly] {
            border-color: rgba(215, 173, 70, 0.72);
            box-shadow: 0 0 0 3px rgba(215, 173, 70, 0.16);
        }

        .promo-code-field.has-used-promo-code input:disabled {
            opacity: 0.72;
            color: rgba(66, 65, 61, 0.78);
            background: rgba(255, 255, 255, 0.48);
            border-color: rgba(138, 31, 31, 0.32);
        }

        .error-text {
            margin-top: 6px;
            color: var(--danger);
            font-size: 13px;
            line-height: 1.4;
        }

        .checks {
            display: grid;
            gap: 10px;
            padding: 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--paper);
        }

        .check-row {
            position: relative;
            display: block;
            font-size: 14px;
            line-height: 1.45;
            cursor: pointer;
        }

        .check-row input {
            position: absolute;
            left: 0;
            top: 0;
            width: 19px;
            height: 19px;
            opacity: 0;
            pointer-events: none;
        }

        .check-row span {
            position: relative;
            display: flex;
            align-items: center;
            min-height: 22px;
            padding-left: 30px;
        }

        .check-row span::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 19px;
            height: 19px;
            transform: translateY(-50%);
            background: url("../radio-white.png") center / contain no-repeat;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
        }

        .check-row input:checked + span::before {
            background-image: url("../radio-yellow.png");
        }

        .check-row input:checked + span::after {
            content: "";
            position: absolute;
            left: 6px;
            top: 50%;
            width: 7px;
            height: 4px;
            border-left: 2px solid #ffffff;
            border-bottom: 2px solid #ffffff;
            transform: translateY(-58%) rotate(-45deg);
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.24));
        }

        .check-row input:focus-visible + span::before {
            outline: 2px solid rgba(215, 173, 70, 0.68);
            outline-offset: 3px;
            border-radius: 50%;
        }

        .note {
            margin: 0;
            color: var(--text-soft);
            font-size: 13px;
            line-height: 1.5;
        }

        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
            justify-content: flex-end;
            margin-top: 2px;
        }

        .actions .clear-form-button {
            min-width: 0;
            height: auto;
            background: transparent;
            color: var(--text-dark);
            border: 0;
            box-shadow: none;
        }

        .actions .clear-form-button:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.78);
        }

        button {
            min-width: min(100%, 260px);
            height: 40px;
            border: 0;
            border-radius: 7px;
            background: var(--dark);
            color: var(--text-light);
            font: inherit;
            font-weight: 800;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
            transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
        }

        button:hover:not(:disabled) {
            background: #050505;
            box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
        }

        button:disabled {
            cursor: not-allowed;
            opacity: 0.48;
            box-shadow: none;
        }

        .secondary-button {
            background: #ffffff;
            color: var(--dark);
            border: 1px solid rgba(66, 65, 61, 0.26);
        }

        .secondary-button:hover:not(:disabled) {
            background: #e7e4dc;
        }

        .verification-status {
            margin-top: 10px;
            padding: 13px 15px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.64);
            border: 1px solid var(--line);
            color: var(--text-soft);
            font-size: 14px;
            line-height: 1.45;
        }

        .verification-panel {
            grid-column: 1 / -1;
            margin-top: -4px;
        }

        .verification-panel .secondary-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 13px;
            width: auto;
            min-width: 0;
            height: auto;
            min-height: 30px;
            margin: 0;
            padding: 4px 2px;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: var(--text-dark);
            font-size: clamp(12px, 1.7vw, 14px);
            font-weight: 800;
            box-shadow: none;
            white-space: nowrap;
        }

        .verification-panel .secondary-button:hover:not(:disabled) {
            background: transparent;
            color: var(--gold-deep);
            box-shadow: none;
            transform: translateY(-1px);
        }

        .verification-panel .secondary-button:disabled {
            opacity: 0.45;
            box-shadow: none;
        }

        .actions button,
        .actions .clear-form-button,
        .verification-panel .secondary-button {
            position: relative;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 13px;
            min-width: 0;
            width: auto;
            min-height: 30px;
            height: auto;
            padding: 5px 12px;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: var(--text-dark);
            font: inherit;
            font-size: clamp(12px, 1.7vw, 14px);
            font-weight: 800;
            box-shadow: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(215, 173, 70, 0.22);
            -webkit-appearance: none;
            appearance: none;
            transition: color 140ms ease, background 140ms ease, opacity 140ms ease, transform 140ms ease;
        }

        .actions button::before,
        .actions .clear-form-button::before {
            content: "";
            width: 10px;
            height: 10px;
            flex: 0 0 10px;
            border-radius: 50%;
            background: var(--gold);
            border: 2px solid #ffffff;
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.26);
        }

        .actions button::after,
        .actions .clear-form-button::after {
            content: "\2193";
            margin-left: 9px;
            color: var(--gold);
            font-size: 17px;
            font-weight: 800;
            line-height: 1;
        }

        .actions .clear-form-button::after {
            content: "\2191";
        }

        .actions button:hover:not(:disabled),
        .actions .clear-form-button:hover:not(:disabled),
        .verification-panel .secondary-button:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.78);
            color: var(--gold-deep);
            box-shadow: none;
            transform: translateY(-1px);
        }

        .actions button:disabled,
        .actions .clear-form-button:disabled {
            opacity: 0.45;
            box-shadow: none;
        }

        .verification-panel .secondary-button.hidden {
            display: none;
        }

        .verification-panel #send_verification_button.secondary-button {
            justify-content: center;
            min-width: min(100%, 280px);
            min-height: 36px;
            padding: 7px 18px;
            border: 1px solid rgba(18, 18, 18, 0.86);
            border-radius: 4px;
            background: var(--dark);
            color: var(--text-light);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
        }

        .verification-panel #send_verification_button.secondary-button::before {
            content: none;
        }

        .verification-panel #send_verification_button.secondary-button::after {
            background-color: var(--text-light);
        }

        .verification-panel #send_verification_button.secondary-button:hover:not(:disabled) {
            background: #050505;
            color: var(--text-light);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
        }

        .whatsapp-same-number-panel {
            grid-column: 1 / -1;
            margin: 0 0 2px;
        }

        .whatsapp-same-number-panel.hidden {
            display: none;
        }

        .whatsapp-same-number {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 14px;
            margin: 0;
            padding: 5px 0;
            border: 0;
            color: var(--text-dark);
            font: inherit;
            font-size: clamp(11px, 1.7vw, 14px);
            line-height: 1.45;
            white-space: nowrap;
        }

        .whatsapp-same-number legend {
            display: contents;
            margin: 0 8px 0 0;
            padding: 0;
            color: var(--text-dark);
            font: inherit;
            line-height: 1.45;
            white-space: nowrap;
        }

        .whatsapp-radio-options {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            flex: 0 0 auto;
        }

        .whatsapp-same-number .inline-radio {
            position: relative;
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            color: var(--text-dark);
            font: inherit;
            cursor: pointer;
        }

        .whatsapp-same-number input[type="radio"] {
            position: absolute;
            left: 0;
            top: 0;
            width: 19px;
            height: 19px;
            opacity: 0;
            pointer-events: none;
        }

        .whatsapp-same-number .inline-radio span {
            position: relative;
            display: flex;
            align-items: center;
            min-height: 22px;
            padding-left: 30px;
        }

        .whatsapp-same-number .inline-radio span::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 19px;
            height: 19px;
            transform: translateY(-50%);
            background: url("../radio-white.png") center / contain no-repeat;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
        }

        .whatsapp-same-number input:checked + span::before {
            background-image: url("../radio-yellow.png");
        }

        .whatsapp-same-number input:checked + span::after {
            content: "";
            position: absolute;
            left: 6px;
            top: 50%;
            width: 7px;
            height: 4px;
            border-left: 2px solid #ffffff;
            border-bottom: 2px solid #ffffff;
            transform: translateY(-58%) rotate(-45deg);
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.24));
        }

        .whatsapp-same-number input:focus-visible + span::before {
            outline: 2px solid rgba(215, 173, 70, 0.68);
            outline-offset: 3px;
            border-radius: 50%;
        }

        .verification-status.is-verified {
            color: var(--success);
            border-color: rgba(31, 111, 67, 0.28);
            background: rgba(31, 111, 67, 0.10);
            font-weight: 700;
        }

        .verification-status.is-error {
            color: var(--danger);
            border-color: rgba(138, 31, 31, 0.28);
            background: rgba(138, 31, 31, 0.10);
            font-weight: 700;
        }

        .verification-timer {
            min-height: 34px;
            margin: 0;
            padding: 7px 10px;
            border: 1px solid rgba(176, 132, 34, 0.38);
            border-radius: 7px;
            background: rgba(255, 255, 255, 0.64);
            color: var(--dark);
            font-size: 13px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            line-height: 18px;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
        }

        .hidden {
            display: none;
        }

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

        .cookie-notice {
            position: fixed;
            left: 50%;
            bottom: 16px;
            z-index: 30;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            width: min(720px, calc(100vw - 28px));
            min-height: 34px;
            padding: 8px 12px;
            transform: translateX(-50%);
            border: 1px solid rgba(215, 173, 70, 0.38);
            background: rgba(18, 18, 18, 0.76);
            color: var(--gold);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
            backdrop-filter: blur(10px);
            font-size: 13px;
            line-height: 1.35;
        }

        .cookie-notice.hidden {
            display: none;
        }

        .cookie-notice span {
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cookie-notice-actions {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex: 0 0 auto;
        }

        .cookie-notice button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            min-width: 42px;
            width: auto;
            height: 24px;
            padding: 0 10px;
            border: 0;
            border-left: 1px solid rgba(215, 173, 70, 0.42);
            border-radius: 0;
            background: transparent;
            color: var(--gold);
            font: inherit;
            font-size: 13px;
            font-weight: 800;
            box-shadow: none;
            cursor: pointer;
        }

        .cookie-notice button:hover:not(:disabled) {
            background: rgba(215, 173, 70, 0.16);
            box-shadow: none;
        }

        .success-overlay {
            position: fixed;
            left: 50%;
            top: 50%;
            z-index: 60;
            display: flex;
            align-items: center;
            justify-content: center;
            width: min(720px, calc(100vw - 28px));
            min-height: 48px;
            padding: 13px 18px;
            transform: translate(-50%, -50%);
            border: 1px solid rgba(215, 173, 70, 0.42);
            background: rgba(18, 18, 18, 0.82);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
            color: var(--gold);
            font-size: 14px;
            font-weight: 800;
            line-height: 1.45;
            text-align: center;
            cursor: pointer;
            backdrop-filter: blur(10px);
            opacity: 1;
            transition: opacity 180ms ease, transform 180ms ease;
        }

        .success-overlay::before {
            content: "";
            width: 10px;
            height: 10px;
            flex: 0 0 10px;
            margin-right: 13px;
            border-radius: 50%;
            background: var(--gold);
            border: 2px solid #ffffff;
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.26);
        }

        .success-overlay.is-hiding {
            opacity: 0;
            transform: translate(-50%, calc(-50% + 8px));
            pointer-events: none;
        }

        @media (max-width: 680px) {
            :root {
                --paper: rgba(255, 255, 255, 0.78);
            }

            html {
                background: linear-gradient(to bottom, var(--light) 0 50svh, var(--dark) 50svh 100svh);
                -webkit-text-size-adjust: none;
                text-size-adjust: none;
            }

            body {
                min-height: 100svh;
                overflow-x: hidden;
                background-attachment: scroll;
                background-size: 100% 100svh;
                font-size: 14px;
                -webkit-text-size-adjust: none;
                text-size-adjust: none;
            }

            main {
                width: min(100% - 16px, 760px);
                margin: 8px auto 18px;
                padding: 46px 14px 22px;
                background: var(--light);
                color: var(--text-dark);
                overflow-x: hidden;
            }

            .language-switcher {
                top: 10px;
                right: 10px;
            }

            .language-switcher-links {
                display: none;
            }

            .language-switcher-select {
                display: block;
            }

            .brand {
                display: block;
                padding-right: 0;
                margin-bottom: 16px;
            }

            h1 {
                width: calc(100% - 72px);
                max-width: calc(100% - 72px);
                font-size: clamp(15px, 4.9vw, 20px);
                line-height: 1.1;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: clip;
            }

            .heading-section-link {
                display: block;
                width: 100%;
                max-width: 100%;
                font-size: inherit;
                line-height: inherit;
                color: inherit;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: clip;
            }

            #intro_section h2 {
                font-size: clamp(14px, 4.5vw, 19px);
                line-height: 1.16;
                white-space: normal;
                overflow: visible;
            }

            #intro_section h2 .heading-section-link {
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }

            .portal-section p,
            .portal-section li {
                font-size: clamp(13px, 3.75vw, 14px);
                line-height: 1.48;
                color: var(--text-soft);
            }

            .grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .actions {
                display: grid;
                gap: 8px;
                justify-items: stretch;
            }

            button {
                width: 100%;
            }

            .section-link {
                width: 100%;
                justify-content: flex-start;
            }

            .section-links {
                gap: 8px;
                margin-top: 20px;
            }

            .section-links.form-nav {
                justify-content: stretch;
                gap: 8px;
                margin-bottom: 20px;
                padding-bottom: 12px;
            }

            .section-links.form-nav .section-link {
                width: auto;
                flex: 1 1 0;
                min-width: 0;
                font-size: 10.5px;
                padding-left: 0;
                padding-right: 0;
            }

            .floating-label {
                max-width: calc(100% - 18px);
                top: -8px;
                font-size: 10px;
                line-height: 16px;
                background: var(--light);
                color: var(--gold-deep);
            }

            input,
            select {
                height: 38px;
                padding-left: 10px;
                padding-right: 10px;
                background: rgba(255, 255, 255, 0.92);
                color: var(--text-dark);
            }

            textarea {
                min-height: 70px;
                background: rgba(255, 255, 255, 0.92);
                color: var(--text-dark);
            }

            .checks {
                padding: 12px;
                gap: 8px;
                background: var(--paper);
                color: var(--text-dark);
            }

            .check-row {
                font-size: 13px;
                color: var(--text-dark);
            }

            .actions button,
            .actions .clear-form-button,
            .verification-panel .secondary-button {
                font-size: 11px;
                max-width: 100%;
            }

            .cookie-notice {
                bottom: 10px;
                justify-content: space-between;
                font-size: 12px;
            }

            .cookie-notice-actions {
                gap: 4px;
            }

            .success-overlay {
                top: 50%;
                justify-content: flex-start;
                text-align: left;
            }

            .whatsapp-same-number {
                gap: 9px;
                padding: 4px 0;
                font-size: 12px;
                line-height: 1.3;
                max-width: 100%;
                overflow: hidden;
            }

            .whatsapp-radio-options {
                gap: 8px;
            }

            .whatsapp-same-number .inline-radio span {
                padding-left: 24px;
            }

            .whatsapp-same-number input[type="radio"],
            .whatsapp-same-number .inline-radio span::before {
                width: 16px;
                height: 16px;
            }

            .whatsapp-same-number input:checked + span::after {
                left: 5px;
                width: 6px;
                height: 3px;
            }

        }

        @media (prefers-color-scheme: dark) {
            html,
            body {
                color-scheme: only light;
            }

            body {
                background: linear-gradient(to bottom, var(--light) 0 50vh, var(--dark) 50vh 100vh);
                color: var(--text-dark);
            }

            main,
            .section-notice,
            .checks {
                background-color: var(--light);
                color: var(--text-dark);
            }

            .portal-section p,
            .portal-section li,
            .lead,
            .note {
                color: var(--text-soft);
            }

            h1,
            h2,
            .heading-section-link,
            .check-row,
            .whatsapp-same-number,
            .section-link {
                color: var(--text-dark);
            }

            input,
            select,
            textarea {
                background-color: rgba(255, 255, 255, 0.92);
                color: var(--text-dark);
                border-color: rgba(66, 65, 61, 0.30);
                -webkit-text-fill-color: var(--text-dark);
            }

            .floating-label {
                background-color: var(--light);
                color: var(--gold-deep);
            }
        }


        /* Pre-register tapped while something is missing: the button stays tappable
           (it explains what is missing) but looks unavailable. */
        .actions #submit_button.is-blocked,
        .actions #submit_button.is-blocked:hover {
            opacity: 0.45;
            box-shadow: none;
            transform: none;
        }

        .submit-hint {
            margin: 0 0 12px;
            padding: 10px 12px;
            border: 1px solid rgba(138, 31, 31, 0.28);
            border-radius: 8px;
            background: rgba(138, 31, 31, 0.06);
            color: var(--danger);
            font-size: 14px;
            font-weight: 700;
            line-height: 1.45;
        }

        .submit-hint.hidden {
            display: none;
        }

        .check-row.is-missing span {
            color: var(--danger);
        }

        .check-row.is-missing span::before {
            border-radius: 50%;
            box-shadow: 0 0 0 2px var(--danger);
        }

        .submit-hint.is-ready {
            border-color: rgba(47, 122, 69, 0.35);
            background: rgba(47, 122, 69, 0.08);
            color: #2f6b3a;
        }

        /* Pre-register: a full-width, traditional button so everyone sees it is one;
           "Clear form data" stays a quiet link underneath. */
        .actions {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }

        .actions #submit_button {
            order: -1;
            justify-content: center;
            gap: 10px;
            width: 100%;
            min-height: 50px;
            padding: 12px 22px;
            border: 1px solid #C39A3B;
            border-radius: 8px;
            background: var(--dark);
            color: var(--text-light);
            font-size: 16px;
            font-weight: 800;
        }

        .actions #submit_button::before {
            content: none;
        }

        .actions #submit_button::after {
            content: "\2192";
            margin-left: 0;
            color: var(--gold);
            font-size: 18px;
        }

        .actions #submit_button:hover:not(:disabled):not(.is-blocked) {
            background: #2a2a2a;
            color: var(--text-light);
        }

        .actions #submit_button:focus-visible {
            outline: 3px solid var(--gold);
            outline-offset: 2px;
        }

        .actions #submit_button.is-blocked,
        .actions #submit_button.is-blocked:hover,
        .actions #submit_button:disabled {
            background: var(--dark);
            color: var(--text-light);
        }

        .actions .clear-form-button {
            align-self: center;
            justify-content: center;
        }

        /* Start choice on /pr/: individual driver or fleet owner. */
        .kind-chooser {
            position: fixed;
            inset: 0;
            z-index: 60;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            background: rgba(18, 18, 18, 0.55);
        }

        .kind-chooser-box {
            width: 100%;
            max-width: 440px;
            padding: 24px 20px;
            border: 1px solid #C39A3B;
            border-radius: 10px;
            background: var(--light);
            color: var(--text-dark);
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
        }

        .kind-chooser-box h2 {
            margin: 0 0 16px;
            font-size: 20px;
            text-align: center;
        }

        .kind-choice {
            display: block;
            margin-top: 12px;
            padding: 14px 16px;
            border: 1px solid #C39A3B;
            border-radius: 8px;
            background: var(--dark);
            color: var(--text-light);
            text-decoration: none;
        }

        .kind-choice strong {
            display: block;
            font-size: 17px;
        }

        .kind-choice span {
            display: block;
            margin-top: 4px;
            font-size: 14px;
            opacity: 0.85;
        }

        .kind-choice:hover,
        .kind-choice:focus-visible {
            background: #262626;
            outline: 2px solid var(--gold);
            outline-offset: 2px;
        }

        .kind-chooser-languages {
            display: flex;
            justify-content: center;
            gap: 14px;
            margin-bottom: 12px;
            font-size: 14px;
        }

        .kind-chooser-languages a {
            color: var(--text-soft);
            text-decoration: none;
        }

        .kind-chooser-languages a.is-active {
            color: var(--text-dark);
            font-weight: 800;
            text-decoration: underline;
        }

        /* Fleet form: the code from the email, typed in. */
        .fleet-code-entry {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
            align-items: end;
            margin: 10px 0;
        }

        .fleet-code-entry .field {
            margin: 0;
        }

        .fleet-code-entry.hidden {
            display: none;
        }

        .kind-chooser.hidden {
            display: none;
        }
