/**
 * Short form overrides — base location/date/button styles come from booking.css.
 */

.rbc-shortcode-wrap-form {
  width: 100%;
  max-width: min(960px, 100%);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rbc-short-form {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  font-family: var(--rbc-body-font, inherit);
  color: var(--rbc-text, #111);
}

.rbc-short-form .rbc-location-hero {
  width: 100%;
  margin: 0 auto;
  text-align: center !important;
}

/* Beat theme heading/paragraph alignment */
.rbc-shortcode-wrap-form .rbc-short-form .rbc-location-hero-title,
.rbc-shortcode-wrap-form .rbc-short-form .rbc-location-hero-sub,
.rbc-shortcode-wrap-form .rbc-short-form .rbc-location-viewers {
  text-align: center !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.rbc-shortcode-wrap-form .rbc-short-form .rbc-location-hero-title {
  font-family: var(--rbc-heading-font, inherit);
  color: var(--rbc-heading-color, var(--rbc-text, #111));
}

.rbc-shortcode-wrap-form .rbc-short-form .rbc-location-hero-sub {
  color: var(--rbc-text-muted, #4b5563);
}

/* Center location pills (override theme button styles) */
.rbc-short-form .rbc-location-pills-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rbc-short-form .rbc-location-picker-wrap,
.rbc-short-form .rbc-location-picker-trigger {
  width: 100%;
}

.rbc-short-form button.rbc-location-picker-trigger {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.2;
}

.rbc-short-form .rbc-location-pills-wrap::-webkit-scrollbar {
  display: none;
}

.rbc-short-form .rbc-location-pills {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

.rbc-short-form button.rbc-location-pill {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
  background: transparent;
  color: var(--rbc-text-muted, #4b5563);
  border: none;
  box-shadow: none;
}

.rbc-short-form button.rbc-location-pill.selected {
  background-color: var(--rbc-theme, #ffd700) !important;
  background-image: none !important;
  color: #111 !important;
  border: none !important;
  box-shadow: none !important;
}

.rbc-short-form button.rbc-location-pill:not(.selected):hover {
  background-color: #e5e7eb !important;
  color: var(--rbc-text, #111) !important;
}

.rbc-short-form .rbc-location-pill-icon {
  color: currentColor;
}

/* Center date chips (booking.css left-aligns inside .rbc-location-hero on mobile) */
@media (max-width: 767px) {
  #rbc-short-date-modal.rbc-date-modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: 0;
  }

  #rbc-short-date-modal .rbc-date-modal {
    width: 100%;
    max-width: none;
    border-radius: 0 0 1rem 1rem;
    margin-top: 0;
    max-height: min(92vh, 100%);
    overflow-y: auto;
  }
}

.rbc-short-form .rbc-short-date-mount {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.rbc-short-form .rbc-date-strip-wrap {
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.rbc-short-form .rbc-location-hero .rbc-date-strip,
.rbc-short-form .rbc-date-strip {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 767px) {
  .rbc-short-form .rbc-location-hero .rbc-date-strip,
  .rbc-short-form .rbc-date-strip {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .rbc-short-form .rbc-date-chip-more {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rbc-shortcode-wrap-form .rbc-short-form .rbc-location-viewers {
    text-align: center !important;
  }
}

.rbc-short-form button.rbc-date-chip {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  box-shadow: none;
}

.rbc-short-form button.rbc-date-chip.selected {
  background-color: var(--rbc-theme, #ffd700) !important;
  border-color: var(--rbc-theme, #ffd700) !important;
  color: #111 !important;
}

/* Footer: mobile = stacked full-width CTA; desktop = viewers left, button right */
.rbc-short-form .rbc-location-hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: center;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .rbc-short-form .rbc-location-hero-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1.25rem;
  }

  .rbc-shortcode-wrap-form .rbc-short-form .rbc-location-viewers {
    text-align: left !important;
    justify-self: start;
  }

  .rbc-short-form .rbc-location-cta {
    justify-self: end;
    width: auto !important;
    min-width: 12rem;
    max-width: none;
  }
}

.rbc-short-form .rbc-location-viewers {
  margin: 0;
  justify-self: stretch;
}

.rbc-short-form button.rbc-location-cta,
.rbc-short-form button.rbc-short-form-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.9rem 1.4rem;
  border: none !important;
  border-radius: 0.75rem;
  background-color: var(--rbc-theme, #ffd700) !important;
  background-image: none !important;
  color: #111 !important;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: none !important;
  cursor: pointer;
}

.rbc-short-form button.rbc-location-cta:hover:not(:disabled),
.rbc-short-form button.rbc-short-form-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.rbc-short-form button.rbc-location-cta:disabled,
.rbc-short-form button.rbc-short-form-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rbc-short-form-notice {
  margin: 0 auto;
  max-width: 36rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.875rem;
  text-align: center;
}
