:root {
    --brand-orange: #e75423;
    --panel-bg: #ded9cc;
    --ink: #151515;
    --muted: #68645d;
    --line: #e6e1d8;
    --success: #198754;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #f7f5f0;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(231, 84, 35, 0.38);
    outline-offset: 3px;
}

.public-page {
    overflow: hidden;
    background: #000;
}

.landing-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
}

.landing-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    background: #000;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.42) 100%);
    z-index: -1;
}

.landing-logo {
    position: absolute;
    top: clamp(24px, 5vh, 56px);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(104px, 15vw, 138px);
    height: clamp(104px, 15vw, 138px);
    padding: clamp(18px, 2.8vw, 26px);
    border-radius: 50%;
    background: var(--panel-bg);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.landing-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cta-outline {
    position: absolute;
    left: 50%;
    bottom: clamp(42px, 10vh, 96px);
    transform: translateX(-50%);
    min-width: min(340px, calc(100vw - 40px));
    min-height: 56px;
    padding: 15px 28px;
    border: 2px solid #fff;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.cta-outline:hover,
.cta-outline:focus-visible {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
    transform: translateX(-50%) translateY(-2px);
}

.lead-panel {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: var(--panel-bg);
    transform: translateX(100%);
    transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    pointer-events: none;
}

.lead-panel.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.panel-close {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 30;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(21, 21, 21, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--ink);
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.panel-close:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.lead-panel__inner {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(72px, 10vh, 120px) 20px;
}

.lead-form-shell {
    width: min(720px, 100%);
}

.panel-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(88px, 18vw, 120px);
    height: clamp(88px, 18vw, 120px);
    padding: clamp(15px, 3vw, 22px);
    margin-bottom: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 38px rgba(23, 20, 18, 0.08);
}

.panel-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lead-kicker,
.admin-kicker {
    margin: 0 0 10px;
    color: var(--brand-orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lead-form-shell h1 {
    margin: 0 0 32px;
    font-size: clamp(2rem, 7vw, 4.6rem);
    line-height: 0.94;
    font-weight: 800;
    color: var(--ink);
}

.floating-field {
    position: relative;
    margin-bottom: 22px;
}

.floating-field input {
    width: 100%;
    height: clamp(70px, 11vw, 92px);
    border: 8px solid #fff;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 700;
    padding: 24px 20px 8px;
    transition: border-color 190ms ease, box-shadow 190ms ease;
}

.floating-field label {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    margin: 0;
    color: rgba(21, 21, 21, 0.68);
    font-size: clamp(1rem, 2.1vw, 1.25rem);
    font-weight: 700;
    pointer-events: none;
    transition: top 170ms ease, transform 170ms ease, color 170ms ease, font-size 170ms ease;
}

.floating-field:focus-within input {
    border-color: var(--brand-orange);
    box-shadow: 0 14px 32px rgba(231, 84, 35, 0.12);
}

.floating-field:focus-within label,
.floating-field.is-filled label {
    top: 14px;
    transform: none;
    color: var(--brand-orange);
    font-size: 0.76rem;
}

.floating-field input.is-invalid {
    border-color: #dc3545;
}

.floating-field .invalid-feedback {
    margin-top: 7px;
    color: #9d1c28;
    font-weight: 700;
}

.consent-block {
    display: flex;
    gap: 12px;
    margin: 18px 0 28px;
    color: #36332d;
    line-height: 1.55;
}

.consent-block .form-check-input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background-color: transparent;
}

.consent-block .form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.consent-block a {
    color: var(--ink);
    font-weight: 800;
    text-decoration-color: var(--brand-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.submit-btn {
    width: 100%;
    min-height: 62px;
    border: 2px solid var(--brand-orange);
    border-radius: 0;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.submit-btn:hover:not(:disabled) {
    background: #c9461c;
    border-color: #c9461c;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.72;
}

.legal-page {
    background: var(--panel-bg);
    color: var(--ink);
}

.legal-page h1 {
    font-weight: 800;
    margin-bottom: 22px;
}

.admin-login-page,
.admin-dashboard-page {
    background: #f4f1eb;
}

.admin-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(28px, 5vw, 44px);
    box-shadow: 0 22px 70px rgba(23, 20, 18, 0.08);
}

.login-card h1,
.dashboard-header h1 {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0;
}

.login-card h1 {
    margin-bottom: 28px;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4e4a45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #f1ece3;
    color: var(--brand-orange);
}

.password-icon {
    width: 21px;
    height: 21px;
    display: inline-flex;
}

.password-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.password-icon--hide {
    display: none;
}

.password-toggle.is-visible .password-icon--show {
    display: none;
}

.password-toggle.is-visible .password-icon--hide {
    display: inline-flex;
}

.dashboard-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 54px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.filter-bar,
.table-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 14px 42px rgba(23, 20, 18, 0.05);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.metric-card {
    min-height: 124px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 14px 42px rgba(23, 20, 18, 0.05);
}

.metric-card span {
    color: var(--muted);
    font-weight: 700;
}

.metric-card strong {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.lead-status-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot--pending {
    background: #f2b705;
}

.status-dot--done {
    background: var(--success);
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
}

.admin-table a {
    color: var(--ink);
    text-decoration: none;
}

.empty-state {
    padding: 44px 16px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

.form-control,
.form-select,
.btn {
    border-radius: 6px;
}

@media (max-width: 991.98px) {
    .analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .landing-screen {
        min-height: 560px;
    }

    .panel-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .lead-panel__inner {
        align-items: flex-start;
        padding-top: 84px;
    }

    .lead-form-shell h1 {
        margin-bottom: 24px;
    }

    .floating-field input {
        border-width: 6px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .floating-field label {
        left: 18px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header .btn {
        width: 100%;
    }
}
