/* Wrapper */
.crc-car-wizard-wrapper {
  margin: 3rem 0;
  font-family: inherit;
}

.crc-car-wizard {
  border-radius: 18px;
  padding: 1.75rem 1.75rem 1.5rem;
  background: #050505;          /* deep black to match site */
  border: 1px solid #262626;    /* subtle border */
  color: #ffffff;
}

/* Steps header */

.crc-steps-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.crc-step-item {
  flex: 1 1 100%;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.crc-step-item.is-active {
  background: #ffd33b;          /* SoloCar yellow */
  border-color: #ffd33b;
  color: #111111;
  font-weight: 600;
}

.crc-step-item.is-done {
  background: transparent;
  border-color: #2ecc71;
  color: #2ecc71;
}

/* Content */

.crc-step-content {
  margin-bottom: 1.25rem;
}

.crc-step-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* Cards */

.crc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.crc-card {
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: #111111;
  cursor: pointer;
  text-align: center;
  font-size: 0.96rem;
  transition: all 0.18s ease;
  color: #f5f5f5;
}

.crc-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  border-color: #ffd33b;
}

.crc-card.is-selected {
  border-color: #ffd33b;
  box-shadow: 0 0 0 1px rgba(255, 211, 59, 0.6);
  background: #151515;
}

/* Cars grid */

.crc-car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.crc-car-card {
  background: #101010;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #262626;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7);
}

.crc-car-image img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* On very dark backgrounds, add a subtle gradient overlay if needed */
.crc-car-image {
  position: relative;
  overflow: hidden;
}

.crc-car-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.crc-car-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffffff;
}

/* Meta */

