/* ============================================================
   LawnPro Quote Wizard — Merged Design
   Replaces: client_request_work.css
   ============================================================ */

:root {
    --lh-primary: #22c55e;
    --lh-primary-hover: #16a34a;
    --lh-primary-light: #f0fdf4;
    --lh-primary-glow: rgba(34, 197, 94, 0.1);
    --lh-text: #1f2937;
    --lh-text-muted: #6b7280;
    --lh-text-light: #9ca3af;
    --lh-border: #e5e7eb;
    --lh-bg: #ffffff;
    --lh-radius: 10px;
    --lh-radius-sm: 8px;
    --lh-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { font-family: var(--lh-font); }




/* ─── PAGE ─── */

.lh-wizard-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: #f9fafb;
}

.lh-card {
    max-width: 540px;
    width: 100%;
    background: var(--lh-bg);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    padding: 36px 32px 28px;
}


/* ─── HEADER ─── */

.lh-header {
    text-align: center;
    margin-bottom: 4px;
}

.lh-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--lh-text);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.lh-header p {
    font-size: 14px;
    color: var(--lh-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}


/* ─── TRUST BADGES ─── */

.lh-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 0 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--lh-text-light);
}

.lh-trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lh-trust i {
    color: var(--lh-primary);
    font-size: 13px;
}


/* ─── PROGRESS BAR ─── */

.lh-progress { padding-bottom: 24px; }
.lh-steps { display: flex; align-items: center; justify-content: center; }
.lh-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 60px; }

.lh-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px solid var(--lh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

.lh-dot span {
    font-size: 12px;
    font-weight: 700;
    color: var(--lh-text-light);
    transition: all 0.35s;
}

.lh-step.active .lh-dot {
    background: var(--lh-primary);
    border-color: var(--lh-primary);
    box-shadow: 0 0 0 4px var(--lh-primary-glow);
}

.lh-step.active .lh-dot span { color: #fff; }

.lh-step.completed .lh-dot {
    background: var(--lh-primary);
    border-color: var(--lh-primary);
}

.lh-step.completed .lh-dot span { font-size: 0; color: #fff; }
.lh-step.completed .lh-dot span::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 13px;
}

.lh-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lh-text-light);
    transition: color 0.3s;
}

.lh-step.active .lh-label { color: var(--lh-text); }
.lh-step.completed .lh-label { color: var(--lh-primary); }

.lh-connector {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: var(--lh-border);
    margin: 0 8px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background 0.4s ease;
}

.lh-connector.active { background: var(--lh-primary); }


/* ─── PANELS ─── */

.lh-panel {
    display: none;
    animation: lhSlideIn 0.35s ease;
}

.lh-panel.active { display: block; }

@keyframes lhSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lh-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--lh-text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.lh-subtitle {
    font-size: 14px;
    color: var(--lh-text-muted);
    margin: 0 0 20px;
}


/* ─── FIELDS ─── */

.lh-field { margin-bottom: 14px; }

.lh-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lh-text);
    margin-bottom: 5px;
}

.req { color: #ef4444; }
.opt { font-weight: 400; color: var(--lh-text-light); font-size: 12px; }

.lh-field input,
.lh-field select,
.lh-field textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    border: 1.5px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
    background: #fff;
    color: var(--lh-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--lh-font);
}

.lh-field input::placeholder,
.lh-field textarea::placeholder { color: #c9cdd3; }

.lh-field input:focus,
.lh-field select:focus,
.lh-field textarea:focus {
    outline: none;
    border-color: var(--lh-primary);
    box-shadow: 0 0 0 3px var(--lh-primary-glow);
}

.lh-field input.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.lh-err {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 0;
}

.lh-field textarea { resize: vertical; min-height: 76px; }

.lh-row { display: flex; gap: 12px; }
.lh-row > .lh-field { flex: 1; }
.lh-row-3 .lh-sm { max-width: 90px; flex: 0 0 90px; }


/* ─── SERVICE CHIPS ─── */

.lh-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.lh-chip { cursor: pointer; margin: 0; }
.lh-chip input { position: absolute; opacity: 0; pointer-events: none; }

.lh-chip-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1.5px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--lh-text);
    background: #fff;
    transition: all 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lh-chip-inner i {
    color: var(--lh-text-light);
    font-size: 14px;
    transition: color 0.18s;
    flex-shrink: 0;
}

