/* LegalHai public styles
 * Brand: Yellow (#FFD60A) + Black (#0A0A0A) + White (#FFFFFF)
 * Strict, minimal, fast — utility-grade.
 */

:root {
    --lh-yellow: #FFD60A;
    --lh-yellow-dark: #E6C009;
    --lh-yellow-soft: #FFF5BF;
    --lh-black: #0A0A0A;
    --lh-graphite: #1F2937;
    --lh-mute: #6B7280;
    --lh-line: #E5E7EB;
    --lh-bg: #FFFFFF;
    --lh-bg-alt: #FAFAFA;
    --lh-radius: 14px;
    --lh-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 32px -12px rgba(0,0,0,.08);
    --lh-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Forms */
.lh-form {
    background: var(--lh-bg);
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 24px;
    box-shadow: var(--lh-shadow);
    font-family: var(--lh-font);
    color: var(--lh-black);
}
.lh-form__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}
.lh-form__country {
    color: var(--lh-mute);
    font-size: 14px;
    margin: 0 0 16px;
}
.lh-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 540px) {
    .lh-form__row { grid-template-columns: 1fr; }
}
.lh-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--lh-graphite);
    font-weight: 500;
}
.lh-form input,
.lh-form textarea,
.lh-form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    background: var(--lh-bg);
    border: 1px solid var(--lh-line);
    border-radius: 10px;
    font: 15px var(--lh-font);
    color: var(--lh-black);
    transition: border-color .15s, box-shadow .15s;
}
.lh-form input:focus,
.lh-form textarea:focus,
.lh-form select:focus {
    outline: 0;
    border-color: var(--lh-black);
    box-shadow: 0 0 0 3px var(--lh-yellow-soft);
}
.lh-form__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.lh-form__status { min-height: 22px; margin: 12px 0 0; font-size: 14px; }
.lh-form__status.is-success { color: #047857; }
.lh-form__status.is-error { color: #B91C1C; }

/* Buttons */
.lh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font: 600 15px/1 var(--lh-font);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s, background .12s, color .12s;
}
.lh-btn:active { transform: translateY(1px); }
.lh-btn--primary {
    background: var(--lh-yellow);
    color: var(--lh-black);
    border-color: var(--lh-yellow-dark);
}
.lh-btn--primary:hover { background: var(--lh-yellow-dark); }
.lh-btn--ghost {
    background: transparent;
    color: var(--lh-black);
    border-color: var(--lh-black);
}
.lh-btn--ghost:hover { background: var(--lh-black); color: var(--lh-yellow); }
.lh-btn--whatsapp {
    background: #25D366;
    color: #FFFFFF;
    border-color: #1FAD52;
}
.lh-btn--whatsapp:hover { filter: brightness(.95); }

/* Country picker */
.lh-picker { padding: 32px 0; max-width: 1080px; margin: 0 auto; }
.lh-picker__title { margin: 0 0 6px; font: 700 28px/1.2 var(--lh-font); color: var(--lh-black); }
.lh-picker__sub { color: var(--lh-mute); margin: 0 0 24px; }
.lh-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.lh-picker__card {
    display: block;
    padding: 24px;
    border-radius: var(--lh-radius);
    border: 1px solid var(--lh-line);
    background: var(--lh-bg);
    text-decoration: none;
    color: var(--lh-black);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.lh-picker__card:hover {
    border-color: var(--lh-black);
    transform: translateY(-2px);
    box-shadow: var(--lh-shadow);
}
.lh-picker__card.is-active {
    border-color: var(--lh-yellow);
    background: var(--lh-yellow-soft);
}
.lh-picker__flag { font-size: 36px; line-height: 1; }
.lh-picker__name { display: block; margin-top: 8px; font-weight: 700; font-size: 18px; }
.lh-picker__tag { display: block; margin-top: 4px; color: var(--lh-mute); font-size: 14px; }

/* Service / package grids */
.lh-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 16px 0;
}
.lh-card,
.lh-pkg {
    background: var(--lh-bg);
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 22px;
    text-decoration: none;
    color: var(--lh-black);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.lh-card:hover { border-color: var(--lh-black); transform: translateY(-2px); box-shadow: var(--lh-shadow); }
.lh-card__title, .lh-pkg__title { margin: 0; font: 700 18px/1.3 var(--lh-font); }
.lh-card__excerpt, .lh-pkg__excerpt { color: var(--lh-mute); font-size: 14px; margin: 0; }
.lh-card__price { color: var(--lh-black); font-weight: 700; }
.lh-card__price small { color: var(--lh-mute); font-weight: 500; }
.lh-card__cta { margin-top: auto; color: var(--lh-black); font-weight: 600; border-top: 1px solid var(--lh-line); padding-top: 10px; }
.lh-pkg__price { font: 800 28px/1 var(--lh-font); color: var(--lh-black); }
.lh-pkg__features { padding-left: 20px; margin: 4px 0 8px; color: var(--lh-graphite); font-size: 14px; }
.lh-pkg .lh-btn { margin-top: auto; }

/* Floating WhatsApp */
.lh-fab-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .55);
    z-index: 9999;
    text-decoration: none;
    transition: transform .15s;
}
.lh-fab-whatsapp:hover { transform: scale(1.05); }

