/* Retragere din contract – pagina formularului */
.retragere { --rc-brand: #C8102E; --rc-ink: #1f2a44; --rc-muted: #6b7280; --rc-line: #e6e8ec; --rc-soft: #f7f8fa; color: var(--rc-ink); }
.retragere .req { color: var(--rc-brand); }

/* Antet */
.rc-hero { padding: 4px 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rc-line); }
.rc-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rc-brand); background: color-mix(in srgb, var(--rc-brand) 10%, #fff); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.rc-title { font-size: 30px; line-height: 1.2; font-weight: 800; margin: 0 0 10px; color: var(--rc-ink); text-transform: none; }
.rc-lead { font-size: 16px; line-height: 1.6; color: #3d4659; max-width: 760px; margin: 0; }

/* Grilă: formular + informații */
.rc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 992px) { .rc-grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 40px; align-items: start; } }

.rc-h2 { font-size: 19px; font-weight: 700; margin: 0 0 4px; color: var(--rc-ink); text-transform: none; }
.rc-muted { color: var(--rc-muted); margin: 0 0 18px; }

/* Pași */
.retragere-steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.retragere-steps li { padding: 6px 12px; border-radius: 999px; background: var(--rc-soft); color: var(--rc-muted); margin: 0; }
.retragere-steps .is-current { background: var(--rc-brand); color: #fff; font-weight: 700; }
.retragere-steps .is-done { background: #e8f5e9; color: #2e7d32; }

.retragere-form label { font-weight: 600; }
.retragere-summary { background: var(--rc-soft); border-left: 4px solid var(--rc-brand); border-radius: 8px; padding: 14px 18px; margin: 14px 0 22px; line-height: 1.8; }
.retragere-table td, .retragere-table th { vertical-align: middle; }
.retragere-table tr.is-excluded { opacity: .7; }
.retragere-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--rc-brand); }
.retragere-qty { width: 5rem; display: inline-block; }
.retragere-declaration { border-left: 3px solid var(--rc-ink); padding: 8px 14px; margin: 22px 0; background: var(--rc-soft); border-radius: 0 6px 6px 0; }
.retragere-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Coloana de informații */
.rc-side { display: flex; flex-direction: column; gap: 16px; }
.rc-card { border: 1px solid var(--rc-line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.rc-card--alt { background: var(--rc-soft); border-color: transparent; }
.rc-card-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--rc-ink); text-transform: none; }
.rc-card p { font-size: 14px; line-height: 1.55; margin: 0 0 8px; color: #3d4659; }

.rc-flow { list-style: none; counter-reset: rc; padding: 0; margin: 0; }
.rc-flow li { counter-increment: rc; position: relative; padding: 0 0 14px 40px; font-size: 14px; line-height: 1.45; margin: 0; }
.rc-flow li:last-child { padding-bottom: 0; }
.rc-flow li::before { content: counter(rc); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--rc-brand); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rc-flow li::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--rc-line); }
.rc-flow li:last-child::after { display: none; }
.rc-flow strong { display: block; color: var(--rc-ink); }
.rc-flow span { color: var(--rc-muted); }

.rc-list { list-style: none; padding: 0; margin: 0 0 10px; }
.rc-list li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 14px; line-height: 1.5; color: #3d4659; }
.rc-list li::before { content: "✓"; position: absolute; left: 0; color: var(--rc-brand); font-weight: 700; }
.rc-link { font-weight: 600; color: var(--rc-brand); }
.rc-contact a { font-weight: 700; color: var(--rc-ink); }
.rc-alt { font-size: 13px; color: var(--rc-muted); line-height: 1.5; margin: 0; padding: 0 4px; }

