/* CONDITIONS SECTION */
.conditions-section {
  display: grid;
  place-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 4.5rem var(--horizontal-spacing) 0 var(--horizontal-spacing);
}

.conditions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 55rem;
}

.conditions-title {
  font-size: 2rem;
  line-height: 1.25;
  text-align: center;
}

.conditions-wrapper .u-decor-green {
  margin-top: 3rem;
}

.conditions-description {
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
  margin-top: 3rem;
}

.conditions-footer {
  font-size: 1.125rem;
  line-height: 2;
  text-transform: uppercase;
  margin-top: 3rem;
}

.conditions-wrapper .u-button-component {
  margin-top: 5rem;
}

/* WIZARD LAYOUT */
.wizard-grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  width: 100%;
  min-height: 100vh;
  padding: 0 8rem 0 var(--horizontal-spacing);
}

.wizard-grid-layout .wizard-steps {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  height: 100vh;
}

.wizard-steps .wizard-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wizard-step[data-state="next"] {
  opacity: 0.3;
}

.wizard-step .wizard-step-indicator {
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-foreground-heading);
  border: 2px solid var(--color-foreground-heading);
  border-radius: 99px;
}

.wizard-step[data-state="active"] .wizard-step-indicator {
  background: none;
}

.wizard-step .wizard-step-label {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.12px;
}

.wizard-grid-layout .wizard-step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 2 / span 3;
  padding: 8rem 0;
}

/* MENU LIST SECTION */
.menu-list-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.menu-list-section h1 {
  font-size: 2rem;
  line-height: 1.25;
}

.menu-list-section .menu-item {
  display: flex;
  flex-direction: column;
}

.menu-item .menu-item-title {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.menu-item .menu-item-subtitle {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 500;
  margin-top: 2rem;
}

.menu-item .menu-item-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  margin-top: 1.5rem;
}

.menu-item-content .menu-item-description {
  max-width: 45rem;
}

/* GUESTS SELECTOR */
.guests-selector {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4rem;
}

.guests-selector h1 {
  font-size: 2rem;
  line-height: 1.25;
}

.guests-selector .selector-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-auto-flow: row;
  gap: 1rem;
}

.selector-grid .selector-item {
  display: grid;
  place-content: center;
  width: 8rem;
  height: 8rem;
  font-size: 2rem;
  line-height: 1.3;
  border: 1px dotted var(--color-foreground-heading);
  opacity: 0.5;
  cursor: pointer;
}

.guests-selector .guests-selector-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.guests-selector-footer a {
  font-weight: 500;
}

/* DATETIME SELECTOR */
.datetime-selector {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.datetime-selector h1 {
  font-size: 2rem;
  line-height: 1.25;
}

.datetime-selector .datetime-selector-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr;
  gap: 15vw;
}

.time-selector {
  display: flex;
  align-items: start;
  gap: 5rem;
}

.time-selector .time-selector-title {
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
}

.time-selector-slots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.time-selector a {
  font-size: 1.125rem;
  line-height: 1.3;
  opacity: 0.5;
  padding: 0.5rem 2rem;
  border: 1px dotted var(--color-foreground-heading);
}


.booking-calendar {
  width: min(100%, 27rem);
  font-family: "pp-pangram-sans", sans-serif;
  color: var(--color-foreground-heading);
  border-collapse: separate;
  border-spacing: 0.5rem;
}

.booking-calendar table {
  width: 100%;
}

.booking-calendar tr:first-child td {
  color: var(--color-background) !important;
  opacity: 1;
}

.booking-calendar tr:first-child td,
.booking-calendar tr:first-child td *,
.booking-calendar tr:first-child a,
.booking-calendar tr:first-child span {
  color: var(--color-background) !important;
}

