/* ============================================================
   Gran Canaria 24 Transfers – style.css
   Mobile-first, keine externen Abhängigkeiten
   ============================================================ */

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: #1a1a1a;
  background: #f5f7fa;
  min-height: 100vh;
}
a { color: #0057b8; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- Container ---------- */
.container { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: #0057b8;
  color: #fff;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; }
.logo-icon { font-size: 1.4rem; line-height: 1; }
.logo-text { font-size: 0.95rem; font-weight: 400; }
.logo-text strong { font-weight: 700; }

/* Lang switcher */
.lang-switcher { display: flex; gap: 0.25rem; }
.lang-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .15s;
}
.lang-btn:hover, .lang-btn.active { background: rgba(255,255,255,.35); }

/* ---------- Progress Steps ---------- */
.progress-bar-wrapper {
  background: #fff;
  border-bottom: 1px solid #dde3ee;
  padding: 0.6rem 0;
}
.progress-steps {
  display: flex;
  list-style: none;
  justify-content: space-between;
  position: relative;
}
.progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: #dde3ee;
  transform: translateY(-50%);
  z-index: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
  flex: 1;
}
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #dde3ee;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background .25s, color .25s;
}
.step.active .step-num  { background: #0057b8; color: #fff; }
.step.done .step-num    { background: #00975f; color: #fff; }
.step-label { font-size: 0.65rem; color: #888; text-align: center; display: none; }
@media (min-width: 420px) { .step-label { display: block; } }
.step.active .step-label { color: #0057b8; font-weight: 600; }
.step.done .step-label   { color: #00975f; }

/* ---------- Form Steps ---------- */
.form-step { display: none; padding: 1.25rem 0 2rem; }
.form-step.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0057b8;
}

/* ---------- Form Card ---------- */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin-bottom: 1rem;
}

/* ---------- Form Fields ---------- */
.field-group { margin-bottom: 1rem; }
.field-group:last-child { margin-bottom: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 440px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}

label, .section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  border: 1.5px solid #ccd3e0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0057b8;
  box-shadow: 0 0 0 3px rgba(0,87,184,.12);
}
input.error, select.error, textarea.error { border-color: #d32f2f; }
textarea { resize: vertical; min-height: 72px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2rem; }

.field-error {
  display: block;
  font-size: 0.78rem;
  color: #d32f2f;
  margin-top: 0.2rem;
  min-height: 1em;
}

/* ---------- Hint text ---------- */
.field-hint { font-size: 0.78rem; color: #666; margin-top: 0.2rem; }

/* ---------- Counter ---------- */
.counter-group label { margin-bottom: 0.3rem; }
.counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #ccd3e0;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  min-width: 130px;
}
.counter-btn {
  background: #f0f3f9;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.3rem;
  color: #0057b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.counter-btn:hover { background: #dde3ee; }
.counter input[type="number"] {
  border: none;
  border-left: 1.5px solid #ccd3e0;
  border-right: 1.5px solid #ccd3e0;
  border-radius: 0;
  text-align: center;
  font-weight: 700;
  width: 3rem;
  padding: 0;
  box-shadow: none;
  -moz-appearance: textfield;
}
.counter input[type="number"]::-webkit-outer-spin-button,
.counter input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Radio / Checkbox ---------- */
.fieldset-inline { border: none; padding: 0; }
.fieldset-inline legend { font-size: 0.875rem; font-weight: 600; color: #444; margin-bottom: 0.4rem; }
.radio-label, .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.radio-label input, .checkbox-label input {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
  accent-color: #0057b8;
}
.checkbox-label span small { display: block; color: #666; font-size: 0.78rem; }
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
}
@media (min-width: 440px) { .checkbox-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Child seat rows ---------- */
.child-seat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: #f5f7fa;
  border-radius: 8px;
  flex-wrap: wrap;
}
.child-seat-row .field-group { margin-bottom: 0; flex: 1; min-width: 90px; }
.child-seat-row label { font-size: 0.78rem; }
.child-seat-row input { padding: 0.45rem 0.5rem; font-size: 0.9rem; }
.btn-remove-child {
  background: none;
  border: 1px solid #d32f2f;
  color: #d32f2f;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: 0;
  transition: background .15s;
}
.btn-remove-child:hover { background: #fdecea; }
.btn-text {
  background: none;
  border: none;
  color: #0057b8;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0;
  cursor: pointer;
}
.btn-text:hover { text-decoration: underline; }

/* ---------- Transfer card ---------- */
.transfer-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin-bottom: 1rem;
  border-left: 4px solid #0057b8;
}
.transfer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.transfer-card-title { font-size: 1rem; font-weight: 700; color: #0057b8; }
.btn-remove-transfer {
  background: none;
  border: 1px solid #ccd3e0;
  color: #666;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  transition: border-color .15s, color .15s;
}
.btn-remove-transfer:hover { border-color: #d32f2f; color: #d32f2f; }

/* Price display inside transfer card */
.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef3fb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}
.price-label { font-size: 0.85rem; color: #555; }
.price-amount { font-size: 1.4rem; font-weight: 800; color: #0057b8; }
.price-note { font-size: 0.72rem; color: #888; margin-top: 0.1rem; }

/* ---------- Add-Transfer Button ---------- */
.btn-add-transfer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem;
  background: #fff;
  border: 2px dashed #aac0e0;
  border-radius: 12px;
  color: #0057b8;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: background .15s, border-color .15s;
}
.btn-add-transfer:hover { background: #eef3fb; border-color: #0057b8; }

/* ---------- Step Navigation ---------- */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: #0057b8;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  transition: background .15s, transform .1s;
  touch-action: manipulation;
}
.btn-primary:hover  { background: #0047a0; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { background: #a0b4cc; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: #0057b8;
  border: 1.5px solid #0057b8;
  border-radius: 10px;
  padding: 0.8rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background .15s;
}
.btn-secondary:hover { background: #eef3fb; }

/* ---------- Summary ---------- */
.summary-section { margin-bottom: 1.25rem; }
.summary-section h2 { font-size: 0.95rem; font-weight: 700; color: #555; margin-bottom: 0.5rem; border-bottom: 1px solid #eee; padding-bottom: 0.3rem; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.summary-table td { padding: 0.3rem 0; vertical-align: top; }
.summary-table td:first-child { color: #666; width: 48%; padding-right: 0.5rem; }
.summary-table td:last-child { font-weight: 500; }
.summary-total-row td { font-size: 1.05rem; font-weight: 800; color: #0057b8; padding-top: 0.5rem; border-top: 2px solid #0057b8; }
.confirm-hint { font-size: 0.8rem; color: #e65100; margin-top: 0.75rem; }

/* ---------- Success ---------- */
.success-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  text-align: center;
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-card h1 { font-size: 1.3rem; color: #00975f; margin-bottom: 0.75rem; }
.success-card p { color: #444; margin-bottom: 0.75rem; font-size: 0.95rem; }
.success-next { font-weight: 600; color: #0057b8; }
.contact-box {
  background: #f5f7fa;
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
}
.contact-box p { margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #1a1a1a;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 9999;
  transition: transform .3s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #c62828; }
.toast.success { background: #2e7d32; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid #dde3ee;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  margin-top: 2rem;
}

/* ---------- Datetime hint ---------- */
.datetime-hint {
  font-size: 0.78rem;
  color: #0057b8;
  margin-top: 0.25rem;
  display: none;
}

/* ---------- Desktop refinements ---------- */
@media (min-width: 600px) {
  .form-card { padding: 1.75rem; }
  .transfer-card { padding: 1.5rem; }
  .step-title { font-size: 1.4rem; }
}
