/* ═══════════════════════════════════════════════════════
   Reservation Modal — Base Styles (kept from v1)
   ═══════════════════════════════════════════════════════ */

.resa-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: Inter, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  background: var(--bricks-color-primary, #F5C800);
  color: var(--bricks-color-black, #111);
}

.resa-trigger-btn:hover {
  background: var(--bricks-color-primary-dark, #D4AD00);
}

.resa-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.resa-modal-overlay.is-open {
  display: flex;
}

.resa-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: none;
  animation: resaSlideUp 0.3s ease;
  position: relative;
}

@keyframes resaSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.resa-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid #e5e5e5;
}

.resa-vehicle-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.resa-vehicle-info {
  flex: 1;
}

.resa-vehicle-info strong {
  display: block;
  font-size: 16px;
  color: #111;
}

.resa-vehicle-info span {
  font-size: 13px;
  color: #999;
}

.resa-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: background 0.2s;
}

.resa-close:hover {
  background: #e5e5e5;
}

/* ── Stepper ─────────────────────────────────────────── */
.resa-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px 16px;
  gap: 0;
}

.resa-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 50px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: #f5f5f5;
  color: #999;
  transition: all 0.3s;
}

.resa-step.active .step-num {
  background: var(--resa-primary, #F5C800);
  color: #111;
}

.resa-step.completed .step-num {
  background: #25D366;
  color: #fff;
}

.step-label {
  font-size: 10px;
  color: #999;
  text-align: center;
}

.resa-step.active .step-label {
  color: #111;
  font-weight: 500;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e5e5e5;
  margin: 0 2px;
  margin-bottom: 18px;
  min-width: 16px;
}

/* ── Panel base ──────────────────────────────────────── */
.resa-panel {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.resa-panel h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  font-style: italic;
}

.resa-subtitle {
  font-size: 14px;
  color: #999;
  margin: 0 0 24px;
}

/* ── Location bar ────────────────────────────────────── */
.resa-location-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFF3CC;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #444;
}

.resa-location-bar strong {
  font-size: 14px;
  color: #111;
}

