/**
 * Insuretech RCA - Step 3 (Oferte)
 * Standalone CSS - iOS/macOS Design v3.4
 */

/* ============================================
   Variables
   ============================================ */
.offers-wrap,
.insuretech-rca-form[data-step="3"] {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-cell: #f9f9fb;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #aeaeb2;
  --border: #d2d2d7;
  --border-light: #e5e5ea;
  --accent: #007aff;
  --accent-hover: #0062cc;
  --success: #34c759;
  --success-hover: #2db84e;
  --price: #34c759;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-focus: 0 0 0 4px rgba(0,122,255,0.15);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-color-scheme: dark) {
  .offers-wrap,
  .insuretech-rca-form[data-step="3"] {
    --bg: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-card: #2c2c2e;
    --bg-cell: #3a3a3c;
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --text-muted: #636366;
    --border: #48484a;
    --border-light: #3a3a3c;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --success: #30d158;
    --success-hover: #28c44e;
    --price: #30d158;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-focus: 0 0 0 4px rgba(10,132,255,0.3);
  }
}

/* ============================================
   Container
   ============================================ */
.offers-wrap {
  display: block !important;
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#offersStatus {
  margin-top: 7px;
}

/* Step 3 header controls (Perioada / Incepe la) */
.rca-period-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rca-period-header h3 {
  flex: 1 1 240px;
  min-width: 220px;
}

.rca-period-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 1 320px;
  min-width: 260px;
  max-width: 360px;
  margin-left: auto;
}

/* Badge spacing below period header */
#savedOfferBadge {
  margin-top: 10px !important;
}

.rca-period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.rca-period-row > label {
  flex: 0 0 auto;
}

.rca-period-row > select,
.rca-period-row > input {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

/* BAAR banner */
.baar-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
  border: 1px solid #c2d5f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 8px;
}

.baar-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.baar-icon {
  font-size: 20px;
}

.baar-copy {
  flex: 1;
  min-width: 180px;
}

.baar-title {
  font-weight: 600;
  color: #1d1d1f;
  font-size: 14px;
}

.baar-subtitle {
  color: #86868b;
  font-size: 12px;
  margin-top: 2px;
}

.baar-metrics {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.baar-metric {
  text-align: center;
}

.baar-metric-label {
  font-size: 11px;
  color: #86868b;
  text-transform: uppercase;
}

.baar-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
}

.baar-metric-value.is-accent {
  color: #007aff;
}

.baar-metric-value.is-high-risk {
  color: #dc2626;
}

.baar-metric-value.is-low-risk {
  color: #16a34a;
}

.baar-procedure {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 12px;
}

.baar-procedure-main {
  margin-bottom: 6px;
}

.baar-procedure-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.baar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.baar-modal-overlay.visible {
  opacity: 1;
}

.baar-modal {
  width: min(92vw, 760px);
  max-height: 82vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  position: relative;
}

.baar-modal h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: #111827;
}

.baar-modal p {
  margin: 0 0 10px;
  color: #374151;
  line-height: 1.55;
}

.baar-modal a {
  color: #1d4ed8;
}

.baar-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

/* ============================================
   Header (Desktop)
   ============================================ */
.rca-head {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 8px 44px 8px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
  margin-bottom: 8px;
}

.rca-head .h-brand { text-align: left; }
.rca-head .h-std   { text-align: left; }
.rca-head .h-ds    { text-align: left; }
.rca-head .h-cta   { text-align: right; }

/* ============================================
   Offer Row (Card)
   ============================================ */
.rca-line {
  display: grid !important;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) max-content 44px;
  align-items: start;
  gap: 12px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.1s, border-color 0.2s;
  margin-bottom: 12px;
  animation: none;
}

.rca-line.is-selected-rca {
  background: #ecfdf3;
  border-color: #86efac;
}

