/* HPTN 2026 public theme — matches https://hptn.jkr.gov.my/ */

:root {
    --hptn-font: 'Outfit', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --hptn-page-bg: #17a34a;
    --hptn-green: #22c55e;
    --hptn-green-dark: #0f7a45;
    --hptn-teal: #0d9b7a;
    --hptn-ink: #111111;
    --hptn-card-bg: rgba(255, 255, 255, 0.94);
    --hptn-card-border: rgba(255, 255, 255, 0.35);
    --hptn-text: #111111;
    --hptn-text-muted: #3f4a44;
    --hptn-border: rgba(17, 17, 17, 0.12);
    --hptn-accent: #f5c518;
    --hptn-accent-hover: #e3b40f;
    --hptn-accent-ink: #111111;
    --hptn-input-bg: #f4f7f4;
    --hptn-input-border: #d5ddd6;
    --hptn-max-width: 430px;
    --hptn-card-max-width: 640px;
    --hptn-hero-max-width: 720px;
    --hptn-radius: 999px;
    --hptn-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    --hptn-glass-blur: 16px;
    --hptn-form-gap: 1.35rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html.hptn-page-bg {
    margin: 0;
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    background-color: var(--hptn-page-bg);
    background-image:
        linear-gradient(160deg, #2ad36a 0%, #17b35c 38%, #0ea37a 72%, #0b7d62 100%);
    background-repeat: no-repeat;
    background-attachment: scroll;
}

html.hptn-page-bg::before {
    content: "";
    position: fixed;
    inset: auto 0 52px 0;
    height: min(38vh, 340px);
    background: url('../hptn/skyline.svg') center bottom / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 768px) {
    html.hptn-page-bg {
        background-attachment: fixed;
    }
}

body.hptn-page {
    margin: 0;
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: transparent;
    font-family: var(--hptn-font);
    color: var(--hptn-text);
    -webkit-font-smoothing: antialiased;
    color-scheme: light only;
    position: relative;
    z-index: 1;
}

.hptn-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.15rem;
    background: #111111;
    color: #fff;
    z-index: 20;
    position: relative;
}

.hptn-topbar__brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-size: 0.92rem;
}

.hptn-topbar__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem 1.15rem;
}

.hptn-topbar__nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hptn-topbar__nav a:hover {
    color: var(--hptn-accent);
}

.hptn-infobar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 0.85rem 1.15rem;
    background: #111111;
    color: #fff;
    font-size: clamp(0.72rem, 2.6vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    z-index: 20;
}

.hptn-infobar__date,
.hptn-infobar__venue {
    color: #fff;
}

.hptn-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(1.25rem, 4vw, 2.5rem) 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    gap: clamp(1rem, 3vw, 1.75rem);
}

.hptn-page-stack {
    width: min(100%, var(--hptn-card-max-width));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.75rem);
}

.hptn-flash {
    width: min(100%, var(--hptn-card-max-width));
    margin-bottom: 0;
}

/* Hero — logo, masthead, invitation */
.hptn-hero {
    width: min(100%, var(--hptn-hero-max-width));
    text-align: center;
    padding: 0 0.25rem;
    color: #fff;
}

.hptn-hero__logo {
    display: block;
    width: min(30%, 150px);
    height: auto;
    margin: 0 auto 1.25rem;
}