/* ── Calendar ────────────────────────────────────────── */
.resa-calendars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.resa-cal-label {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.resa-calendar {
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
}

.resa-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.resa-cal-nav button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.resa-cal-nav button:hover {
  background: #f0f0f0;
}

.resa-cal-nav strong {
  font-size: 14px;
  color: #111;
}

.resa-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.resa-cal-grid .day-header {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  padding: 4px 0;
}

.resa-cal-grid .day {
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
}

.resa-cal-grid .day:hover:not(.past):not(.empty):not(.busy) {
  background: #f5f5f5;
}

.resa-cal-grid .day.selected {
  background: var(--resa-primary, #F5C800);
  color: #111;
  font-weight: 600;
}

.resa-cal-grid .day.empty {
  cursor: default;
}

.resa-cal-grid .day.past {
  color: #ccc;
  cursor: not-allowed;
}

.resa-cal-grid .day.available {
  color: #111;
}

.resa-cal-grid .day.busy {
  background: #fee2e2;
  color: #dc2626;
  cursor: not-allowed;
  text-decoration: line-through;
  font-weight: 500;
}

.resa-cal-grid .day.today {
  border: 2px solid var(--resa-primary, #F5C800);
  font-weight: 700;
}

.resa-cal-grid .day.today.past {
  border-color: #ccc;
}

/* ── Calendar legend ─────────────────────────────────── */
.resa-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: #666;
  padding: 0 4px;
}

.resa-cal-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.resa-cal-legend .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.resa-cal-legend .legend-dot.available {
  background: #f5f5f5;
  border: 1px solid #ccc;
}

.resa-cal-legend .legend-dot.busy {
  background: #fee2e2;
  border: 1px solid #dc2626;
}

.resa-cal-legend .legend-dot.past {
  background: #f0f0f0;
  border: 1px solid #ddd;
}

.resa-cal-legend .legend-dot.today-indicator {
  background: #fff;
  border: 2px solid var(--resa-primary, #F5C800);
}

/* ── Time select (replaces input time) ───────────────── */
.resa-time-field {
  margin-top: 16px;
}

.resa-time-field label {
  display: block;
  font-size: 13px;
  color: var(--resa-primary, #F5C800);
  margin-bottom: 6px;
  font-weight: 500;
}

.resa-time-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 15px;
  font-family: Inter, sans-serif;
  color: #111;
  outline: none;
  box-sizing: border-box;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.resa-time-select:focus {
  border-color: var(--resa-primary, #F5C800);
}

/* ── Duration summary ────────────────────────────────── */
.resa-duration-summary {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 8px;
  border: 1px solid #e5e5e5;
}

.resa-dur-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.resa-dur-label {
  color: #666;
}

.resa-dur-value {
  font-weight: 600;
  color: #111;
}

.resa-dur-price {
  color: var(--resa-primary, #F5C800);
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════
   Panel 2 — Options & Extras
   ═══════════════════════════════════════════════════════ */

/* ── Section titles ──────────────────────────────────── */
.resa-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.resa-section-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 20px 0;
}

/* ── Radio cards (km, insurance) ─────────────────────── */
.resa-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resa-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.resa-radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.resa-radio-card:hover {
  border-color: #ccc;
}

.resa-radio-card.active {
  border-color: var(--resa-primary, #F5C800);
  background: #FFFBEB;
}

.resa-radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}

.resa-radio-card.active .resa-radio-dot {
  border-color: var(--resa-primary, #F5C800);
}

.resa-radio-card.active .resa-radio-dot::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--resa-primary, #F5C800);
}

.resa-radio-content {
  flex: 1;
  min-width: 0;
}

.resa-radio-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.resa-radio-desc {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.resa-km-extra {
  color: #D4A800;
  font-weight: 600;
}

.resa-radio-price {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

/* ── Custom KM input ─────────────────────────────────── */
.resa-km-custom-wrap {
  padding: 12px 16px;
  margin: -6px 0 4px;
  background: #FAFAFA;
  border-radius: 10px;
  border: 1px solid #E5E5E5;
}

.resa-km-custom-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resa-km-custom-input {
  width: 80px;
  padding: 8px 10px;
  border: 1.5px solid #E5E5E5;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  font-family: 'Inter', sans-serif;
  text-align: center;
  -moz-appearance: textfield;
  transition: border-color 0.2s;
}

.resa-km-custom-input::-webkit-inner-spin-button,
.resa-km-custom-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.resa-km-custom-input:focus {
  outline: none;
  border-color: #F5C800;
}

.resa-km-custom-label {
  font-size: 13px;
  color: #666;
}

.resa-km-custom-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* ── Equipment grid ──────────────────────────────────── */
.resa-equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.resa-equip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.resa-equip-card:hover {
  border-color: #ccc;
}

.resa-equip-info {
  flex: 1;
  min-width: 0;
}

.resa-equip-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resa-equip-price {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ── Quantity controls ───────────────────────────────── */
.resa-equip-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
  padding: 0;
}

.qty-btn:hover {
  border-color: #999;
  color: #111;
}

.qty-btn:active {
  background: #f5f5f5;
}

.qty-value {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  min-width: 20px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   Panel 3 — Summary / Panel 4 — Contact / Panel 5 — Payment
   ═══════════════════════════════════════════════════════ */

.resa-summary {
  margin-bottom: 24px;
}

.resa-summary-section {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.resa-summary-section h4 {
  font-size: 14px;
  color: #999;
  font-weight: 500;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resa-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: #444;
}

.resa-summary-row strong {
  color: #111;
}

.resa-km-total-row {
  background: #FFF9E0;
  border-radius: 6px;
  padding: 8px 10px !important;
  margin: 4px 0;
}

.resa-km-total-row strong {
  color: #B8860B;
}

.resa-km-total-row strong small {
  font-weight: 400;
  color: #666;
}

.resa-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  border-top: 2px solid #111;
}

/* ── Contact form ────────────────────────────────────── */
.resa-contact-form {
  margin-bottom: 12px;
}

.resa-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.resa-form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.resa-form-field {
  margin-bottom: 0;
}

.resa-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
}

.resa-form-field input,
.resa-form-field textarea,
.resa-form-field select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 13px;
  font-family: Inter, sans-serif;
  color: #111;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  line-height: 1.4;
}

.resa-form-field input:focus,
.resa-form-field textarea:focus,
.resa-form-field select:focus {
  border-color: var(--resa-primary, #F5C800);
}

.resa-form-field textarea {
  resize: vertical;
  min-height: 50px;
}

/* Optional section */
.resa-optional-section {
  margin-top: 14px;
  border: none;
}

.resa-optional-toggle {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
  user-select: none;
}

.resa-optional-toggle::-webkit-details-marker {
  display: none;
}

.resa-optional-toggle::before {
  content: '\25B6';
  font-size: 10px;
  margin-right: 6px;
  display: inline-block;
  transition: transform 0.2s;
}

details[open]>.resa-optional-toggle::before {
  transform: rotate(90deg);
}

.resa-optional-fields {
  padding-top: 10px;
}

/* Address section */
.resa-address-section {
  margin-top: 12px;
}

.resa-address-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.2s;
}

.resa-address-btn:hover {
  border-color: #F5C800;
  color: #111;
}

.resa-address-preview {
  background: #FAFAFA;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

/* Address sub-modal */
.resa-address-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resa-address-inner {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.resa-address-inner h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.resa-address-inner .resa-form-field {
  margin-bottom: 8px;
}

.resa-address-actions {
  text-align: right;
  margin-top: 12px;
}

.resa-note {
  font-size: 13px;
  color: #999;
  margin: 12px 0 0;
}

/* ── Error display ───────────────────────────────────── */
.resa-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
}

.resa-error p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/* ── Loading / Spinner ───────────────────────────────── */
.resa-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 16px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.resa-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e5e5;
  border-top-color: var(--resa-primary, #F5C800);
  border-radius: 50%;
  animation: resaSpin 0.8s linear infinite;
}

.resa-spinner-sm {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #111;
  border-radius: 50%;
  animation: resaSpin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

/* ═══════════════════════════════════════════════════════
   Panel 6 — Confirmation
   ═══════════════════════════════════════════════════════ */

.resa-confirmation {
  text-align: center;
  padding: 32px 0;
}

.resa-confirm-icon {
  margin-bottom: 16px;
}

.resa-confirmation h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.resa-confirmation p {
  font-size: 14px;
  color: #666;
  max-width: 400px;
  margin: 0 auto 8px;
}

.resa-confirm-details {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 24px auto;
  max-width: 400px;
  text-align: left;
}

/* ── Action buttons (WhatsApp & Phone) ───────────────── */
.resa-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}

.resa-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: background 0.2s;
  text-decoration: none;
}

.resa-btn-whatsapp:hover {
  background: #1fad54;
  color: #fff;
  text-decoration: none;
}

.resa-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--resa-primary, #F5C800);
  color: #111;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: background 0.2s;
  text-decoration: none;
}

.resa-btn-phone:hover {
  background: #D4AD00;
  color: #111;
  text-decoration: none;
}

/* ── Navigation buttons ──────────────────────────────── */
.resa-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  margin-top: auto;
}

.resa-nav .resa-btn-next:first-child {
  margin-left: auto;
}

.resa-btn-next,
.resa-btn-confirm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--resa-primary, #F5C800);
  color: #111;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: background 0.2s;
}

.resa-btn-next:hover,
.resa-btn-confirm:hover {
  background: #D4AD00;
}

.resa-btn-next:disabled,
.resa-btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.resa-btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: none;
  border: 1px solid #ddd;
  color: #666;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.2s;
}

.resa-btn-prev:hover {
  border-color: #999;
  color: #111;
}

/* ── Toast notification ──────────────────────────────── */
.resa-toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-family: Inter, sans-serif;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: resaToastIn 0.3s ease;
}

.resa-toast-fade {
  opacity: 0;
  transition: opacity 0.3s;
}

@keyframes resaToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ── Equipment checkbox (max=1) ─────────────────────── */
.resa-equip-card.resa-equip-checkbox {
  cursor: pointer;
}

.resa-equip-card.resa-equip-checkbox.resa-equip-active {
  border-color: var(--resa-primary, #F5C800);
  background: #FFFBEB;
}

.resa-equip-toggle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
  cursor: pointer;
}

.resa-equip-cb {
  display: none;
}

.resa-equip-checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.resa-equip-cb:checked+.resa-equip-checkmark {
  border-color: var(--resa-primary, #F5C800);
  background: var(--resa-primary, #F5C800);
}

.resa-equip-cb:checked+.resa-equip-checkmark::after {
  content: '\2713';
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

/* ── Secondary driver ──────────────────────────────── */
.resa-secondary-driver {
  margin-top: 20px;
  padding: 16px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.resa-secondary-driver-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.resa-secondary-cb {
  width: 18px;
  height: 18px;
  accent-color: var(--resa-primary, #F5C800);
  cursor: pointer;
}

.resa-secondary-cost {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

.resa-secondary-fields {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
}

.resa-secondary-fields .resa-form-field {
  margin-bottom: 8px;
}

/* ── CGV checkbox ──────────────────────────────────── */
.resa-cgv-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.resa-cgv-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  line-height: 1.4;
}

.resa-cgv-cb {
  width: 18px;
  height: 18px;
  accent-color: var(--resa-primary, #F5C800);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.resa-cgv-label a {
  color: var(--resa-primary, #D4AD00);
  text-decoration: underline;
  font-weight: 500;
}

.resa-cgv-label a:hover {
  color: #111;
}

/* ═══════════════════════════════════════════════════════
   Payment Section (Stripe)
   ═══════════════════════════════════════════════════════ */

.resa-payment-section {}

.resa-payment-choice-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin: 0 0 10px;
}

.resa-payment-summary {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin: 16px 0;
}

.pay-block {
  flex: 1;
  background: #f8f8f0;
  border-radius: 12px;
  padding: 16px 20px;
}

.pay-block-main {
  border-left: 4px solid var(--resa-primary, #F5C800);
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pay-block-detail {
  display: flex;
  align-items: center;
}

.resa-payment-summary .payable-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.resa-payment-summary .payable-amount {
  font-size: 1.4em;
  font-weight: 700;
  color: #111;
}

.resa-payment-summary .payable-detail {
  font-size: 0.85em;
  color: #555;
  line-height: 1.6;
}

/* Stripe Payment Element wrapper */
#stripe-payment-element,
[data-stripe-element] {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 16px 0 8px;
  background: #fff;
  min-height: 60px;
}

#stripe-payment-errors,
[data-stripe-errors] {
  color: #e53e3e;
  font-size: 0.85em;
  margin-top: 8px;
  min-height: 20px;
}

/* Pay button (Stripe purple variant) */
.resa-btn-pay {
  background: #635bff !important;
  color: #fff !important;
}

.resa-btn-pay:hover {
  background: #5046e5 !important;
}

.resa-btn-pay:disabled {
  background: #a5a1ff !important;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .resa-modal {
    max-width: 100%;
    border-radius: 16px;
  }

  .resa-calendars {
    grid-template-columns: 1fr;
  }

  .resa-equip-grid {
    grid-template-columns: 1fr;
  }

  .resa-form-row,
  .resa-form-row-3 {
    grid-template-columns: 1fr;
  }

  .resa-radio-grid {
    grid-template-columns: 1fr;
  }

  .resa-payment-summary {
    flex-direction: column;
  }

  .resa-stepper {
    gap: 0;
    padding: 16px 8px;
  }

  .resa-step {
    min-width: 30px;
  }

  .step-label {
    display: none;
  }

  .step-num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .step-line {
    min-width: 12px;
    margin-bottom: 0;
  }

  .resa-panel {
    padding: 0 16px 16px;
  }

  .resa-modal-header {
    padding: 16px;
  }

  .resa-confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resa-btn-whatsapp,
  .resa-btn-phone {
    justify-content: center;
  }

  .resa-radio-card {
    padding: 12px 14px;
  }

  .resa-equip-name {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .resa-modal-overlay {
    padding: 10px;
  }

  .resa-modal {
    border-radius: 12px;
  }

  .resa-panel h3 {
    font-size: 18px;
  }

  .resa-nav {
    flex-direction: column-reverse;
  }

  .resa-btn-next,
  .resa-btn-confirm,
  .resa-btn-prev {
    justify-content: center;
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════
   COMPACT SINGLE-STEP LAYOUT (v4)
   ══════════════════════════════════════════════════════════ */

/* Smaller calendar */
.resa-cal-compact {
  margin-bottom: 16px;
}

.resa-cal-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
}

.resa-cal-hint strong {
  color: #111;
}

/* Dual-month calendar */
.resa-calendar-sm {
  padding: 6px 8px;
  font-size: 12px;
  border: none;
}

.resa-calendar-sm .resa-cal-nav {
  margin-bottom: 4px;
}

.resa-calendar-sm .resa-cal-nav span {
  flex: 1;
}

.resa-calendar-sm .resa-cal-legend {
  font-size: 10px;
  margin-top: 4px;
  gap: 8px;
}

.resa-cal-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resa-cal-month-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.resa-cal-month .resa-cal-grid .day {
  padding: 5px 0;
  font-size: 12px;
}

.resa-cal-month .resa-cal-grid .day-header {
  padding: 2px 0;
}

@media (max-width: 520px) {
  .resa-cal-duo {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Range calendar highlighting */
.resa-cal-grid .day.range-start {
  border-radius: 8px 0 0 8px;
}

.resa-cal-grid .day.range-end {
  border-radius: 0 8px 8px 0;
}

.resa-cal-grid .day.range-start.range-end {
  border-radius: 8px;
}

.resa-cal-grid .day.in-range {
  background: rgba(245, 200, 0, 0.15);
  color: #111;
  border-radius: 0;
}

.resa-cal-legend .legend-dot.selected {
  background: var(--resa-primary, #F5C800);
}

/* Time selects row — compact */
.resa-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.resa-time-row .resa-time-field label {
  font-size: 13px;
  color: #888;
  margin-bottom: 3px;
  display: block;
}

.resa-time-row .resa-time-select {
  padding: 4px 6px;
  font-size: 13px;
  height: auto;
  border-radius: 6px;
  width: 100%;
  line-height: 2;
}

/* Compact fields (selects) */
.resa-compact-field {
  margin-bottom: 14px;
}

.resa-compact-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.resa-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: auto;
}

.resa-select:focus {
  border-color: var(--resa-primary, #F5C800);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 200, 0, 0.15);
}

.resa-km-extra-note {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  margin-bottom: 0;
}

/* Equipment collapsible */
.resa-equip-details {
  margin-bottom: 6px;
}

.resa-equip-toggle-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  user-select: none;
  list-style: none;
}

.resa-equip-toggle-label::-webkit-details-marker {
  display: none;
}

.resa-equip-toggle-label .resa-toggle-icon {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  transition: transform 0.2s;
}

.resa-equip-details[open] .resa-toggle-icon {
  transform: rotate(45deg);
}

/* Equipment list (compact) */
.resa-equip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.resa-equip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.15s;
}

.resa-equip-item.resa-equip-active {
  border-color: var(--resa-primary, #F5C800);
  background: rgba(245, 200, 0, 0.04);
}

.resa-equip-item .resa-equip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.resa-equip-item .resa-equip-name {
  font-size: 13px;
  font-weight: 500;
  color: #111;
}

.resa-equip-item .resa-equip-price {
  font-size: 12px;
  color: #666;
}

.resa-equip-item .resa-equip-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px;
}

.resa-equip-item .resa-equip-toggle {
  flex-shrink: 0;
  margin-left: 12px;
}

/* Inline price (left of button) */
.resa-nav-price {
  align-items: center;
}

.resa-inline-price {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.resa-inline-dur {
  font-size: 12px;
  color: #888;
}

.resa-inline-total {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

/* Tighten panel 1 spacing */
.resa-cal-compact {
  margin-bottom: 10px;
}

.resa-cal-hint {
  margin-bottom: 6px;
}

.resa-compact-field {
  margin-bottom: 10px;
}

.resa-compact-label {
  margin-bottom: 4px;
}

.resa-select {
  padding: 7px 10px;
}

.resa-location-bar {
  margin-bottom: 8px;
  padding: 8px 12px;
}

/* Responsive for compact layout */
@media (max-width: 480px) {
  .resa-time-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resa-calendar-sm {
    max-width: 100%;
  }
}