.rca-badge-recommended {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.rca-inline-info-btn {
  position: static !important;
  width: 44px;
  height: 44px;
  min-width: 44px !important;
  border-radius: 8px;
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 0 !important;
  margin: 0 !important;
}

.rca-inline-info-btn i {
  font-size: 14px;
  line-height: 1;
}

.rca-inline-info-fallback {
  display: none;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.rca-inline-info-btn.icon-fallback i {
  display: none;
}

.rca-inline-info-btn.icon-fallback .rca-inline-info-fallback {
  display: inline-block;
}

@media (prefers-color-scheme: dark) {
  .rca-inline-info-btn {
    border-color: #93c5fd;
    background: #1e3a8a;
    color: #ffffff;
  }
}
.rca-inline-info-btn:hover {
  background: #dbeafe;
}

.rca-corner-info {
  grid-column: 5;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 44px;
  height: 44px;
  z-index: 5;
}

/* Desktop */
@media (min-width: 1101px) {
  .rca-line .rca-cta {
    justify-self: start;
    align-self: center;
    margin-top: 0;
  }

  .rca-cta {
    align-self: center;
  }

  .rca-btn-buy-mobile {
    display: none !important;
  }
}

.rca-line:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.rca-line:focus-within {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-color: var(--success);
}

/* Enter animation for progressively appended offers */
.rca-line.is-entering {
  animation: rcaOfferEnter 0.28s ease both !important;
}

@keyframes rcaOfferEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Brand (Logo + Name)
   ============================================ */
.rca-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  align-self: center;
}

.rca-brand img {
  width: 120px;
  min-width: 120px;
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  border-radius: 6px;
}

.rca-brand .brand-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Coloană: preț + Cumpara acum (desktop) */
.rca-price-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  justify-self: stretch;
}

.rca-price-col .rca-price {
  flex: 0 0 auto;
}

.rca-price-col .btn-buy-now {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
}

.rca-btn-buy-mobile {
  display: none !important;
}

/* ============================================
   Price Cells (Standard / Decontare)
   ============================================ */
.rca-price {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: stretch;
  gap: 8px;
  background: var(--bg-cell);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.rca-price:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
}

.rca-price.is-selected {
  background: rgba(0, 122, 255, 0.08);
  border-color: var(--accent);
}