/* Country switcher menu (in header) */
.lh-cc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--lh-line);
    background: var(--lh-bg);
    border-radius: 10px;
    cursor: pointer;
    font: 600 14px var(--lh-font);
    color: var(--lh-black);
}
.lh-cc-menu {
    position: absolute;
    margin-top: 6px;
    background: var(--lh-bg);
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    min-width: 220px;
    padding: 6px;
    display: none;
    z-index: 1000;
}
.lh-cc-menu.is-open { display: block; }
.lh-cc-menu a {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--lh-black);
    font: 500 14px var(--lh-font);
}
.lh-cc-menu a:hover { background: var(--lh-yellow-soft); }

.lh-empty {
    padding: 40px;
    text-align: center;
    color: var(--lh-mute);
    border: 1px dashed var(--lh-line);
    border-radius: var(--lh-radius);
}

.lh-phone { font-weight: 600; color: var(--lh-black); text-decoration: none; }
.lh-phone:hover { text-decoration: underline; }

/* ---- First-visit country modal ---- */
.lh-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 16px; font-family: var(--lh-font); }
.lh-modal.is-open { display: flex; }
.lh-modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.55); backdrop-filter: blur(2px); }
.lh-modal__panel {
    position: relative;
    background: var(--lh-bg);
    color: var(--lh-black);
    border-radius: var(--lh-radius);
    box-shadow: 0 20px 60px -10px rgba(0,0,0,.45);
    padding: 28px 24px;
    width: min(560px, calc(100% - 32px));
    animation: lh-pop .18s ease-out;
}
@keyframes lh-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lh-modal__close { position: absolute; top: 8px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--lh-graphite); border-radius: 8px; }
.lh-modal__close:hover { background: var(--lh-bg-alt); }
.lh-modal__title { margin: 0 0 4px; font: 800 22px/1.25 var(--lh-font); }
.lh-modal__sub { color: var(--lh-mute); margin: 0 0 18px; font-size: 14px; }
.lh-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lh-modal__card {
    display: flex; align-items: center; gap: 10px;
    padding: 14px;
    border: 1px solid var(--lh-line);
    border-radius: 12px;
    text-decoration: none; color: var(--lh-black);
    font-weight: 600; font-size: 15px;
    transition: border-color .15s, background .15s;
}
.lh-modal__card:hover { border-color: var(--lh-yellow); background: var(--lh-yellow-soft); }
.lh-modal__flag { font-size: 26px; line-height: 1; }
.lh-modal__skip { text-align: center; margin: 16px 0 0; }
.lh-modal__link { background: none; border: 0; color: var(--lh-mute); cursor: pointer; font: 14px var(--lh-font); text-decoration: underline; padding: 4px 8px; }
.lh-modal__link:hover { color: var(--lh-black); }
@media (max-width: 480px) { .lh-modal__grid { grid-template-columns: 1fr; } }