.hptn-hero__kicker {
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hptn-hero__brand {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(2rem, 7vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.hptn-hero__masthead {
    display: block;
    width: min(100%, 280px);
    height: auto;
    margin: 0 auto;
}

.hptn-hero__headline {
    margin: 0.35rem 0 0.5rem;
    color: #fff;
    font-size: clamp(1.55rem, 6vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.hptn-hero__invite {
    margin: 0 auto;
    max-width: 28rem;
    font-size: clamp(0.82rem, 3.4vw, 0.98rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hptn-hero__page-title {
    margin: clamp(0.85rem, 3vw, 1.2rem) 0 0;
    font-size: clamp(1.15rem, 4.2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hptn-hero__page-subtitle {
    margin: 0.35rem 0 0;
    font-size: clamp(0.82rem, 3.4vw, 0.92rem);
    color: rgba(255, 255, 255, 0.88);
}

.hptn-hero__badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.28rem 0.9rem;
    border-radius: 999px;
    background: var(--hptn-accent);
    border: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hptn-accent-ink);
}

/* Glass form card */
.hptn-card {
    width: min(100%, var(--hptn-max-width));
    max-width: var(--hptn-card-max-width);
    background: var(--hptn-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.25rem;
    box-shadow: var(--hptn-shadow);
    overflow: hidden;
}

.hptn-card__intro {
    padding: 1.25rem 1.5rem 0;
    text-align: center;
}

.hptn-card__title {
    margin: 0;
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--hptn-text);
}

.hptn-card__subtitle {
    margin: 0.35rem 0 0;
    font-size: clamp(0.82rem, 3.4vw, 0.92rem);
    color: var(--hptn-text-muted);
}

.hptn-card__body {
    padding: 1.35rem 1.35rem 1.75rem;
}

.hptn-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.hptn-field {
    margin-bottom: 0;
    text-align: start;
}

.hptn-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: start;
    color: var(--hptn-text);
}

.hptn-field label .hptn-required {
    color: var(--hptn-accent);
}

.hptn-field-hint {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    color: var(--hptn-text-muted);
    line-height: 1.4;
}

.hptn-field-hint a {
    color: var(--hptn-accent);
    text-decoration: underline;
}

.hptn-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--hptn-input-border);
    border-radius: var(--hptn-radius);
    background: var(--hptn-input-bg);
    color: var(--hptn-text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: start;
    outline: none;
    color-scheme: light;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hptn-input::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.hptn-input:focus,
.hptn-input:focus-visible {
    border-color: var(--hptn-green);
    box-shadow: 0 0 0 3px rgba(26, 163, 74, 0.22);
}

.hptn-input.is-invalid {
    border-color: #dc2626;
    box-shadow: none;
}

.hptn-field-error {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #dc2626;
}

.hptn-alert {
    padding: 0.75rem 0.85rem;
    border-radius: var(--hptn-radius);
    font-size: 0.85rem;
    line-height: 1.45;
}

.hptn-alert--info {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--hptn-card-border);
    color: #1e3a5f;
}

.hptn-submit-row {
    margin-top: 1.35rem;
}

.hptn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--hptn-radius);
    background: var(--hptn-accent);
    color: var(--hptn-accent-ink);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.hptn-btn:hover,
.hptn-btn:focus-visible {
    background: var(--hptn-accent-hover);
    color: var(--hptn-accent-ink);
    transform: translateY(-1px);
}

.hptn-btn--ghost {
    background: #111111;
    border: 0;
    color: #fff;
}

.hptn-btn--ghost:hover,
.hptn-btn--ghost:focus-visible {
    background: #222;
    color: #fff;
}

.hptn-home {
    width: min(100%, 1080px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: center;
    padding: 0.5rem 0 1.5rem;
}

.hptn-home__copy {
    text-align: left;
    color: #fff;
}

.hptn-home-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.35rem;
    max-width: 22rem;
}

.hptn-home-actions .hptn-btn {
    text-decoration: none;
}

.hptn-home__aside {
    text-align: center;
    color: #fff;
}

.hptn-theme-icons {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.hptn-theme-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.hptn-theme-icon--gear {
    background: #f5c518;
    color: #111;
}

.hptn-theme-icon--leaf {
    background: #111;
    color: #22c55e;
}

.hptn-theme-icon--chip {
    background: #d61f26;
    color: #fff;
}

.hptn-home__event-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.05rem, 3.4vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hptn-home__event-title span {
    color: #f5c518;
}

.hptn-home__hornbill {
    display: block;
    width: min(72%, 260px);
    margin: 0 auto 0.65rem;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.hptn-home__hashtag {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hptn-home__retrieve {
    margin: 1rem 0 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.9);
}

.hptn-home__retrieve a {
    color: #fff;
    font-weight: 700;
}

.hptn-home .hptn-hero__headline,
.hptn-home .hptn-hero__invite {
    text-align: left;
    max-width: none;
}

.hptn-home .hptn-hero__kicker {
    text-align: left;
}

.hptn-btn--cta {
    justify-content: flex-start;
    gap: 0.7rem;
    padding-left: 0.45rem;
    width: auto;
    max-width: 100%;
}

.hptn-btn__chevron {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: #e8941a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 700;
    flex: 0 0 auto;
}

@media (min-width: 900px) {
    .hptn-home {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 2.5rem;
        min-height: 52vh;
    }

    .hptn-home__aside {
        text-align: right;
    }

    .hptn-theme-icons {
        justify-content: flex-end;
    }

    .hptn-home__hornbill {
        margin-right: 0;
        margin-left: auto;
    }
}

.hptn-qr-session-bar {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--hptn-card-border);
}

.hptn-qr-session-bar__email {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--hptn-text-muted);
    word-break: break-word;
}

.hptn-submit-row--session {
    margin-top: 0;
}

.hptn-consent-note {
    margin: 1.25rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
    color: var(--hptn-text-muted);
}

.hptn-consent-note a {
    color: var(--hptn-green-dark);
    font-weight: 600;
}

.hptn-details {
    margin-bottom: 1.25rem;
}

.hptn-details__row {
    display: flex;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--hptn-border);
    font-size: 0.88rem;
}

.hptn-details__row:last-child {
    border-bottom: none;
}

.hptn-details__label {
    flex: 0 0 38%;
    color: var(--hptn-text-muted);
    font-weight: 500;
}

.hptn-details__value {
    flex: 1;
    font-weight: 600;
    word-break: break-word;
}

.hptn-qr-section {
    text-align: center;
    margin-bottom: 1.25rem;
}

.hptn-qr-wrap {
    display: inline-block;
    padding: 0px;
    background: #ffffff;
    border: 1px solid var(--hptn-card-border);
    border-radius: 0.75rem;
    isolation: isolate;
    color-scheme: light only;
}

.hptn-qr-img {
    display: block;
    width: 280px;
    height: 280px;
    max-width: 100%;
    border-radius: 0.75rem;
    background: #ffffff !important;
    filter: none !important;
    -webkit-filter: none !important;
    forced-color-adjust: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.hptn-bot-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hptn-footer-note {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
    color: var(--hptn-text-muted);
}

/* Scanner light shell */
.hptn-scanner-page {
    width: 100%;
    max-width: 520px;
}

.hptn-scanner-shell {
    background: var(--hptn-card-bg);
    border: 1px solid var(--hptn-card-border);
    border-radius: 1rem;
    box-shadow: var(--hptn-shadow);
    backdrop-filter: blur(var(--hptn-glass-blur));
    -webkit-backdrop-filter: blur(var(--hptn-glass-blur));
    overflow: hidden;
    margin-bottom: 1rem;
}

.hptn-scanner-shell__header {
    padding: 1rem 1.25rem 1.15rem;
    text-align: center;
}

.hptn-scanner-shell__logo {
    display: block;
    width: min(34%, 120px);
    height: auto;
    margin: 0 auto 0.65rem;
}

.hptn-scanner-shell__masthead {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 0 auto 0.75rem;
}

.hptn-scanner-shell__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hptn-text);
}

.hptn-scanner-shell__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--hptn-text-muted);
}

