:root{
  --qr-accent: #fb6d14;
  --qr-text: #111827;
  --qr-muted: #6b7280;
  --qr-border: #e5e7eb;
  --qr-bg: #ffffff;
  --qr-soft: #f8fafc;
}

.rbs-booking-form-wrapper{
  max-width: 980px;
  margin: 0 auto;
  background: var(--qr-bg);
  border: 1px solid var(--qr-border);
  border-radius: 16px;
  overflow: hidden;
}

.rbs-form-header{
  padding: 26px 28px 18px 28px;
  background: rgba(251,109,20,.06);
  border-bottom: 1px solid var(--qr-border);
}

.rbs-form-title{
  margin: 0 0 6px 0;
  color: var(--qr-text);
  line-height: 1.15;
  font-size: 28px;
}

.rbs-form-description{
  margin: 0;
  color: var(--qr-muted);
  font-size: 15px;
}

.rbs-booking-form{ padding: 22px 28px 26px 28px; }

.rbs-form-row{ margin-bottom: 14px; }

.rbs-form-row-2col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rbs-form-group{ margin-bottom: 14px; }

.rbs-label{
  display:block;
  font-weight: 600;
  color: var(--qr-text);
  font-size: 14px;
  margin-bottom: 6px;
}

.rbs-required{ color: var(--qr-accent); font-weight: 700; margin-left: 4px; }
.rbs-optional{ color: var(--qr-muted); font-weight: 500; margin-left: 6px; font-size: 12px; }

.rbs-input,
.rbs-textarea{
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--qr-text);
  background: var(--qr-soft);
  border: 1px solid var(--qr-border);
  border-radius: 12px;
  padding: 12px 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.rbs-input:focus,
.rbs-textarea:focus{
  outline: none;
  background: #fff;
  border-color: rgba(251,109,20,.70);
  box-shadow: 0 0 0 4px rgba(251,109,20,.12);
}

.rbs-textarea{ resize: vertical; min-height: 120px; }

.rbs-field-hint{
  margin-top: 8px;
  font-size: 13px;
  color: var(--qr-muted);
}

.rbs-form-actions{ margin-top: 10px; display:flex; }

/* Button: no icon, no gradient, radius 6px; hover bg #02000c, color #fff */
.rbs-submit-btn{
  appearance:none;
  border: 0;
  cursor:pointer;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  background: var(--qr-accent);
  color: #fff;
  transition: background .15s ease, color .15s ease, transform .08s ease;
}

.rbs-submit-btn:hover{ background:#02000c; color:#fff; }
.rbs-submit-btn:active{ transform: translateY(1px); }

.rbs-submit-btn.is-loading{ opacity:.75; pointer-events:none; }
.rbs-submit-btn.is-loading .rbs-btn-text::after{ content:" …"; }

.rbs-form-message{
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--qr-border);
  background: #fff;
}

.rbs-form-message.is-success{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.rbs-form-message.is-error{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }

@media (max-width: 720px){
  .rbs-form-header, .rbs-booking-form{ padding-left:16px; padding-right:16px; }
  .rbs-form-row-2col{ grid-template-columns: 1fr; }
  .rbs-form-title{ font-size: 24px; }
}


/* Vehicle picker (cards with featured image) */
.rbs-vehicle-chosen{
  margin: 4px 0 8px 0;
  font-size: 13px;
  color: var(--qr-muted);
}

.rbs-vehicle-chosen__label{ margin-right: 6px; }

.rbs-vehicle-chosen__value{
  color: var(--qr-text);
  font-weight: 700;
}

.rbs-hidden{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rbs-vehicle-grid{
  margin-top: 10px;
  display: block;
}

.rbs-vehicle-card{
  width: 100%;
  text-align: left;
  border: 1px solid var(--qr-border);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

.rbs-vehicle-card:hover{
  border-color: rgba(251,109,20,.55);
}

.rbs-vehicle-card:active{
  transform: translateY(1px);
}

.rbs-vehicle-card.is-selected{
  border-color: rgba(251,109,20,.95);
  box-shadow: 0 0 0 4px rgba(251,109,20,.12);
}

.rbs-vehicle-card__media{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--qr-soft);
  border: 1px solid var(--qr-border);
}

.rbs-vehicle-card__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.rbs-vehicle-card__placeholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--qr-muted);
}

.rbs-vehicle-card__title{
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--qr-text);
  font-size: 13px;
  line-height: 1.25;
}

@media (min-width: 900px){
  .rbs-vehicle-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px){
  .rbs-vehicle-grid{
    grid-template-columns: 1fr;
  }
}


.rbs-hint{font-size:13px;color:#6b7280;margin-top:6px;}

/* Fahrzeug-Typ Gruppierung */
.rbs-vehicle-type-group {
    margin-bottom: 40px;
}

.rbs-vehicle-type-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* Grid Layout: Desktop 4, Tablet 3, Mobile 2 */
.rbs-vehicle-type-items {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

/* Tablet: 3 Spalten */
@media (max-width: 1024px) {
    .rbs-vehicle-type-items {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile: 2 Spalten */
@media (max-width: 768px) {
    .rbs-vehicle-type-items {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .rbs-vehicle-type-title {
        font-size: 18px;
    }
}

/* Empfohlen Option im Dropdown hervorheben */
.rbs-protection-dropdown option.rbs-recommended-option {
    background-color: #fb6d14;
    color: #fff;
    font-weight: 600;
}

/* Für Firefox */
.rbs-protection-dropdown:focus option.rbs-recommended-option {
    background-color: #fb6d14 !important;
    color: #fff !important;
}

/* Auto-Schutz Infobox */
.rbs-protection-auto-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95em;
    font-weight: 600;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rbs-protection-auto-info::before {
    content: "✓";
    font-size: 1.1em;
    font-weight: 700;
    color: #4caf50;
    flex-shrink: 0;
}
