/* ============================================================
   Decoshop Formular de Retur — decoshoponline.ro
   ============================================================ */

/* ─── TRIGGER LINK ────────────────────────────────────────── */
.dfr-open-btn {
    cursor: pointer;
    text-decoration: underline;
}
.dfr-open-btn:hover { color: #00aac1; }

/* ─── OVERLAY & MODAL ─────────────────────────────────────── */
.dfr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.dfr-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

body.dfr-no-scroll { overflow: hidden; }

.dfr-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}
.dfr-modal__title { font-size: 17px; margin: 0; }
.dfr-modal__close {
    background: none; border: none; font-size: 18px; cursor: pointer; color: #666; line-height: 1;
    padding: 4px 8px;
}
.dfr-modal__close:hover { color: #000; }

.dfr-steps {
    display: flex; align-items: center; padding: 14px 20px 0;
}
.dfr-step { display: flex; align-items: center; gap: 6px; opacity: .4; font-size: 13px; }
.dfr-step.active, .dfr-step.done { opacity: 1; }
.dfr-step__num {
    width: 22px; height: 22px; border-radius: 50%; background: #eee;
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.dfr-step.active .dfr-step__num { background: #00aac1; color: #fff; }
.dfr-step.active .dfr-step__label { color: #00aac1; }
.dfr-step.done .dfr-step__num { background: #4caf50; color: #fff; }
.dfr-step.done .dfr-step__label { color: #4caf50; }
.dfr-step-line { flex: 1; height: 1px; background: #ddd; margin: 0 8px; }

.dfr-modal__body { padding: 18px 20px 22px; }

.dfr-panel { display: block; }

.dfr-intro { font-size: 14px; color: #444; margin: 0 0 16px; line-height: 1.5; }

.dfr-row { display: flex; gap: 12px; margin-bottom: 12px; }
.dfr-row .dfr-field { flex: 1; min-width: 0; margin-bottom: 0; }

.dfr-field { margin-bottom: 12px; }
.dfr-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.dfr-optional-label { font-weight: 400; color: #888; }

.dfr-input {
    width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 11px; border: 1px solid #ccc;
    border-radius: 6px; font-size: 14px; font-family: inherit; line-height: 1.4;
}
.dfr-input:focus { outline: none; border-color: #00aac1; box-shadow: 0 0 0 3px rgba(0,170,193,.12); }
textarea.dfr-input { resize: vertical; }

/* input[type=date] a fost mai lat decat celelalte campuri pe mobil — flex
   items au min-width:auto implicit si se intind dupa continutul intrinsec */
input[type="date"].dfr-input { min-width: 0; max-width: 100%; }

/* select-ul afisa doar jumatatea de sus a textului pe mobil — acelasi bug
   intalnit si la dsc-rost-select din calculator, remediat identic */
select.dfr-input {
    line-height: normal !important;
    height: 42px !important;
    min-height: 42px !important;
    -webkit-appearance: menulist !important;
    appearance: auto;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.dfr-check-row {
    display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4;
    margin: 14px 0; cursor: pointer;
}
.dfr-check-row input { margin-top: 3px; flex-shrink: 0; accent-color: #00aac1; }

.dfr-radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.dfr-radio-opt { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 400; cursor: pointer; }
.dfr-radio-opt input { accent-color: #00aac1; }

.dfr-hp-field { position: absolute; left: -9999px; top: -9999px; }

.dfr-error {
    background: #fdecea; color: #a4262c; border: 1px solid #f5c2c0;
    padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 12px;
}

.dfr-actions { margin-top: 6px; }
.dfr-actions--row { display: flex; gap: 10px; }
.dfr-actions--row .dfr-btn { flex: 1; }

.dfr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: 1px solid transparent; font-family: inherit;
}
.dfr-btn--full { width: 100%; }
.dfr-btn--primary { background: #00aac1; color: #fff; border-color: #00aac1; }
.dfr-btn--primary:hover { background: #008fa3; border-color: #008fa3; }
.dfr-btn--primary:disabled { opacity: .6; cursor: not-allowed; }
.dfr-btn--ghost { background: #fff; color: #444; border-color: #ccc; }
.dfr-btn--ghost:hover { background: #f5f5f5; }

.dfr-summary {
    background: #f7f7f7; border-radius: 8px; padding: 14px 16px; font-size: 13.5px; line-height: 1.7;
    margin-bottom: 14px;
}
.dfr-summary strong { color: #222; }

.dfr-result-card { text-align: center; padding: 10px 0 6px; }
.dfr-result-icon {
    width: 48px; height: 48px; border-radius: 50%; background: #4caf50; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 12px;
}
.dfr-result-title { margin: 0 0 8px; font-size: 17px; }
.dfr-result-ref { font-weight: 700; font-size: 15px; margin: 6px 0; }
.dfr-result-note { font-size: 12.5px; color: #888; margin-top: 10px; }

/* ─── CREDIT FIRESTORM ────────────────────────────────────── */
.dfr-credit {
    text-align: center;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.dfr-credit a {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    font-weight: 500;
}
.dfr-credit a:hover { color: #00aac1; }

@media (max-width: 480px) {
    .dfr-row { flex-direction: column; gap: 0; }
    .dfr-modal__title { font-size: 15px; }
}
