/* Calculator Rulouri Exterioare — v1.3.1 (progressive / compact) */

/* ── Reset scoped ── */
.rulouri-calc *,
.rulouri-calc *::before,
.rulouri-calc *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Widget root ── */
.rulouri-calc {
  --blue:     #0c43bd;
  --blue-dk:  #0a3699;
  --orange:   #ff6602;
  --orange-dk:#e05400;
  --green:    #1db954;
  --green-dk: #15803d;
  --text:     #12161d;
  --sub:      #4b5262;
  --muted:    #8a93a6;
  --border:   #dde1ea;
  --bg:       #fff;
  --panel:    #f5f6f9;
  --r:        8px;
  --r-lg:     14px;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 22px 24px 18px;
  position: relative;
}

/* ── Steps container ── */
.rulouri-calc .rc-steps {
  position: relative;
  min-height: 280px;
}
.rulouri-calc .rc-step {
  display: none;
}
.rulouri-calc .rc-step-active {
  display: block;
  animation: rc-stepIn .28s cubic-bezier(.4, 0, .2, 1);
}
.rulouri-calc .rc-step-active.rc-anim-back {
  animation: rc-stepInBack .28s cubic-bezier(.4, 0, .2, 1);
}

@keyframes rc-stepIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes rc-stepInBack {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Question heading ── */
.rulouri-calc .rc-q {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  text-align: center;
}
.rulouri-calc .rc-verb {
  color: inherit;
  letter-spacing: 0.02em;
  display: inline-block;
  position: relative;
}
.rulouri-calc .rc-verb::after {
  display: none;
}
.rulouri-calc .rc-hint {
  font-size: 0.88rem;
  color: var(--sub);
  margin-bottom: 22px;
  line-height: 1.4;
}
.rulouri-calc .rc-optional {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

/* ── Color swatches (PASUL 1) ── */
.rulouri-calc .rc-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.rulouri-calc .rc-sw {
  position: relative;
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.rulouri-calc .rc-sw:hover  { transform: scale(1.04); z-index: 1; }
.rulouri-calc .rc-sw:active { transform: scale(0.94); transition: transform .08s; }
.rulouri-calc .rc-sw.on     { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
@media (hover: none) {
  .rulouri-calc .rc-sw:hover { transform: none; }
}
.rulouri-calc .rc-sw-bg { position: absolute; inset: 0; overflow: hidden; }
.rulouri-calc .rc-sw-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rulouri-calc .rc-sw-shade {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 7px;
  pointer-events: none;
}
.rulouri-calc .rc-sw-nm {
  font-size: 0.6rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.3;
  background: rgba(255,255,255,.55);
  padding: 2px 7px;
  border-radius: 20px;
}
.rulouri-calc .rc-sw-tick {
  position: absolute;
  top: 5px; right: 5px;
  width: 26px; height: 26px;
  background: var(--orange);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: #fff;
  opacity: 0;
  transition: opacity .15s, transform .15s;
  transform: scale(0.6);
}
.rulouri-calc .rc-sw.on .rc-sw-tick { opacity: 1; transform: scale(1); }

/* ── Cards COMPACT (PASUL 2) ── */
.rulouri-calc .rc-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rulouri-calc .rc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.rulouri-calc .rc-card:hover  { border-color: var(--blue); background: #f7f9ff; }
.rulouri-calc .rc-card:active { transform: scale(0.98); }
.rulouri-calc .rc-card.on     { border-color: var(--green); background: #f0fdf4; }

.rulouri-calc .rc-card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--panel);
  color: var(--blue);
  border-radius: 7px;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.rulouri-calc .rc-card.on .rc-card-icon {
  background: var(--green);
  color: #fff;
}

.rulouri-calc .rc-card-body {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  line-height: 1.2;
}
.rulouri-calc .rc-card-title {
  font-weight: 700;
  font-size: 1rem;
}
.rulouri-calc .rc-card-sub {
  font-size: 0.82rem;
  color: var(--sub);
  font-weight: 500;
}

.rulouri-calc .rc-card-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(29,185,84,0.3);
}

.rulouri-calc .rc-card-tick {
  width: 20px; height: 20px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .15s, transform .15s;
  flex-shrink: 0;
}
.rulouri-calc .rc-card.on .rc-card-tick {
  opacity: 1;
  transform: scale(1);
}

/* ── Dimensiuni (PASUL 3) ── */
.rulouri-calc .rc-dims-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.rulouri-calc .rc-dim-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .12s;
  animation: rc-rowIn .22s ease;
}
@keyframes rc-rowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rulouri-calc .rc-dim-row:focus-within { border-color: var(--blue); }
.rulouri-calc .rc-dim-row:focus-within .rc-dim-lbl {
  background: var(--blue);
  color: #fff;
}
.rulouri-calc .rc-dim-lbl {
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.rulouri-calc .rc-dim-f {
  padding: 9px 12px;
  border-right: 1px solid var(--border);
  transition: background .12s;
}
.rulouri-calc .rc-dim-f:focus-within { background: #f0f4ff; }
.rulouri-calc .rc-dim-f label {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  transition: color .12s;
}
.rulouri-calc .rc-dim-f:focus-within label { color: var(--blue); }
.rulouri-calc .rc-dim-f input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.rulouri-calc .rc-dim-f input::-webkit-inner-spin-button,
.rulouri-calc .rc-dim-f input::-webkit-outer-spin-button { -webkit-appearance: none; }
.rulouri-calc .rc-dim-f input::placeholder { color: #cbd0db; font-weight: 400; }

.rulouri-calc .rc-dim-del {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.rulouri-calc .rc-dim-del:hover  { color: #dc2626; background: #fee2e2; }
.rulouri-calc .rc-dim-del[disabled] { opacity: 0; pointer-events: none; }

.rulouri-calc .rc-add-dim {
  width: 100%;
  padding: 11px;
  border: 1.5px dashed var(--border);
  border-radius: var(--r);
  background: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.rulouri-calc .rc-add-dim:hover  { border-color: var(--blue); color: var(--blue); background: #f0f4ff; }
.rulouri-calc .rc-add-dim:active { transform: scale(0.99); }

/* ── Free measure callout (PASUL 3) ── */
.rulouri-calc .rc-free-measure {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 16px;
  background: #f0faf4;
  border: 1.5px solid #b2dfca;
  border-radius: var(--r);
  font-size: 0.88rem;
  color: #1a7a45;
  line-height: 1.4;
}
.rulouri-calc .rc-free-measure svg {
  flex-shrink: 0;
  opacity: .8;
}
.rulouri-calc .rc-free-measure strong {
  color: #157a3c;
}

/* ── Contact fields (PASUL 4) — floating labels ── */
.rulouri-calc .rc-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.rulouri-calc .rc-ff {
  position: relative;
}
.rulouri-calc .rc-fi {
  width: 100%;
  padding: 18px 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  transition: border-color .15s;
}
.rulouri-calc .rc-fi:focus { border-color: var(--blue); }
.rulouri-calc textarea.rc-fi { resize: vertical; min-height: 60px; padding-top: 22px; }
.rulouri-calc .rc-ff label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition: top .15s, font-size .15s, color .15s;
  background: transparent;
}
.rulouri-calc .rc-ff .rc-fi:focus + label,
.rulouri-calc .rc-ff .rc-fi:not(:placeholder-shown) + label {
  top: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rulouri-calc .rc-opt {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ── Foto upload (PASUL 5) ── */
.rulouri-calc .rc-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  min-height: 0;
}
.rulouri-calc .rc-photo-grid:empty { display: none; }
.rulouri-calc .rc-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  border: 1.5px solid var(--border);
  animation: rc-photoIn .25s ease;
}
@keyframes rc-photoIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.rulouri-calc .rc-photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.rulouri-calc .rc-photo-thumb-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  transition: background .15s;
}
.rulouri-calc .rc-photo-thumb-del:hover { background: #dc2626; }
.rulouri-calc .rc-photo-status {
  font-size: 0.82rem;
  color: var(--sub);
  margin-bottom: 12px;
  min-height: 18px;
}
.rulouri-calc .rc-photo-status.rc-err { color: #dc2626; }
.rulouri-calc .rc-photo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rulouri-calc .rc-photo-buttons.rc-photos-full {
  grid-template-columns: 1fr;
}
.rulouri-calc .rc-photo-buttons.rc-photos-full .rc-btn-photo-add { display: none; }
.rulouri-calc .rc-btn-photo-add,
.rulouri-calc .rc-btn-photo-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.rulouri-calc .rc-btn-photo-add {
  background: #f5f5f5;
  color: var(--sub);
  border: 2px solid var(--border);
}
.rulouri-calc .rc-btn-photo-add:hover  { background: #eaeaea; border-color: var(--sub); color: var(--text); }
.rulouri-calc .rc-btn-photo-add:active { transform: scale(0.97); }
.rulouri-calc .rc-btn-photo-skip {
  background: var(--green);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.35);
  animation: rc-pulse 2.4s ease-in-out infinite;
}
.rulouri-calc .rc-btn-photo-skip:hover  { background: var(--green-dk); box-shadow: 0 6px 18px rgba(29, 185, 84, 0.5); transform: translateY(-1px); }
.rulouri-calc .rc-btn-photo-skip:active { transform: scale(0.97); animation: none; }

/* ── Recap (PASUL 6) ── */
.rulouri-calc .rc-recap {
  background: var(--panel);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.rulouri-calc .rc-recap-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #e7eaf0;
}
.rulouri-calc .rc-recap-row:last-child { border-bottom: none; }
.rulouri-calc .rc-recap-key {
  font-weight: 700;
  color: var(--sub);
  white-space: nowrap;
}
.rulouri-calc .rc-recap-val {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* ── GDPR ── */
.rulouri-calc .rc-gdpr {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sub);
  transition: border-color .15s, background .15s;
  user-select: none;
  margin-bottom: 12px;
}
.rulouri-calc .rc-gdpr:hover { border-color: var(--blue); background: #eef2ff; }
.rulouri-calc .rc-gdpr:has(.rc-gdpr-chk:checked) {
  border-color: var(--blue);
  background: #eef2ff;
  color: var(--text);
}
.rulouri-calc .rc-gdpr.rc-err { border-color: #dc2626; background: #fff5f5; }
.rulouri-calc .rc-gdpr-chk {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  background: #fff;
  position: relative;
  transition: background .15s, border-color .15s;
}
.rulouri-calc .rc-gdpr-chk:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.rulouri-calc .rc-gdpr-chk:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 6px;
  width: 7px; height: 11px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── Buttons (Next, Submit, WA, Back) — green CTA ── */
.rulouri-calc .rc-next,
.rulouri-calc .rc-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 1.28rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  font-family: inherit;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.35);
  transition: background .15s, transform .1s, box-shadow .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
  animation: rc-pulse 2.4s ease-in-out infinite;
}
@keyframes rc-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(29, 185, 84, 0.35); }
  50%      { box-shadow: 0 4px 22px rgba(29, 185, 84, 0.55); }
}
.rulouri-calc .rc-next:hover,
.rulouri-calc .rc-submit:hover {
  background: var(--green-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 185, 84, 0.5);
}
.rulouri-calc .rc-next:active,
.rulouri-calc .rc-submit:active { transform: scale(0.98); animation: none; }
.rulouri-calc .rc-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  animation: none;
  box-shadow: none;
}

.rulouri-calc .rc-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: #6b7280;
  border: 1.5px solid #dde1ea;
  border-radius: var(--r);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  font-family: inherit;
  transition: background .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.rulouri-calc .rc-btn-wa svg { fill: #25d366 !important; opacity: .85; }
.rulouri-calc .rc-btn-wa:hover  { background: #f2fbf5; color: #1f9851; border-color: #b7e4c7; }
.rulouri-calc .rc-btn-wa:hover svg { fill: #25d366 !important; opacity: 1; }
.rulouri-calc .rc-btn-wa:focus, .rulouri-calc .rc-btn-wa:active { background: transparent; color: #6b7280; }
.rulouri-calc .rc-btn-wa:active { transform: scale(0.98); }

/* ── Măsurători gratuite ── */
.rulouri-calc .rc-free {
  color: var(--green);
  font-weight: 800;
  display: inline-block;
  margin-top: 4px;
}

.rulouri-calc .rc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0 0;
  font-family: inherit;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.rulouri-calc .rc-back:hover { color: var(--blue); }

/* ── Validation errors ── */
.rulouri-calc .rc-fi.rc-err { border-color: var(--orange) !important; }
.rulouri-calc .rc-fi.rc-err + label { color: var(--orange) !important; }
.rulouri-calc .rc-dim-f input.rc-err { color: var(--orange); }

/* ── Success animation ── */
.rulouri-calc .rc-step-success { text-align: center; padding: 20px 0; }
.rulouri-calc .rc-success-anim {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  animation: rc-successPop .45s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes rc-successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.rulouri-calc .rc-step-success .rc-q { color: var(--green); }
.rulouri-calc .rc-step-success .rc-hint {
  font-size: 0.95rem;
  color: var(--text);
  max-width: 380px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .rulouri-calc {
    padding: 16px 16px 14px;
    border-radius: 10px;
  }
  .rulouri-calc .rc-q          { font-size: 1.18rem; }
  .rulouri-calc .rc-hint       { font-size: 0.84rem; margin-bottom: 18px; }
  .rulouri-calc .rc-swatches   { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rulouri-calc .rc-card       { padding: 9px 11px; gap: 9px; }
  .rulouri-calc .rc-card-icon  { width: 32px; height: 32px; }
  .rulouri-calc .rc-card-title { font-size: 0.95rem; }
  .rulouri-calc .rc-card-sub   { font-size: 0.75rem; }
  .rulouri-calc .rc-card-badge { font-size: 0.55rem; padding: 2px 6px; }
  .rulouri-calc .rc-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .rulouri-calc .rc-photo-buttons { grid-template-columns: 1fr; }
  .rulouri-calc .rc-dim-lbl    { padding: 0 10px; font-size: 0.6rem; }
  .rulouri-calc .rc-dim-f      { padding: 8px 10px; }
  .rulouri-calc .rc-dim-del    { width: 34px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .rulouri-calc * { animation-duration: 0.01s !important; transition-duration: 0.05s !important; }
}

/* ── Hidden input source ── */
.rulouri-calc .rc-fi-sursa { display: none; }

/* ── Paletar: link + popup (adaugat 10 sep 2026) ── */
.rulouri-calc .rc-paletar-wrap { display: flex; justify-content: center; margin-top: 14px; }
.rulouri-calc .rc-paletar-open {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  background: none; border: 0; border-radius: 999px;
  font: inherit; font-size: 0.9rem; font-weight: 600; color: #4b5262;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  transition: color .15s, background-color .15s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rulouri-calc .rc-paletar-open:hover, .rulouri-calc .rc-paletar-open:focus-visible { color: #ff6602; background: rgba(0,0,0,.045); }
.rulouri-calc .rc-paletar-open svg { width: 18px; height: 18px; flex: none; }

.rc-paletar-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(14,16,20,.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s ease;
}
.rc-paletar-modal.rc-open { display: flex; opacity: 1; }
.rc-paletar-panel {
  width: 100%; max-width: 880px; max-height: 88vh;
  display: flex; flex-direction: column; background: #fff;
  border-radius: 26px;
  overflow: hidden; transform: translateY(14px) scale(.985); transition: transform .2s ease;
}
.rc-paletar-modal.rc-open .rc-paletar-panel { transform: none; }
.rc-paletar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid #ececf1; }
.rc-paletar-head h4 { margin: 0; font-size: 1.08rem; font-weight: 800; color: #12161d; line-height: 1.25; }
.rc-paletar-head p { margin: 4px 0 0; font-size: .8rem; color: #8a93a6; line-height: 1.4; }
.rc-paletar-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f2f6; color: #12161d; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.rc-paletar-x:hover { background: #e3e5ec; }
.rc-paletar-body { padding: 18px 20px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rc-paletar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rc-paletar-item { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; text-align: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rc-paletar-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 26px; overflow: hidden; border: 3px solid transparent; transition: border-color .15s, transform .15s; }
.rc-paletar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-paletar-item:hover .rc-paletar-thumb { transform: translateY(-2px); }
.rc-paletar-item.on .rc-paletar-thumb { border-color: #ff6602; }
.rc-paletar-nm { display: block; margin-top: 9px; font-size: .82rem; font-weight: 600; color: #12161d; }
@media (hover: none) { .rc-paletar-item:hover .rc-paletar-thumb { transform: none; } }

/* paletar - mobil */
@media (max-width: 640px) {
  .rc-paletar-modal { padding: 0; align-items: flex-end; }
  .rc-paletar-panel { max-width: none; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .rc-paletar-head { padding: 16px 16px 12px; position: sticky; top: 0; background: #fff; z-index: 2; }
  .rc-paletar-head h4 { font-size: 1rem; }
  .rc-paletar-head p { font-size: .75rem; }
  .rc-paletar-body { padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
  .rc-paletar-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .rc-paletar-thumb { border-radius: 20px; border-width: 2px; }
  .rc-paletar-nm { margin-top: 7px; font-size: .74rem; }
  .rulouri-calc .rc-sw { border-radius: 20px; }
  .rulouri-calc .rc-paletar-open { font-size: .86rem; padding: 10px 12px; }
}
@media (max-width: 360px) {
  .rc-paletar-grid { grid-template-columns: repeat(2, 1fr); }
}
body.rc-paletar-lock { overflow: hidden; }
/* ── Paletar: vizualizare marita (zoom) ── */
.rc-paletar-zoom { display: none; }
.rc-paletar-panel.rc-zoom-on .rc-paletar-grid { display: none; }
.rc-paletar-panel.rc-zoom-on .rc-paletar-zoom { display: block; }
.rc-paletar-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 10px 8px 0; margin-bottom: 10px;
  font: inherit; font-size: .88rem; font-weight: 600; color: #4b5262;
  cursor: pointer; min-height: 44px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rc-paletar-back:hover { color: #ff6602; }
.rc-paletar-back svg { width: 16px; height: 16px; flex: none; }
.rc-paletar-big {
  width: 100%; border-radius: 18px; overflow: hidden; background: #f1f2f6;
  border: 1px solid #e6e8ef; cursor: zoom-in; position: relative;
  -webkit-overflow-scrolling: touch;
}
.rc-paletar-big img { display: block; width: 100%; height: auto; }
.rc-paletar-big.rc-zoomed { overflow-x: auto; cursor: zoom-out; }
.rc-paletar-big.rc-zoomed img { width: auto; max-width: none; height: 340px; }
.rc-paletar-zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.rc-paletar-zoom-nm { font-size: 1.14rem; font-weight: 800; color: #12161d; }
.rc-paletar-zoom-hint { font-size: .78rem; color: #8a93a6; margin-top: 3px; }
.rc-paletar-pick {
  border: 0; border-radius: 999px; background: #ff6602; color: #fff;
  font: inherit; font-size: .92rem; font-weight: 700; padding: 13px 22px;
  cursor: pointer; min-height: 46px; transition: background-color .15s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rc-paletar-pick:hover { background: #e05400; }
@media (max-width: 640px) {
  .rc-paletar-big { border-radius: 14px; }
  .rc-paletar-big.rc-zoomed img { height: 240px; }
  .rc-paletar-zoom-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .rc-paletar-zoom-nm { font-size: 1.05rem; }
  .rc-paletar-pick { width: 100%; }
}
/* ── anti-roz: tema pune button:hover/:focus pe #cc3366 (reset.css) ── */
.rc-paletar-modal button,
.rc-paletar-modal button:hover,
.rc-paletar-modal button:focus,
.rc-paletar-modal button:active,
.rc-paletar-modal button:focus-visible,
.rulouri-calc .rc-paletar-open,
.rulouri-calc .rc-paletar-open:hover,
.rulouri-calc .rc-paletar-open:focus,
.rulouri-calc .rc-paletar-open:active,
.rulouri-calc .rc-paletar-open:focus-visible { outline: none; box-shadow: none; }

.rc-paletar-modal .rc-paletar-item,
.rc-paletar-modal .rc-paletar-item:hover,
.rc-paletar-modal .rc-paletar-item:focus,
.rc-paletar-modal .rc-paletar-item:active,
.rc-paletar-modal .rc-paletar-item:focus-visible,
.rc-paletar-modal .rc-paletar-back,
.rc-paletar-modal .rc-paletar-back:hover,
.rc-paletar-modal .rc-paletar-back:focus,
.rc-paletar-modal .rc-paletar-back:active,
.rc-paletar-modal .rc-paletar-big,
.rc-paletar-modal .rc-paletar-big:hover { background-color: transparent; }
.rc-paletar-modal .rc-paletar-big { background-color: #f1f2f6; }

.rc-paletar-modal .rc-paletar-x,
.rc-paletar-modal .rc-paletar-x:focus,
.rc-paletar-modal .rc-paletar-x:active { background-color: #f1f2f6; }
.rc-paletar-modal .rc-paletar-x:hover { background-color: #e3e5ec; }

.rc-paletar-modal .rc-paletar-pick,
.rc-paletar-modal .rc-paletar-pick:focus,
.rc-paletar-modal .rc-paletar-pick:active { background-color: #ff6602; color: #fff; }
.rc-paletar-modal .rc-paletar-pick:hover { background-color: #e05400; color: #fff; }

.rulouri-calc .rc-paletar-open,
.rulouri-calc .rc-paletar-open:focus,
.rulouri-calc .rc-paletar-open:active { background-color: transparent; color: #4b5262; }
.rulouri-calc .rc-paletar-open:hover,
.rulouri-calc .rc-paletar-open:focus-visible { background-color: rgba(0,0,0,.045); color: #ff6602; }

/* focus vizibil pentru tastatura - portocaliu, nu roz */
.rc-paletar-modal button:focus-visible,
.rulouri-calc .rc-paletar-open:focus-visible { outline: 2px solid #ff6602; outline-offset: 2px; }
.rc-paletar-modal .rc-paletar-item:focus-visible { outline: none; }
.rc-paletar-modal .rc-paletar-item:focus-visible .rc-paletar-thumb { border-color: #ff6602; }
.rc-paletar-panel:focus, .rc-paletar-panel:focus-visible { outline: none; }
/* ── paletar mare si usor de folosit (buton inapoi evident) ── */
.rc-paletar-modal .rc-paletar-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: auto; margin: 0 0 16px; padding: 13px 20px; min-height: 50px;
  font-size: 1rem; font-weight: 700; color: #12161d;
  border: 1.5px solid #dde1ea; border-radius: 14px;
}
.rc-paletar-modal .rc-paletar-back,
.rc-paletar-modal .rc-paletar-back:focus,
.rc-paletar-modal .rc-paletar-back:active { background-color: #f5f6f9; }
.rc-paletar-modal .rc-paletar-back:hover { background-color: #ececf1; color: #ff6602; }
.rc-paletar-modal .rc-paletar-back svg { width: 20px; height: 20px; }

/* ── mobil: totul mai mare si mai usor de apasat ── */
@media (max-width: 640px) {
  .rc-paletar-modal .rc-paletar-back {
    display: flex; width: 100%; min-height: 60px;
    font-size: 1.12rem; padding: 16px 18px; margin-bottom: 18px; border-radius: 16px;
  }
  .rc-paletar-modal .rc-paletar-back svg { width: 24px; height: 24px; }
  .rc-paletar-head { padding: 18px 16px 14px; }
  .rc-paletar-head h4 { font-size: 1.22rem; }
  .rc-paletar-head p { font-size: .86rem; }
  .rc-paletar-x { width: 48px; height: 48px; font-size: 28px; }
  .rc-paletar-nm { font-size: .92rem; margin-top: 8px; }
  .rc-paletar-zoom-nm { font-size: 1.3rem; }
  .rc-paletar-zoom-hint { font-size: .9rem; margin-top: 5px; }
  .rc-paletar-modal .rc-paletar-pick { font-size: 1.08rem; min-height: 58px; padding: 16px 22px; border-radius: 16px; }
  .rc-paletar-grid { gap: 14px; }
  .rulouri-calc .rc-paletar-open { font-size: 1rem; min-height: 52px; padding: 13px 18px; }
  .rulouri-calc .rc-paletar-open svg { width: 21px; height: 21px; }
}
@media (max-width: 380px) {
  .rc-paletar-modal .rc-paletar-back { font-size: 1.05rem; min-height: 56px; }
  .rc-paletar-head h4 { font-size: 1.12rem; }
}
/* ── buton Inapoi al calculatorului, mare si evident (nu ating display - e comutat inline din JS) ── */
.rulouri-calc .rc-back {
  align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; padding: 12px 20px; min-height: 48px;
  font-size: 0.98rem; font-weight: 700; color: #12161d;
  border: 1.5px solid #dde1ea; border-radius: 14px;
}
.rulouri-calc .rc-back,
.rulouri-calc .rc-back:focus,
.rulouri-calc .rc-back:active { background-color: #f5f6f9; }
.rulouri-calc .rc-back:hover { background-color: #ececf1; color: #ff6602; }
.rulouri-calc .rc-back:focus-visible { outline: 2px solid #ff6602; outline-offset: 2px; }
.rulouri-calc .rc-back svg { width: 19px; height: 19px; }
@media (max-width: 640px) {
  .rulouri-calc .rc-back {
    width: 100%; min-height: 58px; font-size: 1.1rem;
    padding: 15px 18px; margin-top: 16px; border-radius: 16px;
  }
  .rulouri-calc .rc-back svg { width: 23px; height: 23px; }
}
/* ── UX: indicator de progres ── */
.rulouri-calc .rc-progress { margin-bottom: 20px; }
.rulouri-calc .rc-progress-txt { font-size: .8rem; font-weight: 700; color: #8a93a6; margin-bottom: 7px; letter-spacing: .02em; }
.rulouri-calc .rc-progress-bar { height: 3px; border-radius: 999px; background: #eceef3; overflow: hidden; }
.rulouri-calc .rc-progress-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: #1db954; transition: width .3s ease; }

/* ── UX: buton Modifica in sumar (atentie: tema face butoanele roz pe hover) ── */
.rulouri-calc .rc-recap-row { display: flex; align-items: center; gap: 10px; }
.rulouri-calc .rc-recap-val { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rulouri-calc .rc-recap-edit {
  flex: none; border: 0; padding: 0; width: 30px; height: 30px; min-height: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #9aa1b0; cursor: pointer; border-radius: 8px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rulouri-calc .rc-recap-edit svg { width: 15px; height: 15px; }
.rulouri-calc .rc-recap-edit,
.rulouri-calc .rc-recap-edit:focus,
.rulouri-calc .rc-recap-edit:active { background-color: transparent; }
.rulouri-calc .rc-recap-edit:hover { background-color: rgba(0,0,0,.06); color: #ff6602; }
.rulouri-calc .rc-recap-edit:focus-visible { outline: 2px solid #ff6602; outline-offset: 1px; }

/* ── UX: dovada sociala (cifrele proprii de pe pagina: Google 5,0 / 60 recenzii / +10 ani) ── */
.rulouri-calc .rc-proof {
  display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap;
  margin: 16px 0 0; font-size: .85rem; font-weight: 600; color: #4b5262; text-align: center;
}
.rulouri-calc .rc-proof-star { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }

/* ── UX: pe mobil WhatsApp primul, apoi Trimite ── */
@media (max-width: 640px) {
  .rulouri-calc .rc-step-active[data-step="5"] { display: flex; flex-direction: column; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-q       { order: 1; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-hint    { order: 2; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-recap   { order: 3; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-proof   { order: 9; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-gdpr    { order: 5; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-submit  { order: 6; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-btn-wa  { order: 7; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-err-msg { order: 8; }
  .rulouri-calc .rc-step-active[data-step="5"] > .rc-fi-sursa{ order: 9; }
  .rulouri-calc .rc-progress-txt { font-size: .88rem; }
  .rulouri-calc .rc-recap-edit { width: 40px; height: 40px; }
  .rulouri-calc .rc-recap-edit svg { width: 17px; height: 17px; }
  .rulouri-calc .rc-proof { font-size: .9rem; }
}
/* ── mod focus pe pasul 2: estompeaza pagina din jur, optiunile ies in fata ── */
.rulouri-calc.rc-focus-mode { position: relative; z-index: 20; }
.rulouri-calc.rc-focus-mode::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: rgba(250, 250, 252, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: rcFocusIn .3s ease;
}
@keyframes rcFocusIn { from { opacity: 0; } to { opacity: 1; } }
.rulouri-calc.rc-focus-mode .rc-card { box-shadow: 0 6px 22px rgba(12, 67, 189, .10); }
@media (prefers-reduced-motion: reduce) { .rulouri-calc.rc-focus-mode::before { animation: none; } }
/* mini-poza culorii alese in sumar */
.rulouri-calc .rc-recap-swatch { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 8px; display: inline-block; }