:root {
    color-scheme: light;
    --ink: #182026;
    --muted: #5f6871;
    --line: #d7dde2;
    --paper: #f7faf8;
    --soft: #eef6f2;
    --panel: #ffffff;
    --accent: #147d64;
    --accent-dark: #0f5f4d;
    --accent-soft: #dff2ea;
    --gold: #d49b38;
    --danger: #a7332b;
    --danger-bg: #fff0ed;
    --success: #14623d;
    --success-bg: #eaf8f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(20, 125, 100, 0.09), transparent 34%),
        linear-gradient(315deg, rgba(212, 155, 56, 0.11), transparent 28%),
        var(--paper);
}

a {
    color: var(--accent-dark);
}

.page {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
    gap: 44px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
    align-items: center;
}

.intro {
    position: relative;
    padding: 32px 0;
}

.eyebrow {
    margin: 0 0 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-dark);
}

h1 {
    margin: 0 0 16px;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: 0;
}

.intro p:last-child {
    max-width: 520px;
    color: var(--muted);
    font-size: 19px;
}

.benefit-list {
    display: grid;
    gap: 10px;
    max-width: 560px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.benefit-list li {
    position: relative;
    padding: 12px 14px 12px 40px;
    border: 1px solid rgba(20, 125, 100, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 26px rgba(24, 32, 38, 0.05);
}

.benefit-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.benefit-with-action span {
    min-width: 0;
}

.benefit-with-action a,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 125, 100, 0.18);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--accent-dark);
    background: #f3faf7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.benefit-with-action a:hover,
.back-link:hover {
    background: #e5f4ed;
}

.benefit-list li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(20, 125, 100, 0.12);
}

.intro-card {
    display: grid;
    gap: 1px;
    width: min(430px, 100%);
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid rgba(20, 125, 100, 0.18);
    border-radius: 8px;
    background: rgba(20, 125, 100, 0.2);
    box-shadow: 0 18px 46px rgba(24, 32, 38, 0.08);
}

.trust-card {
    width: min(560px, 100%);
}

.intro-card div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

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

.intro-card strong {
    text-align: right;
}

.how-it-works {
    width: min(560px, 100%);
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(20, 125, 100, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.how-it-works h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.how-it-works ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 24px;
}

.how-it-works li::marker {
    color: var(--accent-dark);
    font-weight: 700;
}

.form-panel {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(24, 32, 38, 0.13);
}

.detail-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.detail-hero {
    max-width: 860px;
    padding: 38px 0 26px;
}

.detail-hero h1 {
    max-width: 820px;
}

.detail-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
}

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

.detail-grid article,
.detail-panel,
.detail-cta {
    border: 1px solid rgba(20, 125, 100, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 38px rgba(24, 32, 38, 0.07);
}

.detail-grid article {
    padding: 20px;
}

.detail-grid h2,
.detail-panel h2,
.detail-cta h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-grid p,
.detail-cta p {
    margin: 0;
    color: var(--muted);
}

.detail-panel,
.detail-cta {
    margin-top: 16px;
    padding: 22px;
}

.detail-panel ul,
.detail-panel ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
}

.detail-panel li::marker {
    color: var(--accent-dark);
    font-weight: 700;
}

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

.detail-cta p {
    max-width: 680px;
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.form-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.form-heading h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.form-heading p {
    margin: 3px 0 0;
    color: var(--muted);
}

.mini-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent),
        var(--accent);
    box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.1);
}

.compact {
    width: min(420px, calc(100% - 32px));
    margin: 72px auto;
}

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

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

label span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

label em {
    border-radius: 8px;
    padding: 4px 8px;
    font-style: normal;
    font-size: 11px;
    color: var(--accent-dark);
    background: var(--accent-soft);
}

label small {
    color: var(--muted);
    font-weight: 400;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fbfdfc;
    box-shadow: inset 0 1px 0 rgba(24, 32, 38, 0.03);
}

input::placeholder,
textarea::placeholder {
    color: #8d979f;
    font-weight: 400;
    opacity: 0.62;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(20, 125, 100, 0.2);
    border-color: var(--accent);
}