.crc-car-meta {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0.6rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.crc-car-meta li {
  white-space: nowrap;
}

.crc-meta-item{
  display:flex;
  align-items:center;
  gap:0.35rem;
}

.crc-meta-icon{
  display:inline-flex;
  width:16px;
  height:16px;
  opacity:0.9;
}

.crc-meta-icon svg{
  width:16px;
  height:16px;
  display:block;
}

.crc-meta-label{
  color: rgba(255, 255, 255, 0.75);
}

.crc-meta-sep{
  opacity:0.6;
}

.crc-meta-value{
  color: rgba(255, 255, 255, 0.9);
  font-weight:500;
}

/* Price & days */

.crc-car-price-wrap {
  margin-top: auto;
  border-top: 1px dashed #333333;
  padding-top: 0.6rem;
}

.crc-price-line {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: #ffd33b;
}

.crc-price-value {
  font-size: 1.15rem;
}

.crc-price-suffix {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.crc-rent-controls {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
}

.crc-days-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.crc-days-input {
  width: 70px;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #333333;
  font-size: 0.85rem;
  background: #050505;
  color: #ffffff;
}

.crc-days-input:focus {
  outline: none;
  border-color: #ffd33b;
  box-shadow: 0 0 0 1px rgba(255, 211, 59, 0.4);
}

.crc-total-line {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

/* Buttons */

.crc-btn {
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-decoration: none;
  white-space: nowrap;
}

.crc-btn-primary {
  background: #ffd33b;
  color: #111111;
  font-weight: 600;
}

.crc-btn-primary:hover {
  background: #f1c21b;
}

.crc-btn-secondary {
  background: transparent;
  border: 1px solid #444444;
  color: rgba(255, 255, 255, 0.85);
}

.crc-btn-secondary:hover {
  border-color: #ffd33b;
  color: #ffd33b;
}

.crc-btn-link {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.crc-btn-link:hover {
  color: #ffd33b;
}

/* Actions bar */

.crc-actions-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Misc */

.crc-empty,
.crc-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.crc-car-more {
  margin-top: 0.7rem;
}

/* Responsive */

@media (min-width: 640px) {
  .crc-step-item {
    flex: 1 1 calc(25% - 0.5rem);
  }
}

/* Selected car highlight */
.crc-car-card.is-selected {
  border-color: #ffd33b;
  box-shadow: 0 0 0 2px rgba(255, 211, 59, 0.7), 0 16px 35px rgba(0, 0, 0, 0.85);
}

/* Image slider navigation */
.crc-car-image {
  position: relative;
}

.crc-img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crc-img-prev {
  left: 10px;
}

.crc-img-next {
  right: 10px;
}

.crc-img-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Summary step layout */
.crc-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.crc-summary-box,
.crc-summary-form {
  background: #111111;
  border-radius: 18px;
  padding: 20px 24px;
  flex: 1 1 280px;
  border: 1px solid #333333;
}

.crc-summary-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.crc-summary-list li {
  margin-bottom: 6px;
  font-size: 14px;
}

.crc-summary-total {
  margin-top: 12px;
  font-weight: 600;
  color: #ffd33b;
}

.crc-field {
  margin-bottom: 12px;
}

.crc-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.crc-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #444444;
  background: #050505;
  color: #ffffff;
  font-size: 14px;
}

.crc-input:focus {
  outline: none;
  border-color: #ffd33b;
  box-shadow: 0 0 0 1px rgba(255, 211, 59, 0.8);
}

.crc-phone-row {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 8px;
}

.crc-summary-send {
  margin-top: 8px;
  width: 100%;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

/* Inline validation (replace browser alerts) */
.crc-inline-error {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 77, 77, 0.5);
  background: rgba(255, 77, 77, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.crc-inline-error strong {
  display: block;
  margin-bottom: 6px;
}

.crc-inline-error ul {
  margin: 0;
  padding-left: 18px;
}

.crc-inline-error li {
  margin: 2px 0;
}

.crc-invalid {
  border-color: rgba(255, 77, 77, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.12);
}

/* Improve date input appearance */
.crc-date-input {
  font-size: 14px;
  padding: 10px 12px;
}

/* =============================
   Enhanced calendar (jQuery UI)
   - Dark theme to match wizard UI
   - Larger tap targets
   ============================= */
.ui-datepicker,
#ui-datepicker-div,
.crc-datepicker {
  background-color: #0f0f0f !important;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  z-index: 999999 !important;
  position: absolute !important;
}

/* Some themes add borders to all tables/td. Reset inside the datepicker only. */
.ui-datepicker table,
.ui-datepicker th,
.ui-datepicker td,
.ui-datepicker table * {
  border: 0 !important;
}

/* Strong reset for aggressive themes (gridlines/outlines) */
.ui-datepicker, .ui-datepicker * {
  box-shadow: none !important;
  outline: 0 !important;
}

.ui-datepicker .ui-datepicker-calendar td,
.ui-datepicker .ui-datepicker-calendar th {
  border: 0 !important;
}

.ui-datepicker table {
  margin: 0 !important;
}

.ui-datepicker .ui-datepicker-header {
  background: transparent;
  border: 0;
  padding: 6px 6px 10px;
}

.ui-datepicker .ui-datepicker-title {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 14px;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  top: 6px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: rgba(255, 255, 255, 0.10);
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  filter: invert(1);
  opacity: 0.9;
}

.ui-datepicker table {
  width: 100%;
  border-collapse: collapse;
}

.ui-datepicker th {
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 11px;
}

.ui-datepicker td {
  padding: 2px;
}

.ui-datepicker td a,
.ui-datepicker td span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border: 1px solid transparent;
}

.ui-datepicker td a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
}

.ui-datepicker .ui-state-disabled span {
  color: rgba(255, 255, 255, 0.25);
}

.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-active:hover {
  background: #f4c542;
  color: #111;
  font-weight: 800;
}

.ui-datepicker .ui-state-highlight {
  border-color: rgba(244, 197, 66, 0.45);
  background: rgba(244, 197, 66, 0.12);
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 6px 8px;
  margin: 0 2px;
}

/* Make the popup align better under our dark inputs */
.ui-datepicker.ui-widget {
  font-family: inherit;
}

/* Dates step layout */
.crc-step-content .crc-dates-wrapper {
  max-width: none;
  width: 100%;
  background: #111111;
  border-radius: 18px;
  border: 1px solid #262626;
  padding: 18px 20px 16px;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.crc-step-content .crc-date-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.crc-step-content .crc-date-group {
  display: flex;
  flex-direction: column;
}

.crc-step-content .crc-days-summary {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* Align "Step 5: Extras" button nicely under the card */
.crc-step-content > .crc-btn.crc-btn-primary {
  margin-top: 0.35rem;
}

/* On wider screens, show From / To in two columns */
@media (min-width: 640px) {
  .crc-step-content .crc-dates-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-end;
  }
}


/* Locations step */
.crc-locations-wrapper {
  max-width: none;
  width: 100%;
  background: #111111;
  border-radius: 18px;
  border: 1px solid #262626;
  padding: 18px 20px 16px;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.crc-location-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.crc-location-group .crc-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #333333;
  background: #050505;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.crc-locations-summary {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* On wider screens, show pickup / drop-off in two columns */
@media (min-width: 640px) {
  .crc-locations-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-end;
  }
}
/* Tag cards with icons (type, brand, model) */
.crc-card .crc-tag-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.crc-card .crc-tag-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: #000000;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crc-card .crc-tag-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.crc-card .crc-tag-label {
  font-size: 0.95rem;
  font-weight: 500;
}


/* Icons */
.crc-addon-icon{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  margin: 0 10px 0 8px;
  border: 1px solid rgba(255,255,255,0.15);
  flex: 0 0 auto;
}

.crc-location-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.crc-location-icon{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  flex: 0 0 auto;
}


/* Extra add-on icon */
.crc-extra-icon{
  width: 90px;
  height: 90px;
  max-width: 100px;
  max-height: 100px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.15);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

/* Step 6: Extras UI (grid cards; UI-only) */
.crc-extras-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.crc-extra-row{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  position: relative;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.crc-extra-row:hover{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.18);transform:translateY(-1px);}
.crc-extra-row input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: currentColor;
  position: absolute;
  top: 14px;
  left: 14px;
}

/* Price badge (top-right) */
.crc-extra-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  line-height: 1;
}
.crc-extra-text{display:flex;flex-direction:column;gap:4px;min-width:0;width:100%;}
.crc-extra-name{font-weight:700;letter-spacing:.2px;}
.crc-extra-meta{opacity:.85;font-size:.92rem;}

/* Step 8: Extras chips in booking summary (cap icon size to 100x100) */
.crc-summary-extras{display:flex;flex-wrap:wrap;gap:8px;margin-left:6px;}
.crc-summary-extra-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid rgba(255,255,255,0.12);border-radius:999px;background:rgba(255,255,255,0.04);}
.crc-summary-extra-chip img{
  width: 22px;
  height: 22px;
  max-width: 100px;
  max-height: 100px;
  object-fit: cover;
  border-radius: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.12);
}
.crc-summary-extra-chip span{white-space:nowrap;}