.rca-price .lbl {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rca-price .val {
  margin-left: 0;
  font-weight: 700;
  font-size: 15px;
  color: #16a34a;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   Custom Radio Button
   ============================================ */
.rca-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.rca-radio.is-checked {
  border-color: var(--accent);
  background: var(--accent);
}

.rca-radio.is-checked::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.rca-radio input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rca-hidden-radio { display: none; }
/* Override global button width inside CTA */
.insuretech-rca-form .rca-cta button,
.insuretech-rca-form .rca-cta .rca-btn {
  width: auto !important;
}

.insuretech-rca-form .rca-btn-buy-mobile {
  width: 100% !important;
  max-width: 100%;
}
/* ============================================
   Action Buttons — Desktop: mini-grid 2×2
   ============================================ */
.rca-cta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  flex-shrink: 0;
  min-width: 180px;
}

.rca-cta .rca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.rca-btn:active {
  transform: scale(0.97);
}

/* Alege — full width pe ultimul rând */
.rca-cta .btn-choose-offer {
  grid-column: 1 / -1;
}

/* Info button (outline) */
.btn-info {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-info:hover {
  background: var(--bg-cell);
  border-color: var(--text-muted);
}

/* Details button */
.btn-details {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-details:hover {
  background: var(--bg-cell);
  border-color: var(--text-muted);
}

/* PID button */
.btn-pid {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.btn-pid:hover {
  background: var(--bg-cell);
  border-color: var(--text-muted);
}

/* Primary accent button */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Modal detalii ofertă — butonul e în afara .insuretech-rca-form (fără variabile CSS); culori fixe */
.rca-details-overlay .rca-details-modal .rca-btn.rca-details-download {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  background: #007aff;
  color: #ffffff !important;
  border: 1px solid #007aff;
  -webkit-font-smoothing: antialiased;
}

.rca-details-overlay .rca-details-modal .rca-btn.rca-details-download:hover {
  background: #0062cc;
  border-color: #0062cc;
  color: #ffffff !important;
}

.rca-details-overlay .rca-details-modal .rca-btn.rca-details-download:active {
  transform: scale(0.98);
}

@media (prefers-color-scheme: dark) {
  .rca-details-overlay .rca-details-modal .rca-btn.rca-details-download {
    background: #0a84ff;
    border-color: #0a84ff;
    color: #ffffff !important;
  }

  .rca-details-overlay .rca-details-modal .rca-btn.rca-details-download:hover {
    background: #409cff;
    border-color: #409cff;
    color: #ffffff !important;
  }
}

/* ★ Choose offer button — green iOS */
.btn-choose-offer {
  background: var(--success) !important;
  color: #fff !important;
  border: 1px solid var(--success) !important;
  font-weight: 600;
}

.btn-choose-offer:hover {
  background: var(--success-hover) !important;
  border-color: var(--success-hover) !important;
}

/* ============================================
   Disabled State
   ============================================ */
.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================
   No Offers State
   ============================================ */
.rca-no-offers {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 20px;
  background: #fff8f0;
  border: 1px solid #ffe0c0;
  border-radius: 12px;
}

.rca-no-offers-icon { font-size: 40px; margin-bottom: 8px; }
.rca-no-offers h4 { margin: 0 0 4px; color: var(--text); font-size: 18px; }
.rca-no-offers > p { color: var(--text-secondary); margin: 0 0 16px; font-size: 14px; }

.rca-error-list {
  text-align: left;
  max-width: 500px;
  margin: 0 auto 20px;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.06);
}

.rca-error-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.rca-error-item:last-child { border-bottom: none; }
.rca-error-bullet { color: #ff3b30; font-weight: 600; flex-shrink: 0; }
.rca-error-text small { color: var(--text-muted); }

.rca-no-offers-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.rca-btn.btn-secondary {
  background: rgba(0,0,0,0.05);
  color: var(--text);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.rca-btn.btn-secondary:hover { background: rgba(0,0,0,0.08); }

/* ============================================
   Loading
   ============================================ */
.rca-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.rca-loading p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

#lottieLoader,
#lottieLoaderStep4 {
  width: 300px;
  height: 300px;
}

/* ============================================
   Loading Skeleton
   ============================================ */
.rca-line.is-loading { pointer-events: none; }

.rca-line.is-loading .rca-brand,
.rca-line.is-loading .rca-price,
.rca-line.is-loading .rca-cta,
.rca-line.is-loading .btn-buy-now {
  background: linear-gradient(90deg, var(--bg-cell) 25%, var(--bg-secondary) 50%, var(--bg-cell) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  color: transparent;
}

/* ============================================
   Responsive — Tablet (≤1100px)
   ============================================ */
@media (max-width: 1100px) {
  .rca-head { display: none; }

  .rca-line {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    row-gap: 8px;
    /* Fără padding dreapta global: butonul info e absolut, nu îngustează coloanele */
    padding: 14px 12px 14px 14px;
  }

  .rca-line.has-inline-info .rca-brand {
    padding-right: 36px;
    box-sizing: border-box;
  }

  .rca-corner-info {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    z-index: 10 !important;
    width: 24px;
    height: 24px;
  }

  .rca-inline-info-btn {
    width: 24px;
    height: 24px;
    min-width: 24px !important;
    border-radius: 50%;
    font-size: 12px;
  }

  .rca-brand {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .rca-price-col {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rca-price {
    width: 100%;
  }

  .rca-btn-buy-desktop {
    display: none !important;
  }

  .rca-btn-buy-mobile {
    display: flex !important;
    grid-column: 1 / -1;
    margin: 2px 0 8px;
    min-height: 48px;
    font-size: 15px;
    border-radius: 10px;
  }

  .rca-cta {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: 5px;
    border-top: 0;
  }

  .rca-cta .btn-choose-offer {
    grid-column: 1 / -1;
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* ============================================
   Responsive — Mobile (≤620px)
   ============================================ */
@media (max-width: 620px) {
  .rca-period-header {
    align-items: stretch;
  }

  .rca-period-header h3 {
    min-width: 0;
    flex: 1 1 100%;
  }

  .rca-period-controls {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    flex: 1 1 100%;
  }

  .rca-period-row {
    width: 100%;
  }

  .rca-period-row > select,
  .rca-period-row > input {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
  }

  .baar-banner {
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
  }

  .baar-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .baar-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .baar-title {
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  .baar-subtitle {
    display: none;
  }

  .baar-metrics {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .baar-metric {
    min-width: 120px;
    text-align: left;
  }

  .baar-metric-label {
    font-size: 10px;
    line-height: 1.1;
  }

  .baar-metric-value {
    font-size: 14px;
    line-height: 1.15;
  }

  .baar-icon {
    display: none;
  }

  .rca-line {
    grid-template-columns: 1fr;
    padding: 5px;
  }

  .rca-line.has-inline-info .rca-brand {
    padding-right: 40px;
  }

  .rca-corner-info {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    z-index: 10 !important;
    width: 24px;
    height: 24px;
  }

  .rca-price {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .rca-price .lbl {
    font-size: 11px;
    flex: 1 1 auto;
  }

  .rca-price .val {
    font-size: 14px;
    margin-left: auto;
    text-align: right;
  }

  .rca-cta {
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    gap: 6px;
  }

  .rca-cta .rca-btn {
    padding: 10px 8px;
    font-size: 13px;
  }

  .rca-cta .btn-choose-offer {
    grid-column: 1 / -1;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .rca-inline-info-btn {
    width: 24px;
    height: 24px;
    min-width: 24px !important;
    border-radius: 50%;
  }

  .opt-map-sep {
    display: none !important;
  }

  #savedOfferBadge {
    margin-top: 10px !important;
    padding: 3px 5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rca-line.is-entering {
    animation: none !important;
  }
}

/* Modal checkout pas 1–2 (același #declOverlay ca declarațiile) */
#declOverlay .decl-modal--twostep {
  overflow: hidden;
}

#declOverlay .decl-modal-top {
  flex-shrink: 0;
  padding: 16px 0 0;
}

#declOverlay .decl-panel-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#declOverlay .decl-step-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#declOverlay .decl-step-panel.is-active {
  display: flex;
}

#declOverlay .decl-panel1-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px 12px;
  -webkit-overflow-scrolling: touch;
}

#declOverlay .decl-panel1-intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #48484a;
}

#declOverlay #declAddsMount {
  min-height: 120px;
}

#declOverlay #declAddsMount .provider-row {
  margin-bottom: 10px;
}

#declOverlay #declAddsMount .step3-adds-mini {
  text-align: left !important;
}


#declOverlay .decl-recap-block {
  background: #f9f9fb;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

#declOverlay .decl-recap-title {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

#declOverlay .decl-recap-value {
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
}

#declOverlay .decl-recap-muted {
  margin: 0;
  font-size: 13px;
  color: #86868b;
  line-height: 1.45;
}

#declOverlay .decl-recap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#declOverlay .decl-recap-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  color: #1d1d1f;
}

#declOverlay .decl-recap-list li:last-child {
  border-bottom: none;
}

#declOverlay .decl-recap-list li span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

#declOverlay .decl-panel2-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#declOverlay .decl-steps.insuretech-rca-steps {
  --step-gap: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--step-gap);
  padding: 12px 16px;
  background: #f5f5f7;
  border-radius: 12px;
  margin: 0 16px 4px;
  font-size: 14px;
  box-sizing: border-box;
}