.form-cta {
    margin: -2px 0 0;
    padding: 14px;
    border-radius: 8px;
    color: var(--muted);
    background: #f3faf7;
    border: 1px solid rgba(20, 125, 100, 0.13);
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(20, 125, 100, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
.button-link:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.admin-actions,
.lead-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lead-actions {
    min-width: 250px;
    justify-content: space-between;
}

.admin-actions form,
.lead-actions form {
    margin: 0;
}

.danger-button {
    background: var(--danger);
    box-shadow: 0 12px 24px rgba(167, 51, 43, 0.18);
}

.danger-button:hover {
    background: #842820;
}

.danger-button.small {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
}

.subtle-button {
    color: var(--ink);
    background: #eef4f1;
    box-shadow: none;
}

.subtle-button:hover {
    color: var(--ink);
    background: #dfeae5;
}

.notice {
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.success {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid rgba(20, 98, 61, 0.25);
}

.error {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid rgba(167, 51, 43, 0.25);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.admin-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 54px;
}

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

.admin-meta {
    margin: -8px 0 0;
    color: var(--muted);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-stats div {
    padding: 16px;
    border: 1px solid rgba(20, 125, 100, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 30px rgba(24, 32, 38, 0.06);
}

.admin-stats span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-stats strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 20px;
}

.leads-panel {
    display: grid;
    gap: 16px;
}

.lead-list {
    display: grid;
    gap: 16px;
}

.lead-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(20, 125, 100, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(24, 32, 38, 0.09);
}

.lead-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.lead-top h2 {
    margin: 2px 0 0;
    font-size: 24px;
    line-height: 1.2;
}

.lead-date {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.lead-top > div:first-child {
    grid-column: 1;
}

.lead-actions {
    display: contents;
}

.lead-actions form {
    grid-column: 3;
    justify-self: end;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    justify-self: center;
    align-self: center;
    border: 1px solid rgba(20, 125, 100, 0.18);
    border-radius: 8px;
    padding: 7px 12px;
    font-weight: 700;
    color: var(--accent-dark);
    background: #f3faf7;
    white-space: nowrap;
}

.lead-actions .service-pill,
.lead-actions .danger-button.small {
    min-width: 104px;
}

.lead-actions .service-pill {
    min-height: 34px;
    min-width: 0;
    font-size: 14px;
}

.lead-message {
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.lead-message span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.lead-message p {
    max-width: 920px;
    margin: 0;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.lead-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.lead-field {
    min-width: 0;
    padding: 16px;
    background: #fbfdfc;
}

.lead-field span {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.lead-field strong,
.lead-field a,
.lead-field p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lead-field p {
    margin: 0;
}

.lead-field.wide {
    grid-column: span 3;
}

.visitor-details {
    background: #f8fbfa;
}

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

.visitor-chip {
    padding: 12px;
    border: 1px solid rgba(20, 125, 100, 0.14);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(24, 32, 38, 0.04);
}

.visitor-chip small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.visitor-chip strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.empty {
    margin: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    padding: 20px;
}

.confirm-modal.is-open {
    display: grid;
}

.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 32, 38, 0.42);
    backdrop-filter: blur(6px);
}

.confirm-dialog {
    position: relative;
    width: min(430px, 100%);
    border: 1px solid rgba(20, 125, 100, 0.18);
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(24, 32, 38, 0.26);
}

.confirm-dialog h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.confirm-dialog p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 760px) {
    .page {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px 0 36px;
    }

    .intro {
        padding-top: 0;
    }

    h1 {
        font-size: 34px;
    }

    .intro-card div {
        display: grid;
    }

    .intro-card strong {
        text-align: left;
    }

    .form-panel {
        padding: 20px;
    }

    .benefit-with-action {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .detail-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    label span {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

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

    .admin-actions,
    .lead-actions {
        align-items: center;
        flex-direction: row;
    }

    .admin-actions .button-link,
    .admin-actions .danger-button,
    .lead-actions .danger-button.small {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

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

    .lead-actions form {
        grid-column: 2;
    }

    .service-pill {
        grid-column: 1;
        justify-self: start;
    }

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

    .lead-field.wide {
        grid-column: span 1;
    }

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

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

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