/* ============================================
   LGE Operator Survey — Frontend Styles
   Refined-minimal aesthetic. Neutral, drops on any host site.
   ============================================ */

.lge-survey-wrapper {
    --lge-bg: #fafaf7;
    --lge-surface: #ffffff;
    --lge-ink: #1a1a1a;
    --lge-ink-soft: #4a4a4a;
    --lge-ink-muted: #8a8a85;
    --lge-line: #e8e6df;
    --lge-line-soft: #f0eee7;
    --lge-accent: #b8935a;
    --lge-accent-deep: #8a6b3d;
    --lge-error: #a83232;
    --lge-success: #4a7c4a;

    --lge-font-display: 'Fraunces', 'Georgia', serif;
    --lge-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    --lge-radius: 4px;
    --lge-radius-lg: 8px;
    --lge-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 8px 24px rgba(26, 26, 26, 0.06);
    --lge-shadow-lift: 0 2px 4px rgba(26, 26, 26, 0.06), 0 16px 40px rgba(26, 26, 26, 0.10);

    font-family: var(--lge-font-body);
    color: var(--lge-ink);
    background: var(--lge-bg);
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.55;
    box-sizing: border-box;
}

.lge-survey-wrapper *,
.lge-survey-wrapper *::before,
.lge-survey-wrapper *::after {
    box-sizing: border-box;
}

/* ============================================
   STATE MACHINE — show one screen at a time
   ============================================ */
.lge-screen {
    display: none;
    padding: 60px 32px;
    animation: lgeFadeIn 0.5s ease-out;
}
.lge-state-intro .lge-screen-intro,
.lge-state-active .lge-screen-active,
.lge-state-thanks .lge-screen-thanks {
    display: block;
}

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

@keyframes lgeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.lge-eyebrow {
    display: inline-block;
    font-family: var(--lge-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lge-accent-deep);
    margin-bottom: 16px;
}

.lge-headline {
    font-family: var(--lge-font-display);
    font-weight: 500;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--lge-ink);
    margin: 0 0 24px;
    font-variation-settings: 'opsz' 144;
}

/* ============================================
   INTRO SCREEN
   ============================================ */
.lge-intro-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.lge-intro-body {
    font-size: 17px;
    color: var(--lge-ink-soft);
    margin: 0 0 32px;
    line-height: 1.65;
}
.lge-intro-impact {
    background: var(--lge-surface);
    border-left: 3px solid var(--lge-accent);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 var(--lge-radius) var(--lge-radius) 0;
}
.lge-intro-impact-label {
    font-family: var(--lge-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lge-ink-muted);
    margin: 0 0 12px;
}
.lge-intro-impact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lge-intro-impact li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 15px;
    color: var(--lge-ink);
}
.lge-intro-impact li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 1px;
    background: var(--lge-accent);
}
.lge-intro-note {
    font-size: 13px;
    color: var(--lge-ink-muted);
    font-style: italic;
    margin: 0 0 32px;
}
.lge-time-estimate {
    font-size: 12px;
    color: var(--lge-ink-muted);
    margin: 14px 0 0;
    letter-spacing: 0.04em;
}

/* ============================================
   BUTTONS
   ============================================ */
.lge-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--lge-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: var(--lge-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}
.lge-btn-primary {
    background: var(--lge-ink);
    color: var(--lge-surface);
}
.lge-btn-primary:hover {
    background: var(--lge-accent-deep);
    transform: translateY(-1px);
    box-shadow: var(--lge-shadow);
}
.lge-btn-ghost {
    background: transparent;
    color: var(--lge-ink-soft);
    border-color: var(--lge-line);
}
.lge-btn-ghost:hover {
    border-color: var(--lge-ink);
    color: var(--lge-ink);
}
.lge-btn-outline {
    background: transparent;
    color: var(--lge-ink);
    border: 1px solid var(--lge-ink);
    margin-top: 24px;
}
.lge-btn-outline:hover {
    background: var(--lge-ink);
    color: var(--lge-surface);
}
.lge-btn-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}
.lge-btn:hover .lge-btn-arrow {
    transform: translateX(4px);
}
.lge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   PROGRESS RAIL
   ============================================ */
.lge-progress-rail {
    height: 2px;
    background: var(--lge-line);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 12px;
}
.lge-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--lge-accent);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.lge-progress-meta {
    font-family: var(--lge-font-display);
    font-size: 14px;
    color: var(--lge-ink-muted);
    margin-bottom: 48px;
    text-align: right;
}
.lge-progress-meta #lge-progress-current {
    color: var(--lge-ink);
    font-weight: 600;
}
.lge-progress-divider { margin: 0 4px; }

/* ============================================
   QUESTIONS
   ============================================ */
