/*
 * Lead form visual system
 * Shared by the demo booking form. Other lead-facing forms can link this file
 * and reuse the tokens and classes below without copying the booking workflow.
 *
 * Tokens:  --lf-*
 * Surfaces: .lf-page .lf-card .lf-panel
 * Type:     .lf-heading .lf-copy .lf-important .lf-signoff
 * Controls: .lf-field .lf-input .lf-select .lf-btn .lf-btn-primary .lf-btn-back
 *           .lf-slot .lf-check .lf-banner .lf-menu
 * Calendar: .lf-calendar .lf-day
 */

:root {
    --lf-bg: #f6fafd;
    --lf-navy: #0e2c4e;
    --lf-navy-2: #0e2d51;
    --lf-ink: #00324b;
    --lf-blue: #0ba1ec;
    --lf-banner: #eff6ff;
    --lf-danger: #eb392f;
    --lf-muted: #7e7e7e;
    --lf-outside: #8e9a9e;
    --lf-line: #d7d7d7;
    --lf-input: #e2e8f0;
    --lf-back: #474747;
    --lf-white: #ffffff;
    --lf-black: #000000;
    --lf-panel: rgba(217, 217, 217, 0.36);
    --lf-shadow: 0px 4px 32.8px rgba(0, 0, 0, 0.12);
    --lf-radius-card: 13px;
    --lf-radius-input: 8px;
    --lf-radius-panel: 23px;
    --lf-radius-pill: 33px;
    --lf-font: "Lexend Deca", sans-serif;
    --lf-display: "Protest Strike", sans-serif;
    --lf-calendar: Roboto, sans-serif;
}

.lf-page {
    box-sizing: border-box;
    background: var(--lf-bg);
    color: var(--lf-navy);
    font-family: var(--lf-font);
    margin: 0;
    padding: 24px 16px 40px;
}

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

.lf-page button,
.lf-page input,
.lf-page select,
.lf-page textarea {
    font-family: inherit;
}

[x-cloak] {
    display: none !important;
}

.lf-card {
    position: relative;
    width: 100%;
    max-width: 1051px;
    margin: 0 auto;
    background: var(--lf-white);
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-radius-card);
    box-shadow: var(--lf-shadow);
}

.lf-scheduler {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 18px 22px 28px;
}

.lf-heading {
    margin: 0;
    color: var(--lf-navy);
    font-family: var(--lf-font);
    font-size: 26px;
    font-weight: 500;
    line-height: normal;
}

.lf-heading.is-bold {
    font-weight: 700;
    text-align: center;
}

.lf-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 100%;
    padding: 18px 28px 32px;
    background: var(--lf-panel);
    border-radius: var(--lf-radius-panel);
}

.lf-duration {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 35px;
    padding: 0 16px 0 14px;
    background: var(--lf-blue);
    border-radius: 30px;
    color: var(--lf-white);
    font-size: 17.5px;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
}

.lf-duration img {
    display: block;
    flex: none;
}

.lf-panel-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--lf-ink);
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

.lf-copy {
    margin: 0;
}

.lf-zoom-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lf-zoom {
    display: block;
    width: 90px;
    height: 51px;
    object-fit: contain;
}

.lf-important {
    display: inline;
    padding: 0 4px;
    background: var(--lf-danger);
    color: var(--lf-white);
}

.lf-signoff span {
    font-weight: 700;
}

.lf-date-col,
.lf-time-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.lf-date-col {
    gap: 16px;
}

.lf-time-col {
    gap: 18px;
}

.lf-timezone {
    position: relative;
    width: min(100%, 345px);
}

.lf-timezone-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--lf-navy-2);
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
}

.lf-timezone-city {
    color: var(--lf-blue);
}

.lf-chevron {
    display: block;
    flex: none;
    transform: rotate(-90deg) scaleX(-1);
}

.lf-arrow-back {
    display: block;
    flex: none;
    transform: rotate(180deg);
}

.lf-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    width: min(320px, 80vw);
    max-height: 240px;
    overflow: auto;
    padding: 8px;
    background: var(--lf-white);
    border: 1px solid var(--lf-input);
    border-radius: var(--lf-radius-input);
    box-shadow: 0 8px 24px rgba(14, 44, 78, 0.12);
}

.lf-menu-search {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid var(--lf-input);
    border-radius: var(--lf-radius-input);
    color: var(--lf-navy);
    font-size: 14px;
    outline: none;
}

.lf-menu-search:focus {
    border-color: var(--lf-blue);
}