.rc-confirm-note { margin: 16px 0; padding: 12px 16px; border-left: 4px solid #C8102E; background: #f7f8fa; border-radius: 0 6px 6px 0; font-size: 14px; }
.rc-confirm-note a { font-weight: 700; }
.retragere-order-box { margin-top: 1rem; }

@media print { header, footer, nav, .retragere .rc-btn, .rc-side { display: none !important; } }

.rc-fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.rc-legend { font-size: 15px; font-weight: 700; padding: 0; margin: 0 0 6px; width: auto; border: 0; }
.retragere-table label { margin: 0; font-weight: 600; cursor: pointer; }
.rc-excluded-note { font-size: 12.5px; line-height: 1.45; color: var(--rc-muted); margin-top: 4px; }
.rc-qty-wrap { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rc-qty-wrap .retragere-qty { width: 4.5rem; padding: 6px 8px; }

/* Câmpuri și butoane (independente de temă) */
.retragere .rc-field { margin-bottom: 18px; }
.retragere .rc-input { display: block; width: 100%; max-width: 560px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cfd4dc; border-radius: 6px; font-size: 15px; background: #fff; color: var(--rc-ink); }
.retragere .rc-input:focus { outline: 2px solid color-mix(in srgb, var(--rc-brand) 40%, transparent); border-color: var(--rc-brand); }
.retragere textarea.rc-input { max-width: 720px; }
.retragere .rc-hint { display: block; margin-top: 4px; color: var(--rc-muted); font-size: 13px; }
.rc-btn { display: inline-block; cursor: pointer; border: 0; border-radius: 8px; padding: 12px 26px; font-size: 15px; font-weight: 700; background: var(--rc-brand, #C8102E); color: #fff; text-decoration: none; line-height: 1.2; }
.rc-btn:hover, .rc-btn:focus { filter: brightness(.92); color: #fff; }
.rc-btn--lg { padding: 15px 34px; font-size: 17px; }
.rc-btn--secondary { background: #1f2a44; margin-top: 8px; }
.rc-alert { border-radius: 8px; padding: 14px 18px; margin: 0 0 20px; border: 1px solid; }
.rc-alert ul { margin: 0; padding-left: 20px; }
.rc-alert--danger { background: #fdecea; border-color: #f5c2c0; color: #8a1f17; }
.rc-alert--success { background: #e8f5e9; border-color: #b7dfb9; color: #1b5e20; }
.rc-alert--warning { background: #fff8e1; border-color: #ffe08a; color: #7a5b00; }
.rc-alert p { margin: 0; }
.rc-h3 { font-size: 17px; font-weight: 700; margin: 18px 0 8px; color: var(--rc-ink); text-transform: none; }
.rc-alert .rc-h3 { margin-top: 0; }
.retragere-table { width: 100%; border-collapse: collapse; }
.retragere-table th { text-align: left; font-size: 13px; color: var(--rc-muted); padding: 8px 10px; border-bottom: 2px solid var(--rc-line); }
.retragere-table td { padding: 10px; border-bottom: 1px solid var(--rc-line); }
.retragere-table td:first-child { width: 36px; }
.rc-plain { margin: 0 0 12px 18px; }

/* Butonul „Retrageți-vă din contract aici”: clasa .rc-footer-btn sau, cu opțiunea activă,
   orice link din footer către pagina de retragere. */
.rc-footer-btn,
body.rc-footer-style footer a[href*="retragere-din-contract"] {
  display: inline-flex !important; align-items: center; gap: 8px;
  margin: 2px 0 10px; padding: 9px 16px 9px 12px;
  border: 1.5px solid #ffffff; border-radius: 999px;
  color: #ffffff !important; font-weight: 700; font-size: 13px; line-height: 1.2;
  text-decoration: none !important; background: transparent;
  transition: background .15s ease, color .15s ease;
}
.rc-footer-btn::before,
body.rc-footer-style footer a[href*="retragere-din-contract"]::before {
  content: "↩"; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #C8102E; color: #fff; font-size: 13px;
}
.rc-footer-btn:hover, .rc-footer-btn:focus,
body.rc-footer-style footer a[href*="retragere-din-contract"]:hover { background: #ffffff; color: #1f2a44 !important; }

/* Pagina pe toată lățimea (opțiune în setări; depinde de temă) */
body:has(.rc-fullwidth) :is(.container, .container-fluid, .site-content, .content-area, .site-main, .entry-content, .wp-block-post-content, .post-content, article, main):has(.rc-fullwidth) {
  max-width: none !important; width: 100% !important;
}
.rc-fullwidth { --rc-gutter: clamp(16px, 2vw, 40px); padding: 28px var(--rc-gutter) 48px; max-width: none; box-sizing: border-box; }
.rc-fullwidth .rc-lead { max-width: 900px; }
@media (min-width: 1200px) { .rc-fullwidth .rc-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
@media (min-width: 1500px) {
  .rc-fullwidth .rc-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .rc-fullwidth .rc-side .rc-card--alt, .rc-fullwidth .rc-side .rc-alt { grid-column: 1 / -1; }
}

/* Notificarea armonizată UE – garanția legală */
.rc-gn { margin: 14px 0; }
.rc-gn-trigger { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #dfe3ea; border-radius: 10px; background: #f7f9fc; color: #1f2a44 !important; text-decoration: none !important; line-height: 1.35; transition: border-color .15s ease, background .15s ease; }
.rc-gn-trigger:hover, .rc-gn-trigger:focus-visible { border-color: #0e47cb; background: #eef3ff; }
.rc-gn-icon { flex: 0 0 auto; color: #0e47cb; }
.rc-gn-text { display: flex; flex-direction: column; font-size: 14px; }
.rc-gn-text strong { font-weight: 700; }
.rc-gn-more { font-size: 13px; color: #0e47cb; text-decoration: underline; }
.rc-gn-dialog { border: 0; border-radius: 12px; padding: 18px; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.rc-gn-dialog::backdrop { background: rgba(15,20,35,.6); }
.rc-gn-dialog img { display: block; width: 100%; height: auto; }
.rc-gn-close { position: sticky; top: 0; float: right; margin: -6px -6px 6px 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #1f2a44; color: #fff; font-size: 22px; line-height: 36px; cursor: pointer; z-index: 1; padding: 0; }
.rc-gn-dialog-link { margin: 12px 0 0; text-align: center; font-weight: 700; }
.rc-gn--checkout { margin: 0 0 18px; }

/* Pagina „Garanția legală” (pagină generată de plugin) */
.rc-gp { color: #1f2a44; }
.rc-gp .rc-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0e47cb; background: #e8efff; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.rc-gp .rc-gp-title { font-size: 30px; line-height: 1.2; font-weight: 800; margin: 0 0 10px; color: #1f2a44; text-transform: none; }
.rc-gp-lead { font-size: 16px; line-height: 1.6; color: #3d4659; max-width: 900px; margin: 0 0 28px; }
.rc-gp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; border-top: 1px solid #e6e8ec; }
@media (min-width: 992px) { .rc-gp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } .rc-gp-notice { position: sticky; top: 24px; } }
.rc-gp-notice img { display: block; width: 100%; max-width: 820px; height: auto; border: 1px solid #e6e8ec; }
.rc-gp-notice p { margin: 12px 0 0; font-weight: 700; }
.rc-gp-notice a { color: #0e47cb; }
.rc-gp-cards { display: flex; flex-direction: column; gap: 16px; }
.rc-gp-card { border: 1px solid #e6e8ec; border-radius: 12px; padding: 20px 22px; background: #fff; }
.rc-gp-card--soft { background: #f7f8fa; border-color: transparent; }
.rc-gp-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 12px; color: #1f2a44; text-transform: none; }
.rc-gp-card p, .rc-gp-card li { font-size: 14.5px; line-height: 1.6; color: #3d4659; }
.rc-gp-card p { margin: 0 0 8px; }
.rc-gp-card ul { list-style: none; padding: 0; margin: 0; }
.rc-gp-card li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.rc-gp-card li::before { content: "✓"; position: absolute; left: 0; color: #0e47cb; font-weight: 700; }
.rc-gp-card a { font-weight: 700; color: #C8102E; }
.rc-gp-steps { counter-reset: gp; list-style: none !important; padding: 0 !important; margin: 0; }
@media (min-width: 1500px) { .rc-gp-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .rc-gp .rc-gp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } }
.rc-gp-steps li { counter-increment: gp; padding-left: 34px; }
.rc-gp-steps li::before { content: counter(gp); width: 22px; height: 22px; border-radius: 50%; background: #0e47cb; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; top: 1px; }
.rc-gp-card a[href^="tel:"] { white-space: nowrap; }
