* {
  font-family: "Funnel Display";
}

/* Wrapper */
.form-field {
  position: relative;
  width: 100%;
}

/* Input */
.form-input-underline {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #9ca3af;
  padding: 1.25rem 0 0.4rem;
  /* ⬅ space for floating label */
  font-size: 1rem;
  color: #111827;
  outline: none;
}

/* Phone prefix */
.phone-prefix {
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  font-size: 0.95rem;
  color: #111827;
  pointer-events: none;
  z-index: 2;
}

/* Hide placeholder initially */
.form-input-underline::placeholder {
  color: transparent;
}

/* Show placeholder on focus */
.form-input-underline:focus::placeholder {
  color: #9ca3af;
}

/* Floating label */
.form-label-floating {
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  pointer-events: none;
  transition: all 0.25s ease;
  background: white;
  padding: 0 4px;
  z-index: 10;
}

/* Float label */
.form-input-underline:focus+.form-label-floating,
.form-input-underline:not(:placeholder-shown)+.form-label-floating,
select:valid+.form-label-floating {
  top: -0.45rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Focus underline */
.form-input-underline:focus {
  border-bottom-color: #6b7280;
}

.form-input-error {
  border-color: red;
}

.form-error-text {
  color: red;
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Phone field layout */
.phone-field {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* Country code dropdown */
.phone-code {
  background: transparent;
  border: none;
  border-bottom: 1px solid #9ca3af;
  padding: 0.25rem 0;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
  min-width: 90px;
}

/* Remove default select arrow (optional, cleaner look) */
.phone-code {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 16px;
}

/* Phone input takes remaining space */
.phone-input {
  flex: 1;
}

/* Floating label position fix for phone */
.phone-field .form-label-floating {
  left: 0;
}

/* Focus underline sync */
.phone-code:focus {
  border-bottom-color: #1d4ed8;
}

/* Add this if you want more breathing room on mobile */
@media (max-width: 767px) {
  .guest-block .flex {
    flex-direction: column;
    align-items: stretch;
  }

  .guest-block .flex-1 {
    width: 100%;
  }

  .remove-guest {
    align-self: flex-end;
  }
}


.bbx-advantage-btn {
  --font-size: 16px;
  --duration: 0.44s;
  --move-hover: -4px;
  --font-shadow: var(--font-size);
  transform: translateY(var(--y)) translateZ(0);
}

.bbx-advantage-btn:hover {
  --y: var(--move-hover);
}

/* text animation only */
.bbx-text div {
  display: flex;
  overflow: hidden;
  text-shadow: 0 var(--font-shadow) 0 currentColor;
}

.bbx-text span {
  display: block;
  backface-visibility: hidden;
  transform: translateY(var(--m)) translateZ(0);
  transition: transform var(--duration) ease;
}

.bbx-advantage-btn:hover .bbx-text span {
  --m: calc(var(--font-size) * -1);
}

/* stagger */
.bbx-text span:nth-child(n) {
  transition-delay: calc(0.05s * var(--i));
}