.lf-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lf-menu li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--lf-navy);
    font-size: 13px;
    cursor: pointer;
}

.lf-menu li:hover,
.lf-menu li.is-selected {
    background: var(--lf-banner);
    color: var(--lf-blue);
}

.lf-menu-empty {
    justify-content: center;
    color: var(--lf-outside);
    cursor: default;
}

.lf-calendar {
    width: min(100%, 345px);
    padding: 22px 18px 20px;
    background: var(--lf-navy);
    border-radius: 10px;
    color: var(--lf-white);
    font-family: var(--lf-calendar);
}

.lf-calendar-head {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    margin-bottom: 14px;
}

.lf-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.lf-calendar-month {
    margin: 0;
    color: var(--lf-white);
    font-family: var(--lf-calendar);
    font-size: 26px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
}

.lf-calendar-week,
.lf-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.lf-calendar-week {
    margin-bottom: 8px;
    color: var(--lf-blue);
    font-family: var(--lf-calendar);
    font-size: 15px;
    font-weight: 400;
    text-align: center;
}

.lf-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 2px auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--lf-white);
    font-family: var(--lf-calendar);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.lf-day.is-outside {
    color: var(--lf-outside);
}

.lf-day.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lf-day.is-available:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* One selected day. The mock's light blue week-range bar is intentionally omitted. */
.lf-day.is-selected {
    background: var(--lf-white);
    color: var(--lf-navy);
    font-weight: 400;
    opacity: 1;
}

.lf-slots {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.lf-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 173px;
    height: 38px;
    padding: 6px 16px;
    border: 2px solid var(--lf-muted);
    border-radius: var(--lf-radius-pill);
    background: transparent;
    color: var(--lf-muted);
    font-family: var(--lf-font);
    font-size: 19px;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
}

.lf-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lf-slot.is-selected {
    border-color: var(--lf-blue);
    background: var(--lf-blue);
    color: var(--lf-white);
}

.lf-scroll {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.lf-scroll::-webkit-scrollbar {
    width: 6px;
}

.lf-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.lf-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.lf-note,
.lf-error {
    margin: 0;
    font-size: 12px;
    line-height: normal;
}

.lf-note {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    background: #fffbeb;
    color: #92400e;
}

.lf-error {
    color: var(--lf-danger);
}

.lf-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 173px;
    max-width: 100%;
    min-height: 120px;
    color: var(--lf-danger);
    text-align: center;
}

.lf-spinner {
    width: 32px;
    height: 32px;
    color: var(--lf-blue);
}

.lf-confirm {
    padding: 36px 28px 32px;
}

.lf-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: min(100%, 631px);
    margin: 22px auto 0;
}

.lf-banner {
    display: flex;
    align-items: center;
    min-height: 53px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--lf-input);
    border-radius: var(--lf-radius-input);
    background: var(--lf-banner);
    color: var(--lf-black);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

.lf-banner strong {
    color: var(--lf-blue);
    font-size: 16px;
    font-weight: 700;
}

.lf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.lf-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    background: var(--lf-white);
    border: 1px solid var(--lf-input);
    border-radius: var(--lf-radius-input);
}

.lf-field:focus-within {
    border-color: var(--lf-blue);
}

.lf-field:has(.is-invalid) {
    border-color: var(--lf-danger);
}

.lf-field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--lf-navy);
    font-size: 14px;
    line-height: normal;
    outline: none;
}

.lf-field input::placeholder {
    color: transparent;
}

.lf-ghost {
    position: absolute;
    left: 12px;
    top: 50%;
    color: var(--lf-navy);
    font-size: 14px;
    line-height: normal;
    pointer-events: none;
    transform: translateY(-50%);
}

.lf-field input:not(:placeholder-shown) ~ .lf-ghost {
    display: none;
}

.lf-req {
    color: var(--lf-danger);
}

.lf-phone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 39px;
}

.lf-phone-label {
    color: var(--lf-navy);
    font-size: 14px;
    line-height: normal;
    white-space: nowrap;
}

.lf-phone-controls {
    display: flex;
    flex: 1;
    gap: 10px;
    min-width: 0;
}

.lf-select {
    position: relative;
    flex: none;
    width: 135px;
}

.lf-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 39px;
    padding: 10px 12px;
    border: 1px solid var(--lf-input);
    border-radius: var(--lf-radius-input);
    background: var(--lf-white);
    color: var(--lf-navy);
    font-size: 14px;
    line-height: normal;
    cursor: pointer;
}

