/* =========================================
   BOOKING
========================================= */

.booking {
  padding: 80px 20px;
}

.booking-box {
  max-width: 900px;
  margin: 0 auto;
}

.booking-section-title {
  width: 100%;
  margin: 40px 0 20px;
  padding-bottom: 10px;

  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  border-bottom: 1px solid #ddd;
}


/* =========================================
   FORMULARIO
========================================= */

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.booking-form > .booking-section-title,
.booking-form > .rooms-container,
.booking-form > .add-room-container,
.booking-form > .booking-dates,
.booking-form > .booking-summary,
.booking-form > .capacity-note,
.booking-form > .booking-submit {
  grid-column: 1 / -1;
}


.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;

  border: 1px solid #d8d8d8;
  border-radius: 6px;

  background: #fff;
  font-size: 15px;

  box-sizing: border-box;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #222;
}


/* =========================================
   HABITACIONES
========================================= */

.rooms-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.room-card {
  position: relative;

  padding: 24px;

  border: 1px solid #ddd;
  border-radius: 10px;

  background: #fafafa;
}

.room-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;
}

.room-title {
  margin: 0;

  font-size: 18px;
  font-weight: 700;
}

.remove-room-btn {
  border: 0;
  background: transparent;

  color: #777;

  font-size: 13px;
  cursor: pointer;
}

.remove-room-btn:hover {
  color: #000;
}

.room-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
}


/* =========================================
   AGREGAR HABITACIÓN
========================================= */

.add-room-container {
  margin-top: 5px;
}

.add-room-btn {
  width: 100%;
  min-height: 48px;

  border: 1px dashed #aaa;
  border-radius: 6px;

  background: transparent;

  cursor: pointer;
}


/* =========================================
   FECHAS
========================================= */

.booking-dates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}


/* =========================================
   RESUMEN
========================================= */

.booking-summary {
  margin-top: 20px;
  padding: 25px;

  border-radius: 10px;
  background: #f6f6f4;
}

.summary-title {
  margin-bottom: 20px;

  font-size: 18px;
  font-weight: 700;
}

.summary-dates {
  margin-bottom: 25px;

  font-size: 14px;
  line-height: 1.7;
}

.summary-room {
  padding: 18px 0;

  border-top: 1px solid #ddd;
}

.summary-room:first-of-type {
  border-top: 0;
}

.summary-room-title {
  margin-bottom: 8px;

  font-weight: 700;
}

.summary-room-info {
  font-size: 14px;
  line-height: 1.7;
}

.summary-room-price {
  margin-top: 8px;

  font-size: 14px;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 20px;
  padding-top: 20px;

  border-top: 2px solid #222;

  font-size: 20px;
  font-weight: 700;
}

.summary-disclaimer {
  margin-top: 15px;

  font-size: 12px;
  line-height: 1.5;

  color: #777;
}


/* =========================================
   MENSAJES
========================================= */

.capacity-note {
  min-height: 20px;

  font-size: 13px;
  line-height: 1.5;
}


/* =========================================
   BOTÓN
========================================= */

.booking-submit {
  width: 100%;
  min-height: 52px;

  margin-top: 10px;

  cursor: pointer;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

  .booking-form {
    grid-template-columns: 1fr;
  }

  .room-fields {
    grid-template-columns: 1fr;
  }

  .booking-dates {
    grid-template-columns: 1fr;
  }

  .room-card {
    padding: 18px;
  }

}