/* ============================================
   Insurance Product Pages
   ============================================ */

/* Hero (compact, matches inv-hero) */
.asg-hero {
    background: linear-gradient(135deg, #9eab03 0%, #535a01 100%);
    color: #fff;
    padding: 60px 0 40px;
}

.asg-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.asg-hero__breadcrumb {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.asg-hero__breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.asg-hero__breadcrumb a:hover { text-decoration: underline; }

.asg-hero__tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.asg-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.15;
}

.asg-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    max-width: 700px;
}

/* Layout (sidebar + main, matches inv-layout) */
.asg-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar */
.asg-sidebar {
    flex: 0 0 280px;
    min-width: 0;
    position: sticky;
    top: 90px;
}

/* Title — desktop renders as a label; mobile media query turns it into an
   accordion toggle button. */
.asg-sidebar__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0 0 12px;
    padding: 0 0 8px;
    background: none;
    border: none;
    border-bottom: 2px solid #9eab03;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9eab03;
    text-align: left;
    cursor: default;
}

.asg-sidebar__title-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.asg-sidebar__title-current {
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none; /* desktop: hidden, only useful in collapsed mobile state */
}

.asg-sidebar__chevron {
    font-size: 12px;
    transition: transform 0.25s ease;
    color: #9eab03;
    flex-shrink: 0;
    display: none; /* desktop: hidden */
}

.asg-sidebar__body {
    /* desktop: always visible */
}

.asg-sidebar__group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 16px 0 6px;
    padding: 0 12px;
}

.asg-sidebar__group-label:first-of-type { margin-top: 0; }

.asg-sidebar__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.asg-sidebar__nav ul li {
    border-bottom: 1px solid #eee;
}

.asg-sidebar__nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.asg-sidebar__nav ul li a i {
    color: #9eab03;
    font-size: 13px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.asg-sidebar__nav ul li a:hover,
.asg-sidebar__nav ul li a.active {
    background: #f5f8e8;
    color: #9eab03;
    border-left-color: #9eab03;
    font-weight: 600;
}

.asg-sidebar__help {
    margin-top: 24px;
    padding: 16px;
    background: #f5f8e8;
    border-radius: 8px;
    border: 1px solid #d9e494;
}

.asg-sidebar__help p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.asg-sidebar__help a {
    display: block;
    color: #9eab03;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 4px;
}

.asg-sidebar__help a:hover { text-decoration: underline; }

.asg-sidebar__help a i { margin-right: 6px; width: 14px; }

.asg-sidebar__help-cta {
    display: inline-block !important;
    margin-top: 10px !important;
    padding: 8px 16px;
    background: #9eab03;
    color: #fff !important;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
}

.asg-sidebar__help-cta:hover {
    background: #788302;
    text-decoration: none !important;
}

.asg-sidebar__help-cta i { margin-left: 4px; margin-right: 0 !important; }

/* Main content */
.asg-main {
    flex: 1;
    min-width: 0;
}

.asg-intro {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Hero CTAs (now lives inside main) */
.asg-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

/* Buttons */
.asg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 26px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.asg-btn--primary {
    background: #9eab03;
    color: #fff !important;
    border-color: #9eab03;
}

.asg-btn--primary:hover {
    background: #788302;
    border-color: #788302;
}

.asg-btn--secondary {
    background: transparent;
    color: #9eab03 !important;
    border-color: #9eab03;
}

.asg-btn--secondary:hover {
    background: #9eab03;
    color: #fff !important;
}

/* Sections inside main.
   NB: homepage.css sets a global `section { padding: 88px 0 }` — we must zero it
   here, otherwise every asg-section gets ~176px of vertical padding. */
.asg-section {
    margin-bottom: 50px;
    padding: 0;
}

.asg-section:last-child { margin-bottom: 0; }

.asg-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9eab03;
}

/* Features grid */
.asg-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.asg-feature {
    display: flex;
    gap: 14px;
    background: #f5f8e8;
    border-radius: 10px;
    padding: 16px 18px;
    align-items: flex-start;
    transition: all 0.2s;
}

.asg-feature:hover {
    box-shadow: 0 4px 16px rgba(155, 173, 52, 0.15);
}

.asg-feature__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #9eab03;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asg-feature__icon i {
    color: #fff;
    font-size: 14px;
}

.asg-feature h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
}

.asg-feature p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Lists (risks, docs) */
.asg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    align-items: start;
}

.asg-list li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    padding-top: 2px;
    padding-bottom: 2px;
}

.asg-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #9eab03;
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 12px;
    background: #f5f8e8;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asg-list--docs li::before {
    content: '\f15b';
}

/* Why us */
.asg-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.asg-why__item {
    text-align: center;
    padding: 24px 16px;
}

.asg-why__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #f5f8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asg-why__icon i {
    color: #9eab03;
    font-size: 24px;
}

