/**
 * Platforma MultiStore — stilurile formularului de ofertă B14 („Vrei Platforma MultiStore în orașul tău?”).
 *
 * Totul stă sub clasa-rădăcină .ms-offer (nimic global). Culorile și fonturile vin din variabilele
 * site-ului (main.css: --color-primary, --font-heading, --font-body …), cu valori de rezervă.
 * Markup: templates/partials/multistore/offer-form.php · script: assets/js/multistore-form.js.
 * Card închis (ca finalul paginilor WOW) pe o secțiune deschisă; o coloană pe telefon, câmpuri de 48px.
 *
 * Ultima modificare: 2026-09-30 14:58
 * Modificari:
 *   2026-09-30 14:58 — Creare: card în două coloane (argumente | formular), stări de eroare, panou de confirmare
 */

.ms-offer {
    padding: 4.5rem 0;
    background: var(--color-surface, #f8fafc);
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    scroll-margin-top: 90px;
}

.ms-offer .ms-offer-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
    gap: 2.75rem;
    padding: 3rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    color: #e2e8f0;
    box-shadow: 0 30px 70px -30px rgba(30, 27, 75, .6);
}

.ms-offer .ms-offer-glow {
    position: absolute;
    width: 460px;
    height: 460px;
    top: -200px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, .25) 0%, transparent 70%);
    pointer-events: none;
}

.ms-offer .ms-offer-intro,
.ms-offer .ms-offer-side {
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* ── Coloana stângă: de ce să ceară oferta ─────────────────────────────── */

.ms-offer .ms-offer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem .95rem;
    border-radius: 999px;
    background: rgba(129, 140, 248, .16);
    border: 1px solid rgba(129, 140, 248, .35);
    color: #c7d2fe;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.ms-offer h2 {
    margin: 1rem 0 .75rem;
    color: #fff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
}

.ms-offer .ms-offer-lead {
    margin: 0 0 1.5rem;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
}

.ms-offer .ms-offer-points {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    gap: .9rem;
}

.ms-offer .ms-offer-points li {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    color: #e2e8f0;
    font-size: .95rem;
    line-height: 1.55;
}

.ms-offer .ms-offer-point-ico {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(99, 102, 241, .22);
    color: #a5b4fc;
    font-size: .9rem;
}

.ms-offer .ms-offer-call {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
    font-size: .92rem;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.ms-offer .ms-offer-call:hover,
.ms-offer .ms-offer-call:focus-visible {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(165, 180, 252, .55);
    color: #fff;
}

.ms-offer .ms-offer-call i {
    color: #34d399;
}

.ms-offer .ms-offer-call strong {
    color: #fff;
    white-space: nowrap;
}

/* ── Coloana dreaptă: formularul ───────────────────────────────────────── */

.ms-offer .ms-offer-form,
.ms-offer .ms-offer-done {
    padding: 1.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
}

.ms-offer .ms-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1rem;
}

.ms-offer .ms-offer-field--full {
    grid-column: 1 / -1;
}

.ms-offer .ms-offer-field label {
    display: block;
    margin-bottom: .4rem;
    color: #e2e8f0;
    font-size: .86rem;
    font-weight: 600;
}

.ms-offer .ms-offer-optional {
    color: #94a3b8;
    font-weight: 400;
}

.ms-offer .ms-offer-control {
    position: relative;
}

.ms-offer .ms-offer-control > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #818cf8;
    font-size: .85rem;
    pointer-events: none;
}

.ms-offer .ms-offer-control--area > i {
    top: 17px;
    transform: none;
}

.ms-offer .ms-offer-control input,
.ms-offer .ms-offer-control select,
.ms-offer .ms-offer-control textarea {
    width: 100%;
    min-height: 48px;
    padding: .75rem .9rem .75rem 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(15, 23, 42, .45);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.ms-offer .ms-offer-control textarea {
    min-height: 96px;
    resize: vertical;
}

.ms-offer .ms-offer-control select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.4rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    background-size: 16px;
}

