/* ── Retragere din Contract – Frontend CSS ─────────────────────────────────── */

/* Buton */
.rc-buton-retragere {
    background-color: #c0392b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: background .2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}
.rc-buton-retragere:hover {
    background-color: #a93226 !important;
    color: #fff !important;
}

/* Wrapper buton în pagina comenzii */
.rc-retragere-wrapper {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #f5c6cb;
    background: #fff8f8;
    border-radius: 6px;
}
.rc-titlu-drept {
    font-weight: 700;
    margin: 0 0 6px;
    color: #2c3e50;
    font-size: 15px;
}
.rc-timp-ramas {
    font-size: 13px;
    color: #555;
    margin: 0 0 12px;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.rc-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.rc-modal-box {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    position: relative;
    animation: rcFadeIn .2s ease;
}
@keyframes rcFadeIn {
    from { opacity:0; transform:translateY(-12px); }
    to   { opacity:1; transform:translateY(0); }
}

.rc-modal-title {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 12px;
}
.rc-modal-desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.6;
}
.rc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 6px;
    color: #2c3e50;
}
.rc-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.rc-textarea:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 2px rgba(41,128,185,.15);
}

/* Butoane modal */
.rc-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.rc-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.rc-btn-primary {
    background: #c0392b;
    color: #fff;
}
.rc-btn-primary:hover { background: #a93226; }
.rc-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}
.rc-btn-secondary:hover { background: #dce1e7; }

/* Spinner */
.rc-spinner {
    width: 44px; height: 44px;
    border: 4px solid #eee;
    border-top-color: #c0392b;
    border-radius: 50%;
    animation: rcSpin .8s linear infinite;
    margin: 0 auto 18px;
}
@keyframes rcSpin { to { transform: rotate(360deg); } }

.rc-procesare-text {
    text-align: center;
    color: #555;
    font-size: 14px;
}

/* Icoane succes/eroare */
.rc-icon-succes, .rc-icon-eroare {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
}
.rc-icon-succes { color: #27ae60; }
.rc-icon-eroare { color: #c0392b; }
.rc-titlu-succes { color: #27ae60; }
.rc-titlu-eroare { color: #c0392b; }
.rc-small { font-size: 12px; color: #888; }

/* Step center */
#rc-step-2, #rc-step-3, #rc-step-4 { text-align: center; }
#rc-step-3 .rc-btn, #rc-step-4 .rc-btn { max-width: 180px; margin: 0 auto; }

/* Buton în lista comenzilor – override culoare tema */
a[href^="#rc-retragere-"].button,
a[href^="#rc-retragere-"] {
    background-color: #c0392b !important;
    color: #fff !important;
    border-color: #c0392b !important;
}
a[href^="#rc-retragere-"].button:hover,
a[href^="#rc-retragere-"]:hover {
    background-color: #a93226 !important;
    color: #fff !important;
    border-color: #a93226 !important;
}
