/* ============================================================
   LCH Zoho Forms — Dark Theme Stylesheet
   Design: Toyota Tri-Stripe | BG #0e0e0d | Red #CC2200 | Orange #F07800
   ============================================================ */

:root {
    --lch-bg:        #0e0e0d;
    --lch-surface:   #1a1a18;
    --lch-surface2:  #242420;
    --lch-border:    rgba(255,255,255,0.1);
    --lch-border-focus: #F07800;
    --lch-red:       #CC2200;
    --lch-orange:    #F07800;
    --lch-yellow:    #FFCC00;
    --lch-text:      #e8e6e1;
    --lch-text-muted: rgba(232,230,225,0.55);
    --lch-radius:    6px;
    --lch-transition: 0.2s ease;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.lch-form-wrap {
    background: var(--lch-surface);
    border: 1px solid var(--lch-border);
    border-radius: 12px;
    padding: 2.5rem;
    color: var(--lch-text);
    font-family: 'Satoshi', 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Accent stripe at top */
.lch-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lch-red) 0%, var(--lch-orange) 50%, var(--lch-yellow) 100%);
}

/* ── Form Header ─────────────────────────────────────────── */
.lch-form-header {
    margin-bottom: 2rem;
}
.lch-form-title {
    font-family: 'Clash Display', 'Barlow Condensed', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--lch-text);
    line-height: 1.1;
    margin: 0.25rem 0 0.75rem;
    letter-spacing: -0.02em;
}
.lch-form-subtitle {
    color: var(--lch-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ── Grid ────────────────────────────────────────────────── */
.lch-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 640px) {
    .lch-form-grid { grid-template-columns: 1fr; }
    .lch-form-group--full { grid-column: 1; }
    .lch-form-wrap { padding: 1.5rem; }
}
.lch-form-group--full { grid-column: 1 / -1; }

/* ── Form Groups & Labels ────────────────────────────────── */
.lch-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.lch-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lch-text-muted);
}
.lch-required {
    color: var(--lch-red);
    margin-left: 2px;
}

/* ── Inputs ──────────────────────────────────────────────── */
.lch-input {
    background: var(--lch-surface2);
    border: 1px solid var(--lch-border);
    border-radius: var(--lch-radius);
    color: var(--lch-text);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--lch-transition), box-shadow var(--lch-transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.lch-input::placeholder { color: var(--lch-text-muted); }
.lch-input:focus {
    border-color: var(--lch-border-focus);
    box-shadow: 0 0 0 3px rgba(240,120,0,0.15);
}
.lch-input.lch-invalid {
    border-color: var(--lch-red);
    box-shadow: 0 0 0 3px rgba(204,34,0,0.15);
}
.lch-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* Select arrow */
.lch-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8e6e1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.lch-select option { background: #1a1a18; color: #e8e6e1; }

/* ── Field Errors ────────────────────────────────────────── */
.lch-field-error {
    font-size: 0.78rem;
    color: var(--lch-red);
    min-height: 1rem;
    display: block;
}

/* ── Form-level Message ──────────────────────────────────── */
.lch-form-message {
    border-radius: var(--lch-radius);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}
.lch-form-message.lch-msg-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 0.85rem 1.1rem;
    max-height: 120px;
    margin-top: 1rem;
}
.lch-form-message.lch-msg-error {
    background: rgba(204, 34, 0, 0.12);
    border: 1px solid rgba(204, 34, 0, 0.3);
    color: #fca5a5;
    padding: 0.85rem 1.1rem;
    max-height: 120px;
    margin-top: 1rem;
}

/* ── Submit Button ───────────────────────────────────────── */
.lch-form-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}
.lch-submit-btn {
    position: relative;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.lch-submit-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
.lch-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lch-spin 0.7s linear infinite;
}
.lch-submit-btn.lch-loading .lch-btn-spinner { display: inline-block; }
@keyframes lch-spin { to { transform: rotate(360deg); } }

.lch-form-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--lch-text-muted);
}

/* ── Honeypot ────────────────────────────────────────────── */
.lch-form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    aria-hidden: true;
}

/* ── Success State (form replaced) ──────────────────────── */
.lch-form-success-state {
    text-align: center;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: lch-fade-in 0.4s ease;
}
@keyframes lch-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lch-success-icon {
    width: 60px; height: 60px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #4ade80;
}
.lch-success-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.lch-success-body { color: var(--lch-text-muted); font-size: 0.95rem; max-width: 400px; }

/* ── Estimate Form Compact Variant ──────────────────────── */
.lch-estimate-form-wrap {
    padding: 1.75rem;
}
.lch-estimate-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.lch-estimate-icon {
    width: 52px; height: 52px;
    background: rgba(240,120,0,0.12);
    border: 1px solid rgba(240,120,0,0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--lch-orange);
    flex-shrink: 0;
}
.lch-estimate-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: var(--lch-text);
}
.lch-estimate-subtitle {
    font-size: 0.8rem;
    color: var(--lch-text-muted);
    margin: 0;
}
.lch-estimate-form-wrap .lch-form-group { margin-bottom: 1rem; }
.lch-estimate-privacy {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--lch-text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ── Section-level wrapper used on Contact Us page ────────── */
.lch-contact-section {
    background: var(--lch-bg);
    padding: 5rem 0;
}
.lch-contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 900px) {
    .lch-contact-inner { grid-template-columns: 1fr; }
}
.lch-contact-info {
    position: sticky;
    top: 100px;
}
.lch-contact-info-title {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--lch-text);
    margin: 0 0 1rem;
}
.lch-contact-info-body {
    color: var(--lch-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.lch-contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    color: var(--lch-text);
}
.lch-contact-detail-icon {
    width: 40px; height: 40px;
    background: var(--lch-surface);
    border: 1px solid var(--lch-border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--lch-orange);
    flex-shrink: 0;
}
.lch-contact-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lch-text-muted);
}
.lch-contact-detail-value {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.15rem;
}
.lch-contact-detail-value a { color: var(--lch-text); text-decoration: none; }
.lch-contact-detail-value a:hover { color: var(--lch-orange); }

.lch-contact-hours {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--lch-surface);
    border: 1px solid var(--lch-border);
    border-radius: var(--lch-radius);
}
.lch-contact-hours-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lch-text-muted);
    margin: 0 0 0.75rem;
}
.lch-hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lch-hours-row:last-child { border-bottom: none; }
.lch-hours-status { color: #4ade80; font-size: 0.78rem; font-weight: 600; }