.lge-question {
    display: none;
    animation: lgeSlideIn 0.4s ease-out;
}
.lge-question.lge-active {
    display: block;
}
.lge-question-number {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.lge-q-num {
    font-family: var(--lge-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--lge-accent);
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}
.lge-q-line {
    flex: 1;
    height: 1px;
    background: var(--lge-line);
}
.lge-question-title {
    font-family: var(--lge-font-display);
    font-weight: 500;
    font-size: clamp(24px, 3.5vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--lge-ink);
    margin: 0 0 12px;
    font-variation-settings: 'opsz' 144;
}
.lge-question-subtitle {
    font-size: 15px;
    color: var(--lge-ink-muted);
    font-style: italic;
    margin: 0 0 32px;
}

/* ============================================
   OPTIONS — radios & checkboxes (custom)
   ============================================ */
.lge-options {
    margin: 0 0 24px;
}
.lge-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--lge-surface);
    border: 1px solid var(--lge-line);
    border-radius: var(--lge-radius);
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.18s ease;
    position: relative;
}
.lge-option:hover {
    border-color: var(--lge-ink-muted);
    transform: translateX(2px);
}
.lge-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.lge-option-marker {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--lge-line);
    border-radius: 50%;
    margin-top: 2px;
    position: relative;
    transition: all 0.18s ease;
    background: var(--lge-surface);
}
.lge-option-marker-square {
    border-radius: 3px;
}
.lge-option input:checked + .lge-option-marker {
    border-color: var(--lge-accent);
    background: var(--lge-accent);
}
.lge-option input:checked + .lge-option-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--lge-surface);
    border-radius: 50%;
}
.lge-option input:checked + .lge-option-marker-square::after {
    inset: 0;
    background: transparent;
    border-radius: 0;
    border-right: 2px solid var(--lge-surface);
    border-bottom: 2px solid var(--lge-surface);
    width: 5px;
    height: 9px;
    margin: 2px auto auto 5px;
    transform: rotate(45deg);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
}
.lge-option:has(input:checked) {
    border-color: var(--lge-accent);
    background: #fefdf9;
}
.lge-option-text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--lge-ink);
}
.lge-multi-hint {
    font-size: 12px;
    color: var(--lge-ink-muted);
    margin: 12px 0 0;
    text-align: right;
    letter-spacing: 0.04em;
}
.lge-multi-count {
    color: var(--lge-accent-deep);
    font-weight: 600;
}

/* Disable visual when at max */
.lge-options-multi.lge-at-max .lge-option:not(:has(input:checked)) {
    opacity: 0.45;
    cursor: not-allowed;
}
.lge-options-multi.lge-at-max .lge-option:not(:has(input:checked)):hover {
    transform: none;
    border-color: var(--lge-line);
}

/* ============================================
   TEXTAREA & CONTACT FIELDS
   ============================================ */
.lge-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--lge-line);
    border-radius: var(--lge-radius);
    background: var(--lge-surface);
    font-family: var(--lge-font-body);
    font-size: 15px;
    color: var(--lge-ink);
    resize: vertical;
    transition: border-color 0.18s ease;
    min-height: 120px;
}
.lge-textarea:focus {
    outline: none;
    border-color: var(--lge-accent);
    box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.12);
}

.lge-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.lge-contact-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lge-ink-muted);
    margin-bottom: 6px;
}
.lge-contact-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--lge-line);
    border-radius: var(--lge-radius);
    background: var(--lge-surface);
    font-family: var(--lge-font-body);
    font-size: 14px;
    color: var(--lge-ink);
    transition: border-color 0.18s ease;
}
.lge-contact-field input:focus {
    outline: none;
    border-color: var(--lge-accent);
    box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.12);
}

/* Honeypot - visually hidden but not display:none (bots check) */
.lge-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================
   ERRORS & NAV
   ============================================ */
.lge-error-msg {
    color: var(--lge-error);
    font-size: 13px;
    margin: 0 0 16px;
    min-height: 18px;
    font-weight: 500;
}
.lge-error-msg:empty { margin: 0; }

.lge-question-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--lge-line-soft);
}
.lge-question-nav .lge-prev-btn {
    margin-right: auto;
}
.lge-question-nav .lge-next-btn,
.lge-question-nav .lge-submit-btn {
    margin-left: auto;
}

/* ============================================
   THANK YOU + LINEUP
   ============================================ */
.lge-thanks-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
.lge-thanks-headline {
    font-style: italic;
    font-weight: 400;
}
.lge-thanks-body {
    font-size: 17px;
    color: var(--lge-ink-soft);
    margin: 0 0 24px;
}
.lge-thanks-segue {
    font-family: var(--lge-font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--lge-ink);
    margin: 0;
}
.lge-thanks-divider {
    width: 60px;
    height: 1px;
    background: var(--lge-accent);
    margin: 32px auto 0;
}