/* Safety net: if any add-on icons appear outside chips, cap size */
.crc-booking-summary img.crc-extra-icon,
.crc-booking-summary img.crc-addon-icon,
.crc-booking-summary img{
  max-width: 100px;
  max-height: 100px;
}

/* ── Search widget [car_rental_search] ────────────────────────────────── */
.crc-search-widget{box-sizing:border-box;width:100%;padding:20px 24px;background:#1a1a2e;border-radius:12px;margin-bottom:24px;}
.crc-search-form{width:100%;}
.crc-search-fields{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;}
.crc-search-field{display:flex;flex-direction:column;gap:6px;flex:1 1 160px;min-width:140px;}
.crc-search-field label{font-size:13px;font-weight:600;color:rgba(255,255,255,0.7);text-transform:uppercase;letter-spacing:.5px;}
.crc-search-field select,
.crc-search-field input[type="date"]{width:100%;padding:10px 12px;border-radius:8px;border:1px solid rgba(255,255,255,0.15);background:rgba(255,255,255,0.07);color:#fff;font-size:14px;appearance:none;-webkit-appearance:none;cursor:pointer;outline:none;transition:border-color .2s;}
.crc-search-field select:focus,
.crc-search-field input[type="date"]:focus{border-color:#d4a852;}
.crc-search-field select option{background:#1a1a2e;color:#fff;}
.crc-search-field--btn{flex:0 0 auto;min-width:120px;}
.crc-search-btn{width:100%;padding:11px 20px;border:none;border-radius:8px;background:#d4a852;color:#1a1a2e;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s,transform .1s;}
.crc-search-btn:hover{background:#c49440;}
.crc-search-btn:active{transform:scale(.97);}
@media(max-width:600px){
  .crc-search-fields{flex-direction:column;}
  .crc-search-field{flex:1 1 100%;}
  .crc-search-field--btn{flex:1 1 100%;}
}
