/* ===========================
   booking.css — Formulario minimal
   =========================== */

body { font-family: "Helvetica Neue", Arial, sans-serif; }

/* Fondo fijo */
.booking-bg {
  position: fixed;
  inset: 0;
  background-image: url('../data/backgrounds/howToBook.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Contenedor principal */
.booking-container {
  position: relative;
  min-height: 100vh;
  padding: 4.5rem 1.5rem 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Formulario */
.booking-form {
  width: 100%;
  max-width: 560px;
  padding: 1.9rem 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(2px);
}

/* Grupos de formulario */
.form-group {
  margin: 0;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-bottom: 0.45rem;
  color: rgba(230, 230, 230, 0.85);
}

/* Inputs y textarea */
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(230, 230, 230, 0.35);
  border-radius: 0;
  color: var(--text-color);
  transition: border-color 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(230, 230, 230, 0.42);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.4;
}

/* File input */
.form-file {
  border-bottom: none;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: rgba(230, 230, 230, 0.7);
}

.form-file::file-selector-button {
  background: rgba(200, 30, 30, 0.15);
  border: 1px solid rgba(200, 30, 30, 0.4);
  color: var(--accent);
  padding: 0.35rem 0.8rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-right: 0.6rem;
}

.form-file::file-selector-button:hover {
  background: rgba(200, 30, 30, 0.3);
}

/* Botón enviar (alineado con navegación) */
.form-submit {
  align-self: center;
  margin-top: 1.05rem;
  padding: 0.35rem 1.1rem;
  font-family: inherit;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.form-submit:hover {
  color: var(--accent-hover);
  transform: scale(1.04);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}


/* Confirmation message */
.form-confirmation {
  text-align: center;
  padding: 3rem 1rem;
}

.form-confirmation p {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.form-confirmation span {
  font-size: 0.95rem;
  color: rgba(230, 230, 230, 0.7);
}

/* Error message */
.form-error {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #f26f63;
}

/* Errores de validación por campo */
.form-input-invalid {
  border-bottom-color: #f26f63 !important;
}

.form-field-error {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #f26f63;
  letter-spacing: 0.02em;
}

/* Adjuntos: hint + lista de previsualizaciones */
.form-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: rgba(230, 230, 230, 0.55);
  letter-spacing: 0.02em;
}

.attachment-previews {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 230, 230, 0.12);
}

.attachment-thumb {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-size: 1.1rem;
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attachment-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.attachment-name {
  font-size: 0.85rem;
  color: rgba(230, 230, 230, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  font-size: 0.72rem;
  color: rgba(230, 230, 230, 0.5);
}

.attachment-remove {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(230, 230, 230, 0.25);
  color: rgba(230, 230, 230, 0.75);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.attachment-remove:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200, 30, 30, 0.08);
}

/* Footer */
.booking-footer {
  margin-top: 2rem;
  text-align: center;
  color: rgba(230, 230, 230, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-container {
    padding: 4rem 1rem 2rem;
  }

  .booking-form {
    padding: 1.35rem 1.1rem 1.1rem;
  }

  .form-submit {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
  }
}
