/* =========================================
   SafeDrive Cards – Bootstrap companion CSS
   ========================================= */

:root {
  --orange-primary: #f97316;
  --orange-dark: #ea6c0a;
  --orange-light: #fff7ed;
  --orange-icon-bg: #fde8d4;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --text-warn: #f97316;
  --border-radius: 1.25rem;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --navy: #1e2a4a;
  --accent: rgb(34, 197, 94);
}

/* ── Page wrapper ─────────────────────────── */
.page-wrapper {
  /*background: #f5f6fa;*/
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* ── Grid container ───────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 700px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Base card ────────────────────────────── */
.sd-card {
  border-radius: var(--border-radius);
  padding: 2rem 1rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

/* ── Standard card ────────────────────────── */
.sd-card--standard {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

/* ── Premium card ─────────────────────────── */
.sd-card--premium {
  background: linear-gradient(145deg, #fb923c 0%, #f97316 55%, #ea6c0a 100%);
  color: #fff;
  padding-top: 3.5rem; /* room for badge */
}

/* ── Smart choice badge ───────────────────── */
.sd-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 0 0 0.75rem 0.75rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Card header (icon + titles) ──────────── */
.sd-card__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.sd-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sd-icon-wrap--orange {
  background: var(--orange-icon-bg);
  color: var(--orange-primary);
}

.sd-icon-wrap--white {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.sd-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.2;
}

.sd-card--premium .sd-card__title {
  color: #fff;
}

.sd-card__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.sd-card--premium .sd-card__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Price block ──────────────────────────── */
.sd-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.sd-price__main {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.sd-card--premium .sd-price__main {
  color: #fff;
}

.sd-price__suffix {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.sd-card--premium .sd-price__suffix {
  color: rgba(255, 255, 255, 0.75);
}

.sd-price__note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.25rem;
}

/* ── Features list ────────────────────────── */
.sd-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sd-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* icon column – fixed width so text aligns */
.sd-feature__icon {
  width: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.selected_row_marked {
  background: rgb(249, 115, 22);
  background: linear-gradient(
    0deg,
    rgba(249, 115, 22, 0.75) 30%,
    rgba(251, 146, 60, 0.5) 100%
  );
}

/* Standard card icons */
.sd-card--standard .sd-feature--check .sd-feature__icon {
  color: var(--orange-primary);
}
.sd-card--standard .sd-feature--warn .sd-feature__icon {
  color: var(--orange-primary);
}
.sd-card--standard .sd-feature--check span {
  color: var(--text-dark);
}
.sd-card--standard .sd-feature--warn span {
  color: var(--text-warn);
}

/* Premium card icons */
.sd-card--premium .sd-feature--check .sd-feature__icon {
  color: rgba(255, 255, 255, 0.85);
}
.sd-card--premium .sd-feature--star .sd-feature__icon {
  color: #fff;
}
.sd-card--premium .sd-feature span {
  color: rgba(255, 255, 255, 0.9);
}
.sd-card--premium .sd-feature--star span {
  color: #fff;
}


/* new */
.wizard-step.completed .wizard-step-circle{
    background: var(--accent);
}
.wizard-step.completed .wizard-step-label{
   /* color: var(--accent);*/
}

.wizard-step.active .wizard-step-circle {
    background: var(--orange-primary);
    border-color: var(--orange-dark);
    color: #fff;
}
.wizard-step.active .wizard-step-label {
  color: var(--orange-primary);
}

.btn.btn-primary, .btn.btn-outline-primary{
    background: var(--orange-primary);
    border-color: var(--orange-dark);
    color: #fff;
}
.btn.btn-primary:hover, .btn.btn-outline-primary:hover {
    background: var(--orange-dark) !important;
   /* box-shadow: 0 2px 4px rgba(200, 50, 50, 0.4);*/
}
.form-check-input{
  width: 30px;
  height: 17px;
}
.form-check-input:checked{
  background-color: var(--orange-primary) !important;
}

.price-days {
  color: var(--orange-primary) !important;
}
.price-note{
  color: var(--orange-dark) !important;
}

#voucherToggle, #notesToggle, #term_conditions ~ label a {
  color: var(--accent) !important;
}

.btn-rezerva-badge{
  background-color: var(--orange-primary) !important;
}

.preview-card {
    border-style: inset !important;
    border-color: var(--orange-dark) !important;
}

.car-card-wrapper.selected .preview-card {
    border-color: var(--accent) !important;
}


