/* ============================================================
   Be Traveler — reservar.css
   Web App: Booking / Contact Form
   ============================================================ */

/* ---------- App body ---------- */
.app-body {
  background: var(--clr-oceano); /* Dark Midnight Blue background */
  min-height: 100svh;
}

/* ---------- App Layout ---------- */
.app {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: 100px 1.5rem 4rem 1.5rem; /* nav height + margins */
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.app__sidebar {
  background: var(--grad-cta);
  position: sticky;
  top: 72px;
  height: calc(100svh - 72px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsla(0,0%,100%,0.15) transparent;
}

.app__sidebar-inner {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100%;
  position: relative;
}

/* Decorative blob */
.app__sidebar-inner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, hsla(7,95%,68%,0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.app__sidebar-inner::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, hsla(210,70%,60%,0.14), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.app__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: hsla(0,0%,100%,0.6);
  transition: color var(--dur-fast);
  width: fit-content;
}
.app__back:hover { color: var(--clr-white); }

.app__sidebar-brand { position: relative; z-index: 1; }

.app__bird-icon {
  width: 64px; height: 64px;
  background: hsla(0,0%,100%,0.12);
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid hsla(0,0%,100%,0.15);
  animation: float 6s ease-in-out infinite;
}

.app__sidebar-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.app__sidebar-subtitle {
  font-size: 0.9rem;
  color: hsla(0,0%,100%,0.65);
  line-height: 1.7;
}

/* Benefits list */
.app__benefits {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.app__benefit {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: hsla(0,0%,100%,0.07);
  border: 1px solid hsla(0,0%,100%,0.1);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast);
}
.app__benefit:hover { background: hsla(0,0%,100%,0.12); }

.app__benefit-icon {
  width: 36px; height: 36px;
  background: hsla(0,0%,100%,0.12);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--clr-green-300);
}
.app__benefit-icon svg { width: 16px; height: 16px; }

.app__benefit strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.1rem;
}
.app__benefit span {
  font-size: 0.78rem;
  color: hsla(0,0%,100%,0.5);
}

/* Contact quick links */
.app__contact-info {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(0,0%,100%,0.1);
  position: relative;
  z-index: 1;
}

.app__contact-label {
  font-size: 0.8rem;
  color: hsla(0,0%,100%,0.5);
  margin-bottom: 0.9rem;
}

.app__whatsapp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-white);
  background: hsl(142, 70%, 35%);
  padding: 0.65em 1.3em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  transition: all var(--dur-fast);
  width: fit-content;
}
.app__whatsapp:hover {
  background: hsl(142, 70%, 30%);
  transform: translateY(-1px);
}

.app__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: hsla(0,0%,100%,0.6);
  transition: color var(--dur-fast);
}
.app__phone:hover { color: var(--clr-white); }

/* ============================================================
   FORM PANEL
   ============================================================ */
.app__form-panel {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 6vw, 4rem);
  gap: 2.5rem;
  max-width: 720px;
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-gray-400);
  cursor: default;
  transition: color var(--dur-normal);
}
.step.active { color: var(--clr-green-600); }
.step.done   { color: var(--clr-green-500); }

.step__num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--clr-gray-200);
  color: var(--clr-gray-400);
  transition: all var(--dur-normal) var(--ease-out);
  flex-shrink: 0;
}
.step.active .step__num {
  background: var(--grad-brand);
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(255, 107, 91, 0.4);
}
.step.done .step__num {
  background: var(--clr-green-100);
  color: var(--clr-green-600);
}
.step.done .step__num::before { content: '✓'; }
.step.done span { display: none; }

.step__line {
  flex: 1;
  height: 2px;
  background: var(--clr-gray-200);
  margin-inline: 0.75rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.step__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.step__line.active::after { transform: scaleX(1); }

/* ============================================================
   BOOKING FORM
   ============================================================ */
.booking-form {
  flex: 1;
}

/* Form steps */
.form-step {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fade-up 0.4s var(--ease-out) both;
}
.form-step.active { display: flex; }

.form-step__header { margin-bottom: 0.5rem; }
.form-step__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--clr-gray-900);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.form-step__subtitle {
  font-size: 0.92rem;
  color: var(--clr-gray-400);
}

/* ============================================================
   FIELD COMPONENTS
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-gray-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field__badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-green-600);
  background: var(--clr-green-100);
  padding: 0.15em 0.65em;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--clr-gray-900);
  background: var(--clr-white);
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  padding: 0.75em 1em;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--clr-green-500);
  box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.12);
}
.field__input.error,
.field__select.error {
  border-color: hsl(0, 70%, 55%);
  box-shadow: 0 0 0 3px hsla(0,70%,55%,0.1);
}
.field__input::placeholder { color: var(--clr-gray-200); }
.field__textarea { resize: vertical; min-height: 90px; }

.field__select-wrap {
  position: relative;
}
.field__select {
  cursor: pointer;
  padding-right: 2.5em;
}
.field__chevron {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--clr-gray-400);
  width: 18px; height: 18px;
}

.field__error {
  font-size: 0.78rem;
  color: hsl(0, 70%, 55%);
  font-weight: 500;
  min-height: 1em;
  display: block;
}

.field__hint {
  font-size: 0.75rem;
  color: var(--clr-gray-400);
  margin-top: 0.1rem;
}

.field__char-count {
  font-size: 0.72rem;
  color: var(--clr-gray-400);
  text-align: right;
}

/* Date input */
input[type="date"].field__input {
  cursor: pointer;
}
input[type="date"].field__input::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