.booking-calendar th {
  height: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.booking-calendar td {
  width: 14.285%;
  height: 3rem;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
  border: 1px dotted var(--color-foreground-heading);
  opacity: 0.5;
}

.booking-calendar td a {
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
}

.booking-calendar td a:hover,
.booking-calendar td a:hover * {
  background: var(--color-foreground-heading);
  color: var(--color-background) !important;
}

.booking-calendar td[style*="Gray"],
.booking-calendar td[style*="gray"] {
  border-color: var(--color-foreground-heading);
  opacity: 0.2;
}

.booking-calendar td[style*="Silver"],
.booking-calendar td[style*="silver"],
.booking-calendar td[style*="#CCCCCC"],
.booking-calendar td[style*="#cccccc"] {
  background: var(--color-foreground-heading) !important;
  color: var(--color-background) !important;
  border-color: var(--color-foreground-heading);
  opacity: 1;
}

/* NOTES SECTION */
.notes-section {
  display: flex;
  flex-direction: column;
}

.notes-section h1 {
  font-size: 2rem;
  line-height: 1.25;
}

.notes-section .notes-subtitle {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-top: 1rem;
}

.notes-section .notes {
  max-width: 55rem;
  min-height: 8lh;
  font-size: 1.125rem;
  line-height: 1.3;
  resize: none;
  field-sizing: content;
  padding: 1rem 0.75rem;
  border: 1px solid var(--color-foreground-heading);
  margin-top: 4rem;
  outline: none;
}

.notes-section .u-button-component {
  align-self: flex-start;
  margin-top: 4rem;
}

/* PERSONAL DATA */
.personal-data {
  display: flex;
  flex-direction: column;
}

.personal-data h1 {
  font-size: 2rem;
  line-height: 1.25;
}

.personal-data .personal-data-form {
  display: flex;
  flex-direction: column;
  max-width: 55rem;
  margin-top: 4rem;
}

.personal-data-form .input-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-field label {
  font-size: 1.125rem;
  line-height: 1.3;
}

.input-field input {
  font-size: 1.125rem;
  line-height: 1.3;
  padding: 0.75rem;
  border: 1px solid var(--color-foreground-heading);
  outline: none;
}

.personal-data-form .input-field:not(:first-child) {
  margin-top: 1.5rem;
}

.personal-data-form input[type="checkbox"] {
  display: none;
}

.personal-data-form .input-row-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  cursor: pointer;
}

.input-row-field .checkbox-input {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  border: 1px solid var(--color-foreground-heading);
}

input:checked + .input-row-field .checkbox-input {
  background: var(--color-foreground-heading);
}

.personal-data-form .u-button-component {
  align-self: flex-start;
  margin-top: 3.5rem;
}

/* SUMMARY SECTION */
.summary-section {
  display: flex;
  flex-direction: column;
}

.summary-section h1 {
  font-size: 2rem;
  line-height: 1.25;
}

.summary-section .summary-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 5rem;
}

.summary-list .summary-line {
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.summary-line .summary-line-label {
  font-size: 1.25rem;
  line-height: 1.3;
}

.summary-line .summary-line-value {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 2;
}

.summary-section .summary-error {
  display: block;
  max-width: 45rem;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--color-foreground-heading);
  margin-top: 3rem;
}

.summary-section .u-button-component {
  align-self: flex-start;
  margin-top: 4rem;
}

/* CONFIRMATION SECTION */
.confirmation-section {
  display: grid;
  place-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 4.5rem var(--horizontal-spacing) 0 var(--horizontal-spacing);
}

.confirmation-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 55rem;
}

.confirmation-title,
.confirmation-description {
  font-size: 2rem;
  line-height: 1.25;
  text-align: center;
}

.confirmation-wrapper .u-decor-green {
  margin-top: 3rem;
}

.confirmation-description {
  margin-top: 3rem;
}

.confirmation-wrapper .u-button-component {
  margin-top: 5rem;
}

@media only screen and (max-width: 640px) {
  /* WIZARD LAYOUT */
  .wizard-grid-layout {
    padding: 0 var(--horizontal-spacing);
  }

  .wizard-grid-layout .wizard-steps {
    display: none;
  }

  .wizard-grid-layout .wizard-step-content {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  /* MENU LIST SECTION */
  .menu-list-section h1 {
    font-size: 7vw;
  }

  .menu-item .menu-item-subtitle {
    margin-top: 1rem;
  }

  .menu-item .menu-item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  /* GUESTS SELECTOR */
  .guests-selector h1 {
    font-size: 7vw;
  }

  .guests-selector .selector-grid {
    width: 100%;
    grid-template-columns: repeat(2, auto);
  }

  .selector-grid .selector-item {
    width: 100%;
  }

  /* DATETIME SELECTOR */
  .datetime-selector h1 {
    font-size: 7vw;
  }

  .datetime-selector .datetime-selector-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .time-selector {
    align-items: flex-start;
    gap: 2rem;
  }
  .booking-calendar {
    width: 100%;
  }

  .booking-calendar th,
  .booking-calendar td {
    height: 2.75rem;
  }

  .time-selector .time-selector-slots {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