.hptn-scanner-shell__subtitle--warning {
    color: #b45309;
    font-weight: 600;
}

.hptn-scanner-warning {
    color: #b45309;
    font-weight: 500;
}

body.hptn-scanner-body {
    margin: 0;
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    background: transparent;
    color: var(--hptn-text);
    font-family: var(--hptn-font);
    color-scheme: light only;
}

.hptn-scanner-canvas {
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(1rem, 4vw, 2rem) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.hptn-scanner-main {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hptn-scanner-section {
    width: 100%;
}

.hptn-scanner-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--hptn-card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--hptn-card-border);
    box-shadow: var(--hptn-shadow);
    backdrop-filter: blur(var(--hptn-glass-blur));
    -webkit-backdrop-filter: blur(var(--hptn-glass-blur));
}

.hptn-scanner-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hptn-scanner-status {
    text-align: center;
    color: var(--hptn-text-muted);
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
}

.hptn-scanner-toolbar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0 1rem;
    width: 100%;
    max-width: 520px;
}

.hptn-scanner-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--hptn-card-border);
    background: rgba(255, 255, 255, 0.55);
    color: var(--hptn-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--hptn-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hptn-scanner-btn-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.hptn-scanner-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.hptn-scanner-modal-overlay.is-open {
    display: flex;
}

.hptn-scanner-modal {
    background: #fff;
    color: var(--hptn-text);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    font-family: var(--hptn-font);
}

.hptn-scanner-modal.is-success {
    border-top: 4px solid #16a34a;
}

.hptn-scanner-modal.is-error {
    border-top: 4px solid #dc2626;
}

.hptn-scanner-details-table {
    width: 100%;
    font-size: 0.9rem;
}

.hptn-scanner-details-table th {
    text-align: left;
    padding: 0.25rem 0.5rem 0.25rem 0;
    color: var(--hptn-text-muted);
    font-weight: 600;
    width: 38%;
}

.hptn-scanner-details-table td {
    padding: 0.25rem 0;
}

.hptn-scanner-result-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: var(--hptn-radius);
    background: var(--hptn-accent);
    color: var(--hptn-accent-ink);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 768px) {
    .hptn-card {
        width: min(100%, var(--hptn-card-max-width));
    }

    .hptn-card__body {
        padding: 1.5rem 2.25rem 2rem;
    }

    .hptn-hero__logo {
        width: min(28%, 140px);
    }

    .hptn-hero__invite {
        max-width: min(100%, 42rem);
        font-size: 1.02rem;
        line-height: 1.45;
    }

    .hptn-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        justify-items: stretch;
        column-gap: var(--hptn-form-gap);
        row-gap: 1.1rem;
    }

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

    .hptn-submit-row {
        display: flex;
        justify-content: center;
    }

    .hptn-submit-row--form .hptn-btn {
        width: calc((100% - var(--hptn-form-gap)) / 2);
        max-width: calc((100% - var(--hptn-form-gap)) / 2);
        flex: 0 0 auto;
    }

    .hptn-page-stack--qr {
        width: min(100%, 450px);
    }

    .hptn-page-stack--qr .hptn-card {
        width: min(100%, 450px);
        max-width: 450px;
    }
}