.lf-select-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lf-phone-controls .lf-field {
    flex: 1;
    height: 39px;
    min-height: 39px;
}

.lf-alert {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #fcd34d;
    border-radius: var(--lf-radius-input);
    background: #fffbeb;
    color: #78350f;
    font-size: 13px;
}

.lf-alert a {
    color: var(--lf-blue);
    font-weight: 700;
}

.lf-consent {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
}

.lf-consent input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    border: 1px solid var(--lf-input);
    border-radius: 3px;
    background-color: var(--lf-white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    cursor: pointer;
}

.lf-consent input:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.2 6.4 11.4 12.8 4.7' fill='none' stroke='%230ba1ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lf-consent input:focus-visible {
    outline: 2px solid var(--lf-blue);
    outline-offset: 2px;
}

.lf-consent label {
    color: var(--lf-black);
    font-size: 12.27px;
    font-weight: 400;
    line-height: normal;
}

.lf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.lf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 12px 16px;
    border: 0;
    border-radius: var(--lf-radius-input);
    color: var(--lf-white);
    font-family: var(--lf-font);
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lf-btn img {
    display: block;
    flex: none;
}

.lf-btn-primary {
    min-width: 216px;
    background: var(--lf-blue);
}

.lf-btn-primary:hover:not(:disabled) {
    background: #008cd2;
}

.lf-btn-back {
    min-width: 119px;
    background: var(--lf-back);
}

.lf-btn-back:hover:not(:disabled) {
    background: #333333;
}

.lf-blocked,
.lf-thanks {
    width: min(100%, 1051px);
    margin: 0 auto;
}

.lf-blocked {
    padding: 36px 28px;
    text-align: center;
}

.lf-blocked .lf-alert {
    max-width: 520px;
    margin: 20px auto 0;
    text-align: left;
}

.lf-thanks {
    position: relative;
    min-height: 467px;
    overflow: hidden;
}

.lf-thanks-bg {
    position: absolute;
    left: -127px;
    top: -56px;
    width: 1223px;
    height: 584px;
    max-width: none;
    pointer-events: none;
}

.lf-thanks-ninja {
    position: absolute;
    left: 542px;
    top: 136px;
    width: 414px;
    height: 342px;
    max-width: none;
    pointer-events: none;
}

.lf-thanks-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(382px, 100%);
    margin-left: 82px;
    padding-top: 90px;
    text-align: center;
}

.lf-thanks-check {
    display: block;
}

.lf-thanks-title {
    margin: 8px 0 0;
    color: var(--lf-blue);
    font-family: var(--lf-display);
    font-size: 62px;
    font-weight: 400;
    line-height: 66px;
}

.lf-thanks-text {
    max-width: 374px;
    margin: 0;
    color: var(--lf-black);
    font-size: 18.75px;
    font-weight: 400;
    line-height: normal;
}

@media (min-width: 960px) {
    .lf-scheduler {
        grid-template-columns: minmax(280px, 385px) minmax(280px, 1fr) 190px;
        column-gap: 24px;
        align-items: stretch;
        padding: 18px 31px 24px;
    }

    .lf-panel {
        min-height: 422px;
    }
}

@media (max-width: 720px) {
    .lf-field-row,
    .lf-phone,
    .lf-phone-controls {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .lf-calendar,
    .lf-timezone {
        width: 100%;
        max-width: none;
    }

    .lf-select,
    .lf-phone-controls .lf-field {
        width: 100%;
    }

    .lf-actions {
        flex-wrap: nowrap;
    }

    .lf-btn-back {
        flex: none;
        min-width: 119px;
    }

    .lf-btn-primary {
        min-width: 0;
        flex: 1;
    }

    .lf-thanks {
        min-height: 0;
        padding: 28px 16px 8px;
    }

    .lf-thanks-copy,
    .lf-thanks-ninja,
    .lf-thanks-bg {
        position: relative;
        left: auto;
        top: auto;
        margin-left: 0;
        padding-top: 0;
    }

    .lf-thanks-copy {
        width: 100%;
    }

    .lf-thanks-bg {
        position: absolute;
        width: 190%;
        height: auto;
        left: -20%;
        top: auto;
        bottom: -80px;
    }

    .lf-thanks-ninja {
        display: block;
        width: 261px;
        height: 216px;
        margin: 12px auto 0;
    }

    .lf-thanks-title {
        font-size: 48px;
        line-height: 52px;
    }
}
