/* Booking form: CSS kept independent from global theme stylesheet */

.rb-form {
  margin-top: 1.5rem;
}

.rb-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.rb-form__field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.rb-form__field--time-hidden {
  display: none;
}

.rb-form__field input,
.rb-form__field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  background-color: #ffffff;
}

.rb-date-picker {
  position: relative;
}

.rb-date-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.rb-date-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.rb-date-button--selected {
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
}

.rb-date-button--selected::after {
  content: 'Modifica data';
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.4;
  background-color: #111827;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

.rb-form__field--notes textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  background-color: #ffffff;
  resize: vertical;
}

@media (min-width: 640px) {
  .rb-form__field--notes {
    grid-column: 1 / -1;
  }
}

.rb-form__submit {
  margin-top: 1rem;
}

.rb-form__note {
  font-size: 0.8rem;
  color: #77716b;
  margin-top: 0.5rem;
}

.rb-notice {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.rb-notice--error {
  background-color: #fef2f2;
  color: #b91c1c;
}

.rb-notice--success {
  background-color: #ecfdf5;
  color: #166534;
}