/* Visitor registration — wider card, teal section chrome, search + checkboxes */
.hptn-page-stack--visitor {
    width: min(100%, 900px);
}

.hptn-page-stack--visitor .hptn-card {
    width: min(100%, 900px);
    max-width: 900px;
}

.hptn-visitor-form .hptn-input {
    border-radius: 0.55rem;
}

.hptn-visitor-form .hptn-required {
    color: #14b8a6;
}

.hptn-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f5f63;
}

.hptn-visitor-form .hptn-form-grid + .hptn-form-section-title {
    margin-top: 1.75rem;
}

.hptn-form-section-title__icon {
    width: 1.15rem;
    height: 1.15rem;
    color: #14b8a6;
    flex: 0 0 auto;
}

.hptn-form-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 95, 99, 0.18), transparent);
}

.hptn-areas-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hptn-areas-search {
    position: relative;
    flex: 1;
    min-width: 0;
}

.hptn-areas-search svg {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 1.05rem;
    height: 1.05rem;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.hptn-areas-search .hptn-input {
    padding-left: 2.45rem;
}

.hptn-areas-badge {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    white-space: nowrap;
}

.hptn-areas-badge.is-pulse {
    animation: hptnBadgePulse 0.35s ease;
}

@keyframes hptnBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.hptn-field-error--areas {
    margin: 0 0 0.55rem;
}

.hptn-areas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    max-height: 340px;
    overflow-y: auto;
    padding: 0.7rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    scrollbar-width: thin;
}

.hptn-area-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--hptn-text);
}

.hptn-area-item:hover {
    background: rgba(20, 184, 166, 0.08);
}

.hptn-area-item.is-hidden {
    display: none;
}

.hptn-area-item input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    accent-color: #14b8a6;
    cursor: pointer;
}

.hptn-area-item__text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.hptn-area-item__field {
    font-weight: 600;
}

.hptn-area-item__focus {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--hptn-text-muted);
}

.hptn-other-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
}

.hptn-other-wrap.is-open {
    max-height: 8rem;
    opacity: 1;
    margin-top: 0.85rem;
}

.hptn-consent {
    margin-top: 1.5rem;
}

.hptn-consent__row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--hptn-text-muted);
    cursor: pointer;
}

.hptn-consent__row input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
    width: 1.1em;
    height: 1.1em;
    accent-color: #14b8a6;
    cursor: pointer;
}

.hptn-btn--visitor-submit {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.28);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hptn-btn--visitor-submit:hover,
.hptn-btn--visitor-submit:focus-visible {
    background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
    color: #fff;
}

@media (min-width: 768px) {
    .hptn-areas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hptn-page-stack--visitor .hptn-submit-row--form .hptn-btn {
        width: 100%;
        max-width: none;
    }
}