.asg-why__item h3 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.asg-why__item p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Contact form */
.asg-contact {
    background: #f5f8e8;
    border-radius: 12px;
    padding: 40px 36px;
}

.asg-contact h2 {
    border-bottom: none;
    text-align: center;
    padding-bottom: 0;
}

.asg-contact__intro {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin: 0 0 28px;
    line-height: 1.6;
}

.asg-form {
    max-width: 700px;
    margin: 0 auto;
}

.asg-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.asg-form input,
.asg-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

.asg-form input:focus,
.asg-form textarea:focus {
    border-color: #9eab03;
    outline: none;
}

.asg-form textarea {
    margin-bottom: 14px;
    resize: vertical;
}

.asg-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin-bottom: 20px;
}

.asg-form__consent input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: #9eab03;
}

.asg-form button[type="submit"] {
    background: #9eab03;
    color: #fff !important;
    border-color: #9eab03;
    font-size: 15px;
    padding: 14px 32px;
    margin: 0 auto;
    display: flex;
}

.asg-form button[type="submit"]:hover {
    background: #8a9c2a;
    border-color: #8a9c2a;
}

.asg-form__msg {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}

.asg-form__msg--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.asg-form__msg--err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* Related products */
.asg-related {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.asg-related__card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.asg-related__card:hover {
    border-color: #9eab03;
    box-shadow: 0 4px 16px rgba(155, 173, 52, 0.15);
    transform: translateY(-2px);
}

.asg-related__card > i:first-child {
    color: #9eab03;
    font-size: 28px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.asg-related__card > div {
    flex: 1;
}

.asg-related__title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.asg-related__sub {
    font-size: 13px;
    color: #777;
}

.asg-related__arrow {
    color: #9eab03;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .asg-layout {
        flex-direction: column;
        padding: 28px 20px 48px;
        gap: 20px;
    }
    .asg-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    /* Sidebar nav becomes an accordion */
    .asg-sidebar__nav {
        background: #fff;
        border: 1px solid #e4e4e0;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    }
    .asg-sidebar__title {
        margin: 0;
        padding: 14px 16px;
        border-bottom: none;
        cursor: pointer;
        background: #f5f8e8;
        transition: background 0.2s;
    }
    .asg-sidebar__title:hover { background: #f0f2d8; }
    .asg-sidebar__title-current {
        display: inline;
    }
    .asg-sidebar__title-current::before {
        content: '· ';
        color: #c4c895;
    }
    .asg-sidebar__chevron {
        display: inline-block;
    }
    .asg-sidebar.is-open .asg-sidebar__chevron {
        transform: rotate(180deg);
    }
    .asg-sidebar__body {
        display: none;
        padding: 4px 0 8px;
        border-top: 1px solid #d9e494;
    }
    .asg-sidebar.is-open .asg-sidebar__body {
        display: block;
    }
    .asg-sidebar__group-label {
        padding: 12px 16px 4px;
        margin: 0;
    }
    .asg-sidebar__nav ul li:last-child { border-bottom: none; }
    .asg-sidebar__nav ul li a {
        padding: 12px 16px;
    }

    .asg-hero h1 {
        font-size: 28px;
    }
    .asg-hero p {
        font-size: 16px;
    }
    .asg-features,
    .asg-list,
    .asg-related {
        grid-template-columns: 1fr;
    }
    .asg-why__grid {
        grid-template-columns: 1fr 1fr;
    }
    .asg-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .asg-form__row input {
        margin-bottom: 14px;
    }
    .asg-contact {
        padding: 28px 20px;
    }
    .asg-section h2 {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .asg-why__grid {
        grid-template-columns: 1fr;
    }
    .asg-hero {
        padding: 40px 0 28px;
    }
    .asg-hero h1 {
        font-size: 24px;
    }
    .asg-hero__ctas {
        flex-direction: column;
    }
    .asg-btn {
        justify-content: center;
    }
}

/* ============================================================
   Solicită ofertă — form + results (used on /asigurari/ and
   at the bottom of every product page)
   ============================================================ */
/* Also a <section> — zero the global 88px padding from homepage.css */
.so-section { margin-top: 0; padding: 0; }
.so-card {
    background: #fff;
    border: 1px solid #e6e6e0;
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.so-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.so-title i { color: #9eab03; }
.so-intro { font-size: 14.5px; color: #666; line-height: 1.6; margin: 0 0 22px; }

.so-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.so-field { margin-bottom: 14px; }
.so-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.so-field input,
.so-field select,
.so-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e1e1da;
    border-radius: 9px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.so-field input:focus,
.so-field select:focus,
.so-field textarea:focus { border-color: #9eab03; }
.so-field textarea { resize: vertical; min-height: 84px; }

.so-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 6px 0 18px;
    cursor: pointer;
}
.so-consent input { width: auto; margin-top: 2px; flex-shrink: 0; }
.so-submit { width: 100%; justify-content: center; }
.so-form__err {
    margin-top: 14px;
    padding: 11px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 9px;
    font-size: 13.5px;
}

/* Results */
.so-results__title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 4px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9eab03;
}
.so-results__title--hq { margin-top: 28px; }
.so-agents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.so-agent {
    display: flex;
    gap: 14px;
    border: 1px solid #e6e6e0;
    border-radius: 12px;
    padding: 16px;
    background: #fafaf6;
}
.so-agent__photo {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}
.so-agent__body { min-width: 0; flex: 1; }
.so-agent__name { font-weight: 700; color: #222; font-size: 15px; }
.so-agent__pos { font-size: 12.5px; color: #9eab03; font-weight: 600; margin-bottom: 4px; }
.so-agent__loc { font-size: 13px; color: #666; margin-bottom: 8px; }
.so-agent__loc i { color: #9eab03; margin-right: 4px; }
.so-agent__contacts { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.so-agent__contacts a { font-size: 13px; color: #555; text-decoration: none; }
.so-agent__contacts a:hover { color: #9eab03; }
.so-agent__contacts i { color: #9eab03; width: 16px; }
.so-agent__link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: #9eab03; text-decoration: none;
}
.so-agent__link:hover { text-decoration: underline; }

.so-noagents {
    background: #f5f8e8;
    border: 1px solid #d9e494;
    color: #585d20;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.55;
}
.so-noagents i { color: #9eab03; margin-right: 6px; }

.so-offices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.so-office {
    border: 1px solid #e6e6e0;
    border-radius: 12px;
    padding: 16px 18px;
    background: #fff;
}
.so-office__name { font-weight: 700; color: #222; font-size: 15px; margin-bottom: 8px; }
.so-office__name i { color: #9eab03; margin-right: 6px; }
.so-office__addr { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 10px; }
.so-office__addr i { color: #9eab03; margin-right: 6px; }
.so-office__contacts { display: flex; flex-direction: column; gap: 5px; }
.so-office__contacts a { font-size: 13px; color: #555; text-decoration: none; }
.so-office__contacts a:hover { color: #9eab03; }
.so-office__contacts i { color: #9eab03; width: 16px; }

.so-reset { margin-top: 22px; }

/* Agent picker (shown before submit, once a county is chosen) */
.so-agentpick__opt { font-weight: 400; color: #999; font-size: 12px; }
.so-pick { display: flex; flex-direction: column; gap: 10px; }
.so-pick__loading { font-size: 13.5px; color: #777; padding: 6px 2px; }
.so-pick__loading i { color: #9eab03; margin-right: 6px; }
.so-pick__item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #e6e6e0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.so-pick__item:hover { border-color: #d4d99a; background: #fcfdf3; }
.so-pick__item input { position: absolute; opacity: 0; width: 0; height: 0; }
.so-pick__item:has(input:checked) {
    border-color: #9eab03;
    background: #f9faec;
    box-shadow: 0 0 0 1px #9eab03 inset;
}
.so-pick__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #eee; }
.so-pick__icon {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #f2f4dd; color: #949e22; font-size: 18px;
}
.so-pick__body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.so-pick__name { font-weight: 700; color: #222; font-size: 14.5px; }
.so-pick__sub { font-size: 12.5px; color: #777; margin-top: 2px; }
.so-pick__check {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid #d6d6cf; color: #fff; background: transparent;
    display: flex; align-items: center; justify-content: center; font-size: 11px;
    transition: background .15s, border-color .15s;
}
.so-pick__item input:checked ~ .so-pick__check { background: #9eab03; border-color: #9eab03; }

/* Confirmation after submit (centered modal — visible without scrolling) */
.so-done__icon { font-size: 46px; color: #9eab03; margin-bottom: 10px; }
.so-done__title { font-size: 20px; font-weight: 700; color: #222; margin: 0 0 8px; }
.so-done__msg { font-size: 14.5px; color: #555; line-height: 1.55; margin: 0 auto 8px; max-width: 460px; }
.so-modal {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(20, 28, 12, 0.55);
    opacity: 0; transition: opacity .2s ease;
}
.so-modal.is-open { opacity: 1; }
.so-modal__card {
    position: relative;
    background: #fff; border-radius: 16px;
    max-width: 420px; width: 100%;
    padding: 36px 28px 28px; text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    transform: translateY(12px) scale(.98); transition: transform .2s ease;
}
.so-modal.is-open .so-modal__card { transform: translateY(0) scale(1); }
.so-modal__close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none; font-size: 26px; line-height: 1;
    color: #aaa; cursor: pointer; padding: 4px;
}
.so-modal__close:hover { color: #555; }
.so-modal__ok { margin-top: 18px; width: 100%; justify-content: center; }

@media (max-width: 700px) {
    .so-form__row,
    .so-agents,
    .so-offices { grid-template-columns: 1fr; }
    .so-card { padding: 22px 18px; }
}