.lh-chip:hover .lh-chip-inner {
    border-color: var(--lh-primary);
    background: var(--lh-primary-light);
}

.lh-chip input:checked + .lh-chip-inner {
    border-color: var(--lh-primary);
    background: var(--lh-primary-light);
    color: var(--lh-primary-hover);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--lh-primary);
}

.lh-chip input:checked + .lh-chip-inner i { color: var(--lh-primary); }


/* ─── FREQUENCY PILLS ─── */

.lh-freq-options { display: flex; flex-wrap: wrap; gap: 8px; }
.lh-freq { cursor: pointer; margin: 0; }
.lh-freq input { position: absolute; opacity: 0; pointer-events: none; }

.lh-freq span {
    display: inline-block;
    padding: 8px 16px;
    border: 1.5px solid var(--lh-border);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--lh-text);
    transition: all 0.18s ease;
}

.lh-freq:hover span { border-color: var(--lh-primary); background: var(--lh-primary-light); }

.lh-freq input:checked + span {
    border-color: var(--lh-primary);
    background: var(--lh-primary-light);
    color: var(--lh-primary-hover);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--lh-primary);
}


/* ─── TIME CHIPS ─── */

.lh-time-options { display: flex; flex-wrap: wrap; gap: 8px; }
.lh-time { cursor: pointer; margin: 0; }
.lh-time input { position: absolute; opacity: 0; pointer-events: none; }

.lh-time span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--lh-border);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--lh-text);
    transition: all 0.18s ease;
}

.lh-time span i {
    font-size: 13px;
    color: var(--lh-text-light);
    transition: color 0.18s;
}

.lh-time:hover span { border-color: var(--lh-primary); background: var(--lh-primary-light); }

.lh-time input:checked + span {
    border-color: var(--lh-primary);
    background: var(--lh-primary-light);
    color: var(--lh-primary-hover);
    box-shadow: 0 0 0 1px var(--lh-primary);
}

.lh-time input:checked + span i { color: var(--lh-primary); }


/* ─── ACTIONS ─── */

.lh-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.lh-btn {
    padding: 7px 18px;
    border-radius: var(--lh-radius-sm);
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: var(--lh-font);
}

.lh-btn-next, .lh-btn-submit {
    background: var(--lh-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.3);
}

.lh-btn-next:hover, .lh-btn-submit:hover {
    background: var(--lh-primary-hover);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

.lh-btn-next:active, .lh-btn-submit:active { transform: translateY(0); }

.lh-btn-back {
    background: transparent;
    color: var(--lh-text-muted);
    padding: 7px 10px;
}

.lh-btn-back:hover {
    color: var(--lh-text);
    background: #f9fafb;
}

.lh-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }


/* ─── ERROR ─── */

.lh-form-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--lh-radius-sm);
    color: #dc2626;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}


/* ─── SUCCESS ─── */

.lh-success-panel {
    text-align: center;
    padding: 40px 20px;
}

.lh-success-icon { margin-bottom: 16px; }
.lh-success-icon svg { animation: lhPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes lhPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}

.lh-success-panel .lh-title { font-size: 22px; margin-bottom: 8px; }
.lh-success-panel .lh-subtitle { font-size: 15px; line-height: 1.5; max-width: 360px; margin: 0 auto; }


/* ─── POWERED BY ─── */

.lh-powered {
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    font-size: 11px;
    color: #c9cdd3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lh-powered a img {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.lh-powered a:hover img { opacity: 0.8; }


/* ─── DATEPICKER OVERRIDE ─── */

.lh-field input.datetime {
    cursor: pointer;
    background: #fafafa;
}


/* ─── RESPONSIVE ─── */

@media (max-width: 560px) {
    .lh-card {
        border-radius: 0;
        box-shadow: none;
        padding: 24px 20px 20px;
    }

    .lh-wizard-page { padding: 0; }
    .lh-header h1 { font-size: 21px; }

    .lh-chips { grid-template-columns: repeat(2, 1fr); }

    .lh-row { flex-direction: column; gap: 0; }
    .lh-row-3 { flex-direction: row; flex-wrap: wrap; }
    .lh-row-3 .lh-field:first-child { flex: 1 1 100%; }
    .lh-row-3 .lh-sm { flex: 1; max-width: none; }

    .lh-connector { max-width: 40px; }
    .lh-trust { gap: 12px; flex-wrap: wrap; }
}