/* Lista deschisă a selectului e desenată de sistem pe fundal deschis: text închis acolo */
.ms-offer .ms-offer-control select option {
    color: #111827;
    background: #fff;
}

.ms-offer .ms-offer-control input::placeholder,
.ms-offer .ms-offer-control textarea::placeholder {
    color: rgba(226, 232, 240, .45);
}

.ms-offer .ms-offer-control input:focus,
.ms-offer .ms-offer-control select:focus,
.ms-offer .ms-offer-control textarea:focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(15, 23, 42, .65);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, .25);
}

/* Câmp greșit: bordură roșie + text explicativ sub el */
.ms-offer .ms-offer-field.is-invalid .ms-offer-control input,
.ms-offer .ms-offer-field.is-invalid .ms-offer-control select,
.ms-offer .ms-offer-field.is-invalid .ms-offer-control textarea {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .18);
}

.ms-offer .ms-offer-err {
    margin: .35rem 0 0;
    color: #fca5a5;
    font-size: .8rem;
    line-height: 1.4;
}

/* Mesajul general (eroare de trimitere) */
.ms-offer .ms-offer-msg {
    margin: 1.1rem 0 0;
    padding: .8rem 1rem;
    border-radius: 12px;
    background: rgba(248, 113, 113, .12);
    border: 1px solid rgba(248, 113, 113, .35);
    color: #fecaca;
    font-size: .9rem;
    line-height: 1.5;
}

.ms-offer .ms-offer-msg[hidden] {
    display: none;
}

.ms-offer .ms-offer-btn {
    width: 100%;
    margin-top: 1.25rem;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 30px -14px rgba(99, 102, 241, .9);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.ms-offer .ms-offer-btn:hover,
.ms-offer .ms-offer-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px -14px rgba(139, 92, 246, .95);
}

.ms-offer .ms-offer-btn:focus-visible {
    outline: 3px solid rgba(165, 180, 252, .7);
    outline-offset: 2px;
}

.ms-offer .ms-offer-btn[disabled] {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.ms-offer .ms-offer-note {
    margin: .8rem 0 0;
    color: #94a3b8;
    font-size: .78rem;
    text-align: center;
}

.ms-offer .ms-offer-note a {
    color: #c7d2fe;
}

/* Panoul de confirmare care ia locul formularului după trimitere */
.ms-offer .ms-offer-done {
    text-align: center;
    padding: 2.5rem 1.75rem;
}

.ms-offer .ms-offer-done[hidden],
.ms-offer .ms-offer-form[hidden] {
    display: none;
}

.ms-offer .ms-offer-done:focus {
    outline: none;
}

.ms-offer .ms-offer-done-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, .16);
    color: #34d399;
    font-size: 1.9rem;
}

.ms-offer .ms-offer-done h3 {
    margin: 1rem 0 .5rem;
    color: #fff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
}

.ms-offer .ms-offer-done-txt {
    margin: 0 auto 1.4rem;
    max-width: 380px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* ── Tabletă și telefon ────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .ms-offer .ms-offer-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .ms-offer {
        padding: 3rem 0;
    }

    .ms-offer .ms-offer-card {
        padding: 1.75rem 1.1rem;
        border-radius: 22px;
    }

    .ms-offer .ms-offer-form {
        padding: 1.25rem 1rem;
    }

    .ms-offer .ms-offer-grid {
        grid-template-columns: 1fr;
    }

    .ms-offer .ms-offer-call {
        width: 100%;
    }

    .ms-offer .ms-offer-call strong {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ms-offer .ms-offer-btn,
    .ms-offer .ms-offer-call,
    .ms-offer .ms-offer-control input,
    .ms-offer .ms-offer-control select,
    .ms-offer .ms-offer-control textarea {
        transition: none;
    }
}