/* Checkbox */
.field__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--clr-gray-600);
  line-height: 1.5;
}
.field__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.field__checkbox-custom {
  width: 20px; height: 20px;
  border: 2px solid var(--clr-gray-200);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--dur-fast);
  position: relative;
  background: var(--clr-white);
}
.field__checkbox input:checked + .field__checkbox-custom {
  background: var(--grad-brand);
  border-color: transparent;
}
.field__checkbox input:checked + .field__checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
}
.field__checkbox input:focus + .field__checkbox-custom {
  box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.2);
}

.form-link {
  color: var(--clr-green-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   CHIP GROUP
   ============================================================ */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  cursor: pointer;
}
.chip__input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.chip__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-gray-600);
  background: var(--clr-white);
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-pill);
  padding: 0.42em 1em;
  cursor: pointer;
  transition: all var(--dur-fast);
  user-select: none;
}
.chip__label:hover {
  border-color: var(--clr-green-400);
  color: var(--clr-green-600);
  background: var(--clr-green-100);
}
.chip__input:checked + .chip__label {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--clr-white);
  box-shadow: 0 2px 12px rgba(255, 107, 91, 0.35);
}
.chip__input:focus + .chip__label {
  outline: 2px solid var(--clr-green-500);
  outline-offset: 2px;
}

/* ============================================================
   COUNTER FIELD
   ============================================================ */
.counter-field {
  display: flex;
  align-items: center;
  background: var(--clr-white);
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.counter-field:focus-within {
  border-color: var(--clr-green-500);
  box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.12);
}

.counter-btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--clr-gray-600);
  background: var(--clr-gray-100);
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast);
  flex-shrink: 0;
  line-height: 1;
}
.counter-btn:hover {
  background: var(--clr-green-100);
  color: var(--clr-green-700);
}
.counter-btn:active { transform: scale(0.9); }

.counter-input {
  flex: 1;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-gray-900);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}
.counter-input::-webkit-inner-spin-button,
.counter-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ============================================================
   RANGE SLIDER
   ============================================================ */
.range-wrap {
  position: relative;
  padding-bottom: 1.5rem;
}

.range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 0;
  background: transparent;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  margin-bottom: 0.4rem;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 3px solid var(--clr-green-500);
  box-shadow: 0 2px 12px rgba(255, 107, 91, 0.35);
  cursor: pointer;
  margin-top: -10px;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.range-input::-webkit-slider-thumb:hover,
.range-input:focus::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 4px 20px rgba(255, 107, 91, 0.5);
}
.range-input::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 3px solid var(--clr-green-500);
  box-shadow: 0 2px 12px rgba(255, 107, 91, 0.35);
  cursor: pointer;
}
.range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--clr-gray-200);
  border-radius: 2px;
}
.range-input::-moz-range-track {
  height: 4px;
  background: var(--clr-gray-200);
  border-radius: 2px;
}

.range-track {
  position: absolute;
  top: 10px; left: 0; right: 0;
  height: 4px;
  background: var(--clr-gray-200);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}
.range-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width var(--dur-fast);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--clr-gray-400);
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

/* ============================================================
   SUMMARY BOX
   ============================================================ */
.summary-box {
  background: var(--clr-green-100);
  border: 1.5px solid rgba(255, 107, 91, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.summary-box__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-green-700);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-box__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.summary-item__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-green-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.summary-item__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-green-900);
}

/* ============================================================
   FORM NAV BUTTONS
   ============================================================ */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em 0;
  transition: color var(--dur-fast);
  font-family: var(--font-sans);
}
.btn-back:hover { color: var(--clr-gray-600); }

.form-next-btn,
.submit-btn {
  min-width: 160px;
  justify-content: center;
}

.submit-btn__loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.form-success {
  text-align: center;
  padding: 2rem 0;
  animation: fade-up 0.6s var(--ease-out) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-bird {
  width: 80px; height: 80px;
  animation: float 4s ease-in-out infinite;
}

.success-check {
  width: 64px; height: 64px;
  background: var(--grad-brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 32px rgba(255, 107, 91, 0.4);
  animation: pop 0.5s var(--ease-out) 0.2s both;
}
@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--clr-gray-900);
  line-height: 1.1;
}

.success-desc {
  font-size: 1rem;
  color: var(--clr-gray-400);
  line-height: 1.75;
  max-width: 440px;
}

.success-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

  .app__sidebar {
    position: static;
    height: auto;
  }

  .app__sidebar-inner {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .app__contact-info {
    margin-top: 0;
  }

  .app__form-panel {
    max-width: 100%;
    padding: 2rem 1.25rem;
  }

  .summary-box__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .form-nav {
    flex-direction: column-reverse;
    gap: 1rem;
    align-items: stretch;
  }
  .form-nav .btn-back {
    justify-content: center;
    padding: 0.8em;
  }
  .form-next-btn,
  .submit-btn {
    width: 100%;
  }
  .success-actions {
    flex-direction: column;
    width: 100%;
  }
  .success-actions .btn { text-align: center; justify-content: center; }
}

[hidden] {
  display: none !important;
}