#declOverlay .decl-steps .rca-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f7;
  color: #6e6e73;
  white-space: nowrap;
  position: relative;
}

#declOverlay .decl-steps .rca-step-chip::after {
  content: "";
  position: absolute;
  right: calc(var(--step-gap) * -1);
  top: 50%;
  width: var(--step-gap);
  height: 2px;
  background: #d2d2d7;
  transform: translateY(-50%);
}

#declOverlay .decl-steps .rca-step-chip:last-child::after {
  display: none;
}

#declOverlay .decl-steps .rca-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d2d2d7;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#declOverlay .decl-steps .rca-step-label {
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  white-space: nowrap;
}

#declOverlay .decl-steps .rca-step-chip.is-current {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.22);
}

#declOverlay .decl-steps .rca-step-chip.is-current .rca-step-num {
  background: #007aff;
}

#declOverlay .decl-steps .rca-step-chip.is-current .rca-step-label {
  color: #007aff;
}

#declOverlay .decl-steps .rca-step-chip.is-current::after,
#declOverlay .decl-steps .rca-step-chip.is-prev::after {
  background: #007aff;
}

#declOverlay .decl-steps .rca-step-chip.is-prev .rca-step-num {
  background: #007aff;
}

#declOverlay .decl-steps .rca-step-chip.is-prev .rca-step-label {
  color: #007aff;
}

/* ============================================
   Remarketing (pagină cu html.ins-rca-remarketing)
   Temele WP centrează uneori img/text în .entry-content — readucem același
   layout ca în funnel-ul standard: logo + nume asigurator, aliniate la stânga.
   ============================================ */
html.ins-rca-remarketing .offers-wrap .rca-line {
  display: grid !important;
}

html.ins-rca-remarketing .offers-wrap .rca-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  align-self: center !important;
  justify-self: start !important;
  text-align: left !important;
  gap: 12px !important;
  min-width: 0 !important;
}

html.ins-rca-remarketing .offers-wrap .rca-brand img {
  margin: 0 !important;
  margin-inline: 0 !important;
  float: none !important;
  display: block !important;
  vertical-align: middle !important;
  width: 120px !important;
  min-width: 120px !important;
  height: 36px !important;
  max-width: 120px !important;
  object-fit: contain !important;
  object-position: left center !important;
  flex-shrink: 0 !important;
}

html.ins-rca-remarketing .offers-wrap .rca-brand .brand-name {
  text-align: left !important;
  margin: 0 !important;
}