/* =========================================
   Room Hire Booking
   ========================================= */

.room-hire-booking {
  margin-top: 2rem;
}

.room-hire-booking__heading {
  margin: 0 auto 1.75rem auto;
  padding: 0 0 1rem;
  border-bottom: 2px dotted currentColor;
  color: var(--turquoise);
}

.room-hire-booking__rates > p {
  margin-bottom: 1.5rem;
}

/* =========================================
       Rate Groups
       ========================================= */

.room-hire-booking__rate-group {
  margin-top: 2rem;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--turquoise);
  border-radius: 0.5rem;
  background: var(--white);
}

.room-hire-booking__subheading {
  margin: 0;
  padding: 0.875rem 1.25rem;
  background: var(--turquoise);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.room-hire-booking__table-wrap {
  padding: 0;
  background: var(--white);
}

/* Standard classrooms */

.room-hire-booking__rate-group:first-of-type {
  border-color: var(--turquoise);
}

.room-hire-booking__rate-group:first-of-type .room-hire-booking__subheading {
  background: var(--turquoise);
}

/* Large rooms */

.room-hire-booking__rate-group:nth-of-type(2) {
  border-color: var(--green);
}

.room-hire-booking__rate-group:nth-of-type(2) .room-hire-booking__subheading {
  background: var(--green);
}

/* =========================================
       Rate Tables - Mobile
       ========================================= */

.room-hire-booking__table {
  width: 100%;
  border-collapse: collapse;
  height: auto;
  margin: 0;
}

.room-hire-booking__table thead {
  display: none;
}

.room-hire-booking__table tbody,
.room-hire-booking__table tr,
.room-hire-booking__table th,
.room-hire-booking__table td {
  display: block;
}

.room-hire-booking__table tr {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--cool-grey);
}

.room-hire-booking__table tbody tr:first-child {
  border-top: 0;
}

.room-hire-booking__table th[scope="row"] {
  margin-bottom: 0.5rem;
  text-align: left;
}

.room-hire-booking__table td {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.2rem 0;
  text-align: right;
}

.room-hire-booking__table td::before {
  content: attr(data-label);
  font-weight: 600;
  text-align: left;
}

.room-hire-booking__table tbody,
.room-hire-booking__table tr {
  height: auto;
}

/* =========================================
       Specialist Rates
       ========================================= */

.room-hire-booking__specialist {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--dark-blue);
  border-radius: 0.5rem;
  background: var(--white);
}

.room-hire-booking__specialist .room-hire-booking__subheading {
  margin-top: 0;
  padding: 0.875rem 1.25rem;
  background: var(--dark-blue);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.room-hire-booking__specialist p {
  margin: 0;
  padding: 1rem 1.25rem;
}

/* =========================================
       Important Information
       ========================================= */

.room-hire-booking__requirement {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 4rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--pink-20);
  border: 2px solid var(--pink);
}

.room-hire-booking__requirement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  line-height: 1;
  font-weight: 700;
}

.room-hire-booking__requirement-content h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
}

.room-hire-booking__requirement-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 400;
}

/* =========================================
     Booking
     ========================================= */

.room-hire-booking__enquiries {
  margin-top: 2rem;
}

.room-hire-booking__booking-option {
  margin-top: 1.75rem;
}

.room-hire-booking__booking-option h3 {
  margin: 0 0 1.25rem;
  padding: 0 0 1rem;
  border-bottom: 2px dotted var(--turquoise);
  color: var(--almost-black);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.room-hire-booking__booking-option p {
  margin-bottom: 0.75rem;
}

.room-hire-booking__booking-option p:last-child {
  margin-bottom: 0;
}

.room-hire-booking__booking-option:last-child {
  margin-top: 2rem;
  padding-top: 0;
  border-top: 0;
}

/* =========================================
       Tablet and above
       ========================================= */

@media (min-width: 37.5rem) {
  .room-hire-booking__table thead {
    display: table-header-group;
  }

  .room-hire-booking__table tbody {
    display: table-row-group;
  }

  .room-hire-booking__table tr {
    display: table-row;
    padding: 0;
    border: 0;
  }

  .room-hire-booking__table th,
  .room-hire-booking__table td {
    display: table-cell;
    padding: 0.65rem 1.25rem;
    border-bottom: 2px solid var(--cool-grey);
  }

  .room-hire-booking__table thead th {
    background: none;
    text-align: left;
  }

  .room-hire-booking__table th:not(:last-child),
  .room-hire-booking__table td:not(:last-child) {
    border-right: 2px solid var(--cool-grey);
  }

  .room-hire-booking__table tbody tr:last-child th,
  .room-hire-booking__table tbody tr:last-child td {
    border-bottom: 0;
  }

  .room-hire-booking__table th[scope="row"] {
    width: 32%;
    margin: 0;
  }

  .room-hire-booking__table td {
    text-align: left;
  }

  .room-hire-booking__table td::before {
    display: none;
  }
}