.lge-lineup {
    margin-top: 40px;
}
.lge-lineup-intro {
    text-align: center;
    margin-bottom: 56px;
}
.lge-lineup-title {
    font-family: var(--lge-font-display);
    font-weight: 500;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    color: var(--lge-ink);
    font-variation-settings: 'opsz' 144;
}
.lge-lineup-sub {
    font-size: 15px;
    color: var(--lge-ink-muted);
    max-width: 540px;
    margin: 0 auto;
}

.lge-vehicle {
    margin-bottom: 80px;
    background: var(--lge-surface);
    border-radius: var(--lge-radius-lg);
    overflow: hidden;
    box-shadow: var(--lge-shadow);
}
.lge-vehicle-hero {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--lge-ink);
}
.lge-vehicle-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.lge-vehicle:hover .lge-vehicle-hero img {
    transform: scale(1.03);
}
.lge-vehicle-hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: var(--lge-surface);
    padding: 48px 32px 32px;
}
.lge-vehicle-name {
    font-family: var(--lge-font-display);
    font-weight: 500;
    font-size: clamp(28px, 4vw, 36px);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    color: var(--lge-surface);
    font-variation-settings: 'opsz' 144;
}
.lge-vehicle-tagline {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-style: italic;
}

.lge-vehicle-body {
    padding: 40px 32px;
}
.lge-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--lge-line-soft);
}
.lge-spec-block h5 {
    font-family: var(--lge-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lge-ink-muted);
    margin: 0 0 12px;
}
.lge-spec-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lge-spec-block li {
    font-size: 14px;
    color: var(--lge-ink);
    padding: 4px 0;
    border-bottom: 1px dashed var(--lge-line-soft);
}
.lge-spec-block li:last-child { border-bottom: none; }

.lge-layouts-heading {
    font-family: var(--lge-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lge-ink-muted);
    margin: 0 0 20px;
}
.lge-layouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.lge-layout-card {
    background: var(--lge-bg);
    border-radius: var(--lge-radius);
    overflow: hidden;
    border: 1px solid var(--lge-line-soft);
    transition: all 0.25s ease;
}
.lge-layout-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lge-shadow);
    border-color: var(--lge-line);
}
.lge-layout-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--lge-ink);
}
.lge-layout-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lge-layout-content {
    padding: 18px 20px;
}
.lge-layout-content h6 {
    font-family: var(--lge-font-display);
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 4px;
    color: var(--lge-ink);
    letter-spacing: -0.005em;
}
.lge-layout-subtitle {
    font-size: 12px;
    color: var(--lge-accent-deep);
    font-style: italic;
    margin: 0 0 10px;
    font-weight: 500;
}
.lge-layout-desc {
    font-size: 13px;
    color: var(--lge-ink-soft);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   FINAL CONTACT BLOCK
   ============================================ */
.lge-contact-block {
    margin-top: 80px;
    padding: 56px 32px;
    background: var(--lge-ink);
    color: var(--lge-surface);
    border-radius: var(--lge-radius-lg);
    text-align: center;
}
.lge-contact-block .lge-eyebrow {
    color: var(--lge-accent);
}
.lge-contact-title {
    font-family: var(--lge-font-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 40px;
    color: var(--lge-surface);
    font-variation-settings: 'opsz' 144;
}
.lge-contact-grid-final {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}
.lge-contact-card {
    text-align: left;
    padding: 20px 24px;
    border-left: 2px solid var(--lge-accent);
}
.lge-contact-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lge-accent);
    margin-bottom: 12px;
}
.lge-contact-name-text {
    font-family: var(--lge-font-display);
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--lge-surface);
    font-weight: 500;
}
.lge-contact-card a {
    display: block;
    color: var(--lge-surface);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    width: fit-content;
}
.lge-contact-card a:hover {
    border-bottom-color: var(--lge-accent);
}
.lge-contact-card small {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    margin-left: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .lge-screen { padding: 32px 20px; }
    .lge-contact-grid { grid-template-columns: 1fr; }
    .lge-spec-grid { grid-template-columns: 1fr; gap: 20px; }
    .lge-layouts-grid { grid-template-columns: 1fr; }
    .lge-vehicle-body { padding: 28px 20px; }
    .lge-vehicle-hero-overlay { padding: 32px 20px 20px; }
    .lge-question-nav { flex-direction: column-reverse; gap: 12px; }
    .lge-question-nav .lge-btn { width: 100%; justify-content: center; }
    .lge-contact-block { padding: 40px 20px; }
}
