/* ============================================================
   SPONSORIZARE 20% PAGE
   ============================================================ */

/* ── Form card ──────────────────────────────────────────── */
.sp20-form {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 36px 40px;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Section titles ─────────────────────────────────────── */
.sp20-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent, #e8603c);
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
    margin: 32px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp20-section-title:first-of-type { margin-top: 0; }

/* ── Grid rows ──────────────────────────────────────────── */
.sp20-cui-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px;
}

.sp20-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 4px;
}

/* ── Fields ─────────────────────────────────────────────── */
.sp20-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
    min-width: 0;
}
.sp20-field--wide { flex: 2 1 280px; }
.sp20-field--full { flex: 1 1 100%; }
.sp20-field--grow { flex: 1 1 200px; }

.sp20-field label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sp20-input {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}
.sp20-input:focus {
    border-color: var(--accent, #e8603c);
    box-shadow: 0 0 0 3px rgba(232,96,60,.12);
}
.sp20-input--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.sp20-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ── CUI lookup button ──────────────────────────────────── */
.sp20-lookup-btn {
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 0;
    align-self: flex-end;
}

.sp20-cui-error {
    color: #991b1b;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Money field: hide currency symbol Symfony adds ─────── */
.sp20-field .input-group-text { display: none; }
.sp20-field .input-group .sp20-input { border-radius: 6px !important; }

/* ── Submit area ─────────────────────────────────────────── */
.sp20-submit {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp20-submit-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sp20-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 18px 22px;
    color: #166534;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.sp20-success i { color: #22c55e; font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.sp20-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 14px 18px;
    color: #991b1b;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp20-error i { color: #ef4444; }

/* ── Info cards — horizontal group (all 3 side-by-side, no separate boxes) ─ */
.sp20-page .redir-info-grid {
    display: flex;
    flex-direction: row;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    gap: 0;
}
.sp20-page .redir-info-card {
    flex: 1;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-right: 1px solid var(--border);
    padding: 36px 28px;
}
.sp20-page .redir-info-card:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .sp20-page .redir-info-grid { flex-direction: column; }
    .sp20-page .redir-info-card { border-right: none; border-bottom: 1px solid var(--border); }
    .sp20-page .redir-info-card:last-child { border-bottom: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .sp20-form { padding: 24px 18px; }
    .sp20-cui-row { flex-direction: column; align-items: stretch; }
    .sp20-lookup-btn { width: 100%; justify-content: center; }
    .sp20-field { flex: 1 1 100%; }
}
