/* ──────────────────────────────────────────────────────────────────────────
   Pre-aprobare Business — câmpuri dedicate + modal verdict.
   Fișier propriu (regula proiectului: nu atingem SCSS-ul/CSS-ul compilat).
   Culori brand MK: #180047 navy, #2958d9 albastru, #579af2 accent.
   ────────────────────────────────────────────────────────────────────────── */

/* Câmpuri Business */
.business-fields {
    width: 100%;
}

.business-field-error {
    display: block;
    width: 100%;
    margin-top: 6px;
    color: #ff6b6b;
    font-size: 14px;
}

.business-fields .inline-input.is-invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25);
}

/* ── Modal verdict ───────────────────────────────────────────────────────── */
.preapproval-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preapproval-modal.is-open {
    display: flex;
}

.preapproval-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 6, 38, 0.72);
    backdrop-filter: blur(3px);
}

.preapproval-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: pa-pop 0.25s ease;
}

@keyframes pa-pop {
    from { transform: translateY(12px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.preapproval-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #9aa0ad;
    cursor: pointer;
    transition: color 0.15s;
}
.preapproval-modal__close:hover { color: #180047; }

.preapproval-modal__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #ffffff;
    line-height: 1;
}

.preapproval-modal.is-approved .preapproval-modal__icon {
    background: linear-gradient(135deg, #1e9e57, #15a06b);
}
.preapproval-modal.is-rejected .preapproval-modal__icon {
    background: linear-gradient(135deg, #e0556a, #c5384f);
}
.preapproval-modal.is-neutral .preapproval-modal__icon {
    background: linear-gradient(135deg, #2958d9, #579af2);
}

.preapproval-modal__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #180047;
}

.preapproval-modal__subtitle {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.5;
    color: #5a6072;
}

.preapproval-modal__cta {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    background: #2958d9;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.preapproval-modal__cta:hover {
    background: #1d44b0;
    color: #ffffff;
}

@media (max-width: 480px) {
    .preapproval-modal__dialog { padding: 34px 20px 24px; }
    .preapproval-modal__title { font-size: 19px; }
}

/* ── Câmpuri Agricultură ─────────────────────────────────────────────────── */
.agriculture-fields {
    width: 100%;
    margin-top: 10px;
}

.agro-section-title {
    margin: 26px 0 12px;
    padding-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #180047;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.agro-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: end;
}

.agro-row .agro-select { flex: 2 1 0; }
.agro-row .agro-num    { flex: 1 1 0; }

.agro-row--double,
.agro-row--triple {
    display: grid;
    gap: 12px;
}
.agro-row--double { grid-template-columns: repeat(2, 1fr); }
.agro-row--triple { grid-template-columns: repeat(3, 1fr); }

.agro-field {
    display: flex;
    flex-direction: column;
}

.agro-field label {
    margin-bottom: 4px;
    font-size: 13px;
    color: #4a4f5e;
}

/* Inputurile/selecturile agro: lizibile pe fundalul închis al paginii */
.agriculture-fields .form-control {
    background: #ffffff;
    border: 1px solid #d4d7e0;
    border-radius: 8px;
    padding: 10px 12px;
    color: #222;
    font-size: 14px;
    width: 100%;
}
.agriculture-fields .form-control:focus {
    outline: none;
    border-color: #2958d9;
    box-shadow: 0 0 0 2px rgba(41, 88, 217, 0.2);
}

@media (max-width: 600px) {
    .agro-row { flex-direction: column; align-items: stretch; }
    .agro-row--double,
    .agro-row--triple { grid-template-columns: 1fr; }
}

/* ── Dezvăluire progresivă (wizard agricultură) ──────────────────────────── */
.agriculture-fields [hidden] { display: none !important; }

/* Câmp încă nedezvăluit în lanțul câmp-cu-câmp (inclusiv câmpurile comune,
   unde atributul [hidden] ar fi suprascris de display:flex din stilurile temei). */
.agro-flow-hidden { display: none !important; }

.agro-step {
    margin-top: 18px;
    padding-top: 4px;
}

.agro-step--in {
    animation: agro-step-in 0.28s ease;
}

@keyframes agro-step-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.agro-intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #5a6072;
}

/* Întrebarea Da/Nu care deschide o secțiune */
.agro-gate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 14px 16px;
    background: #f5f6fa;
    border: 1px solid #e2e5ee;
    border-radius: 10px;
}

.agro-gate__q {
    flex: 1 1 240px;
    font-size: 15px;
    font-weight: 600;
    color: #180047;
}

.agro-gate__opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
}

.agro-gate__opt input {
    width: 16px;
    height: 16px;
    accent-color: #2958d9;
    cursor: pointer;
}

.agro-gate-content {
    margin-top: 4px;
}

/* Select compact inline (valuta RON/EUR de lângă sumă) */
.inline-select--small {
    min-width: 90px;
    width: auto;
    flex: 0 0 auto;
}

/* Butonul „Adaugă alt rând" */
.agro-add-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px dashed rgba(41, 88, 217, 0.5);
    border-radius: 8px;
    color: #2958d9;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.agro-add-btn:hover {
    background: rgba(41, 88, 217, 0.25);
    border-color: #579af2;
}

/* Butonul „Elimină" (×) pe rândurile adăugate */
.agro-remove-btn {
    flex: 0 0 auto;
    align-self: end;
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(217, 41, 41, 0.4);
    border-radius: 8px;
    color: #d92929;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.agro-remove-btn:hover {
    background: rgba(217, 41, 41, 0.12);
    border-color: #d92929;
}

@media (max-width: 600px) {
    .agro-remove-btn { width: 100%; height: 38px; }
}
