/* =========================================================================
   Promo Reisedienst — Reiseanfrage-Modal (mehrstufiger Wizard)
   Markenfarben: #066168 (Petrol), #85D200 (Grün), #EFFFFF (BG)
   ========================================================================= */
:root {
  --ra-primary:   #066168;
  --ra-primary-d: #044a50;
  --ra-accent:    #85D200;
  --ra-accent-d:  #6cb000;
  --ra-bg:        #ffffff;
  --ra-soft:      #f1fafa;
  --ra-line:      #dcefee;
  --ra-text:      #244a4e;
  --ra-muted:     #6f9498;
}

/* ---------- Overlay ---------- */
.ra-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 39, 43, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.ra-overlay.ra-open {
  opacity: 1;
  visibility: visible;
}
body.ra-lock { overflow: hidden; }

/* ---------- Dialog ---------- */
.ra-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--ra-bg);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(4, 40, 44, .45);
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.8,.25,1), opacity .32s ease;
  font-family: inherit;
}
.ra-overlay.ra-open .ra-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ---------- Header ---------- */
.ra-head {
  position: relative;
  padding: 26px 30px 20px;
  background: linear-gradient(135deg, var(--ra-primary), #0a8a93);
  color: #fff;
  flex-shrink: 0;
}
.ra-eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: .82;
  margin: 0 0 4px;
}
.ra-title {
  font-size: 23px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: #fff;
}
.ra-sub {
  font-size: 14px;
  opacity: .9;
  margin: 6px 0 0;
}
.ra-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.ra-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }

/* ---------- Stepper ---------- */
.ra-steps {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.ra-steps .ra-step {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
  position: relative;
}
.ra-steps .ra-step > i {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--ra-accent);
  border-radius: 99px;
  transition: width .4s ease;
}
.ra-steps .ra-step.done > i,
.ra-steps .ra-step.active > i { width: 100%; }
.ra-steps .ra-step.active > i { width: 100%; }
.ra-steplabels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  opacity: .85;
}

/* ---------- Body ---------- */
.ra-body {
  padding: 26px 30px 8px;
  overflow-y: auto;
  flex: 1;
}
.ra-pane { display: none; animation: ra-fade .35s ease; }
.ra-pane.active { display: block; }
@keyframes ra-fade {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ra-group { margin-bottom: 22px; }
.ra-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ra-primary);
  margin-bottom: 10px;
}
.ra-label .ra-opt { font-weight: 500; color: var(--ra-muted); font-size: 13px; }

/* ---------- Auswahl-Chips / Cards ---------- */
.ra-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ra-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1.5px solid var(--ra-line);
  border-radius: 14px;
  background: var(--ra-soft);
  color: var(--ra-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all .18s ease;
}
.ra-chip:hover { border-color: var(--ra-primary); transform: translateY(-1px); }
.ra-chip .ra-emoji { font-size: 17px; line-height: 1; }
.ra-chip.sel {
  border-color: var(--ra-primary);
  background: var(--ra-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(6,97,104,.28);
}
.ra-chip.sel::after {
  content: "✓";
  font-size: 12px;
  margin-left: 2px;
}

/* ---------- Inputs ---------- */
.ra-field {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--ra-line);
  border-radius: 14px;
  background: var(--ra-soft);
  color: var(--ra-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea.ra-field { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
select.ra-field { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23066168' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.ra-field:focus {
  border-color: var(--ra-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(6,97,104,.12);
}
.ra-field.ra-err { border-color: #e2574c; box-shadow: 0 0 0 4px rgba(226,87,76,.12); }
.ra-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ra-row > .ra-col { flex: 1 1 0; min-width: 140px; }

/* ---------- Stepper-Zahl (Reisende) ---------- */
.ra-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ra-line);
  border-radius: 14px;
  background: var(--ra-soft);
  overflow: hidden;
}
.ra-stepper button {
  width: 46px; height: 50px;
  border: 0; background: transparent;
  font-size: 22px; color: var(--ra-primary);
  cursor: pointer; line-height: 1;
  transition: background .15s ease;
}
.ra-stepper button:hover { background: rgba(6,97,104,.08); }
.ra-stepper input {
  width: 48px; height: 50px; border: 0; background: transparent;
  text-align: center; font-size: 16px; font-weight: 700; color: var(--ra-text);
  outline: none; -moz-appearance: textfield;
}
.ra-stepper input::-webkit-outer-spin-button,
.ra-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ra-counter-wrap { display: flex; gap: 22px; flex-wrap: wrap; }
.ra-counter { display: flex; flex-direction: column; gap: 8px; }
.ra-counter span { font-size: 13.5px; font-weight: 600; color: var(--ra-text); }

/* Conditional reveal */
.ra-reveal { display: none; }
.ra-reveal.show { display: block; }

/* Checkbox */
.ra-check { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--ra-text); cursor: pointer; line-height: 1.45; }
.ra-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ra-primary); flex-shrink: 0; cursor: pointer; }
.ra-check a { color: var(--ra-primary); text-decoration: underline; }

.ra-error-msg {
  display: none;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f6c9c4;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.ra-error-msg.show { display: block; }

/* ---------- Footer ---------- */
.ra-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px 24px;
  border-top: 1px solid var(--ra-line);
  flex-shrink: 0;
}
.ra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.ra-btn-next, .ra-btn-submit {
  background: var(--ra-accent);
  color: #14320a;
  box-shadow: 0 10px 22px rgba(133,210,0,.35);
  margin-left: auto;
}
.ra-btn-next:hover, .ra-btn-submit:hover { background: var(--ra-accent-d); transform: translateY(-2px); }
.ra-btn-back {
  background: var(--ra-soft);
  color: var(--ra-primary);
  border: 1.5px solid var(--ra-line);
}
.ra-btn-back:hover { background: #e6f5f5; }
.ra-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.ra-btn .ra-spin {
  width: 17px; height: 17px;
  border: 2.5px solid rgba(20,50,10,.3);
  border-top-color: #14320a;
  border-radius: 50%;
  animation: ra-rot .7s linear infinite;
  display: none;
}
.ra-btn.loading .ra-spin { display: inline-block; }
.ra-btn.loading .ra-btn-text { opacity: .7; }
@keyframes ra-rot { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */
.ra-success { text-align: center; padding: 30px 20px 14px; }
.ra-success .ra-tick {
  width: 84px; height: 84px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ra-accent);
  display: flex; align-items: center; justify-content: center;
  color: #14320a; font-size: 44px;
  animation: ra-pop .5s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes ra-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.ra-success h3 { color: var(--ra-primary); font-size: 22px; margin: 0 0 10px; }
.ra-success p { color: var(--ra-muted); font-size: 15px; margin: 0 auto; max-width: 420px; line-height: 1.5; }

/* ---------- Inline / eingebettet ---------- */
.ra-embed {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--ra-bg);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(4, 40, 44, .14);
  overflow: hidden;
  font-family: inherit;
}
.ra-embed .ra-head { border-radius: 0; }
.ra-embed .ra-body { overflow: visible; max-height: none; }
.ra-embed .ra-foot { position: sticky; bottom: 0; background: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .ra-overlay { padding: 0; align-items: flex-end; }
  .ra-modal { max-width: 100%; max-height: 96vh; border-radius: 24px 24px 0 0; }
  .ra-head { padding: 22px 22px 18px; }
  .ra-title { font-size: 20px; }
  .ra-body { padding: 22px 22px 4px; }
  .ra-foot { padding: 14px 22px 20px; }
  .ra-steplabels { font-size: 10.5px; }
  .ra-btn { padding: 0 18px; font-size: 14px; }
}
