/* assets/css/sell-vs-hold-v2.css
   Sell vs Hold — questionnaire v2 page-specific styles.
   Loaded on top of questionnaire-v2.css (see layout/questionnaire-shell.php). */

/* ---- Field grids ---- */
.svh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.svh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 14px;
}

@media (max-width: 640px) {
    .svh-grid,
    .svh-grid-3 {
        grid-template-columns: 1fr;
    }
}

.svh-optional {
    color: #94A3B8;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-left: 6px;
}

/* ---- Review step (grouped cards + Edit buttons, per design) ---- */
.svh-review {
    display: grid;
    gap: 14px;
}

.svh-review-group {
    border: 1px solid #E9EEF5;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

.svh-review-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: #F8FAFF;
    border-bottom: 1px solid #EEF2F8;
}

.svh-review-group-title {
    font-weight: 800;
    font-size: .94rem;
    color: #0F172A;
}

.svh-review-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--color-primary, #2563EB);
    font-weight: 700;
    font-size: .82rem;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 4px;
}

.svh-review-edit:hover {
    text-decoration: underline;
}

.svh-review-rows {
    padding: 6px 18px;
}

.svh-review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: .9rem;
}

.svh-review-row:last-child {
    border-bottom: none;
}

.svh-review-row span {
    color: #64748B;
}

.svh-review-row strong {
    color: #0F172A;
    text-align: right;
}

.svh-review-cta {
    margin-top: 20px;
    background: linear-gradient(118deg, #0F172A, #17408f);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.svh-review-cta-eyebrow {
    color: #5eead4;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.svh-review-cta-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.12rem;
}

.svh-review-cta-sub {
    color: #9db4cc;
    font-size: .85rem;
    margin-top: 3px;
}

.svh-review-cta svg {
    flex: 0 0 auto;
}

/* ---- Guest (collaborator) mode: guests fill, only the owner generates ---- */
.qn-guest .wizard-submit,
.qn-guest .svh-owner-only {
    display: none !important;
}

.svh-guest-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 13px;
    padding: 14px 16px;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.55;
    margin-top: 18px;
}

/* ---- Contact + terms blocks (styles ported from questionnaire.css,
        which the v2 shell does not load) ---- */
.qn-page .hdl-analysis-contact {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
}

.qn-page .hdl-analysis-contact__field {
    display: grid;
    gap: 8px;
}

.qn-page .hdl-analysis-contact__field label {
    color: var(--color-navy, #0F172A);
    font-weight: 800;
}

.qn-page .hdl-analysis-contact__field label span {
    color: var(--color-blue, #2563EB);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.qn-page .hdl-analysis-contact__field input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    color: var(--color-navy, #0F172A);
    font: inherit;
}

.qn-page .hdl-analysis-contact__newsletter {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1e3a8a;
    font-weight: 700;
    line-height: 1.5;
}

.qn-page .hdl-analysis-contact__newsletter input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-blue, #2563EB);
    flex: 0 0 auto;
}

.qn-page .hdl-terms-acceptance {
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.6;
    margin-top: 18px;
    padding: 14px;
}

.qn-page .hdl-terms-acceptance__label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.qn-page .hdl-terms-acceptance input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
}

.qn-page .hdl-terms-acceptance__link {
    margin: 10px 0 0 30px;
    font-size: .8rem;
}

.qn-page .hdl-terms-acceptance__link a {
    color: #2563eb;
    font-weight: 800;
}

.qn-page .hdl-terms-acceptance.has-error {
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(254, 242, 242, 0.75);
}

.qn-page .hdl-terms-acceptance .wizard-error {
    margin: 10px 0 0 30px;
    color: #b91c1c;
    font-weight: 700;
}

/* ---- Notices inside the v2 layout ---- */
.qn-main .svh-notice {
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 700;
    margin: 0 0 18px;
}

.qn-main .svh-notice--error {
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.qn-main .svh-notice--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}
