/*-----------------------------------*\
  #RESERVATION FORM
\*-----------------------------------*/
.reservation-width-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-form-main-container {
  width: min(886px, 100%);
  min-height: 592px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px 48px 40px;
  border: 3px solid var(--grey-80, #ccc);
  background: #fffffff7;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.reservation-feedback {
  width: 100%;
  min-height: 1em;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: var(--regular);
  letter-spacing: 0.7px;
}

.reservation-feedback.is-success {
  color: var(--green-01, #2eb875);
}

.reservation-feedback.is-error {
  color: var(--red-01, #df3a3f);
}

.reservation-submit-button.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.reservation-form-main-title {
  width: 100%;
  color: var(--primary-brown);
  text-align: center;
  font-size: 36px;
  font-style: italic;
  font-weight: var(--medium);
  line-height: 100%;
}

.reservation-form-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.reservation-form-row {
  width: 100%;
  height: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Each form row becomes its own stacking context once the page's fade-up
   entrance animation applies a (identity) transform to it -- that traps
   the custom calendar popover's z-index inside its own row, so a later
   sibling row (checkboxes, textarea, submit button) paints on top of it in
   normal DOM order regardless of the popover's z-index. Lifting the row
   that currently holds an open popover above its siblings fixes that. */
.reservation-form-row:has(.reservation-calendar-field.is-open) {
  position: relative;
  z-index: 10;
}

.reservation-field {
  position: relative;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid var(--primary-gold-02, #cba14d);
  background: rgba(204, 204, 204, 0.1);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.reservation-field:focus-within {
  border-color: var(--primary-gold-02, #cba14d);
  box-shadow: 0 0 0 1px var(--primary-gold-02, #cba14d);
}

.reservation-text-field {
  padding: 0 24px;
}

.reservation-text-field input,
.reservation-select-field select,
.reservation-textarea-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--primary-brown);
  font-family: "Oswald", sans-serif;
  /* iOS Safari auto-zooms the whole page in on focus for any form field
       whose computed font-size is below 16px, and doesn't reliably zoom
       back out once the keyboard closes - keeping every reservation field
       at (at least) 16px avoids that entirely. */
  font-size: 16px;
}

.reservation-text-field input {
  height: 100%;
  font-weight: var(--light);
  line-height: 100%;
  letter-spacing: 0.7px;
}

.reservation-text-field input::placeholder,
.reservation-textarea-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.reservation-select-field {
  gap: 12px;
  padding: 0 24px;
}

.reservation-select-field select {
  height: 100%;
  flex: 1 1 auto;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  color: var(--primary-brown);
  font-weight: var(--regular);
  line-height: 100%;
  cursor: pointer;
}

.reservation-field-icon {
  width: 18px;
  height: 18px;
  max-width: none;
  flex: 0 0 18px;
}

.reservation-children-icon {
  width: 18.889px;
  height: 20px;
  flex-basis: 18.889px;
}

.reservation-dropdown-icon {
  width: 20px;
  height: 20px;
  max-width: none;
  flex: 0 0 20px;
  transform: rotate(180deg);
  pointer-events: none;
}

.reservation-date-display {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--primary-brown);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: var(--regular);
  line-height: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reservation-date-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.reservation-date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.reservation-guests-group {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reservation-textarea-field {
  width: 100%;
  height: 72px;
  align-items: flex-start;
  padding: 16px 24px;
}

.reservation-textarea-field textarea {
  height: 100%;
  resize: none;
  font-weight: var(--light);
  line-height: 140%;
  letter-spacing: 0.7px;
}

.reservation-checkboxes-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.reservation-checkbox-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.reservation-checkbox {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--neutral-07, #b3b3b3);
  border-radius: 2px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  cursor: pointer;
}

.reservation-checkbox:checked {
  border-color: var(--primary-gold-01, #f3d38e);
  background-color: var(--primary-gold-01, #f3d38e);
  background-image: url("../images/Icons/icon_checkmark.svg");
}

.reservation-checkbox:focus-visible {
  outline: 1px solid var(--primary-brown);
  outline-offset: 2px;
}

.reservation-checkbox-text,
.reservation-checkbox-text * {
  color: #46393c;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: var(--light);
  line-height: 100%;
  letter-spacing: 0.7px;
}

.reservation-required-mark {
  color: #c10c0b;
}

.reservation-submit-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.5);
}

.reservation-submit-button .main-link-btn-icon {
  filter: var(--filter-black);
  opacity: 0.5;
}

.reservation-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*-----------------------------------*\
  #RESERVATION PAGE
\*-----------------------------------*/

.reservation-section {
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/Images/Desktop/img-reservation-hero.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.reservation-section > .reservation-width-container {
  max-width: 1280px;
  margin: 0 auto;
}

/*-----------------------------------*\
  #RESERVATION CALENDAR (custom date picker)
\*-----------------------------------*/

.reservation-calendar-field {
  position: relative;
}

.reservation-calendar-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reservation-calendar-trigger:disabled {
  cursor: default;
}

.reservation-calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 280px;
  padding: 16px;
  border: 1px solid var(--primary-gold-02, #cba14d);
  background: var(--white, #fff);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.reservation-calendar-field.is-open .reservation-calendar-popover {
  display: flex;
}

.reservation-calendar-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
}

.reservation-calendar-title {
  color: var(--primary-brown);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: var(--medium);
  line-height: 100%;
  text-align: center;
  text-transform: capitalize;
}

.reservation-calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--primary-gold-02, #cba14d);
  background: transparent;
  color: var(--primary-brown);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.reservation-calendar-nav:is(:hover, :focus-visible):not(:disabled) {
  background: var(--primary-gold-02, #cba14d);
  color: var(--white, #fff);
}

.reservation-calendar-nav:disabled {
  opacity: 0.32;
  cursor: default;
}

.reservation-calendar-weekdays,
.reservation-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.reservation-calendar-weekdays span {
  color: rgba(0, 0, 0, 0.5);
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: var(--medium);
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.reservation-calendar-empty,
.reservation-calendar-day {
  width: 100%;
  aspect-ratio: 1;
}

.reservation-calendar-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: rgba(203, 161, 77, 0.1);
  color: var(--primary-brown);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: var(--regular);
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.reservation-calendar-day:is(:hover, :focus-visible):not(:disabled) {
  background: rgba(203, 161, 77, 0.32);
  transform: translateY(-1px);
}

.reservation-calendar-day[aria-selected="true"],
.reservation-calendar-day.is-selected {
  background: var(--primary-gold-02, #cba14d);
  color: var(--white, #fff);
}

.reservation-calendar-day:disabled {
  background: transparent;
  color: rgba(0, 0, 0, 0.22);
  cursor: default;
  transform: none;
}

.reservation-calendar-summary {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 161, 77, 0.3);
  color: rgba(0, 0, 0, 0.6);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  line-height: 140%;
  text-align: center;
}

@media (max-width: 1320px) {
  .reservation-section > .reservation-width-container {
    max-width: 1000px;
  }
}

@media (max-width: 1080px) {
  .reservation-section {
    padding-right: 48px;
    padding-left: 48px;
  }

  .reservation-section > .reservation-width-container {
    max-width: 100%;
  }
}

@media (max-width: 970px) {
  .reservation-section {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 700px) {
  .reservation-section {
    min-height: 972px;
    padding: 112px 20px 70px;
    align-items: flex-start;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 60%),
      url("../images/Images/Mobile/img-reservation-hero-mobile.jpg");
    background-position: center top;
    background-size: cover;
  }

  .reservation-section > .reservation-width-container {
    max-width: 100%;
  }

  .reservation-form-main-container {
    width: 100%;
    height: auto;
    gap: 32px;
    padding: 24px 20px 32px;
  }

  .reservation-form-main-title {
    font-size: 28px;
  }

  .reservation-form-fields {
    gap: 12px;
  }

  .reservation-form-row {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .reservation-text-field,
  .reservation-select-field {
    padding-right: 16px;
    padding-left: 16px;
  }

  .reservation-textarea-field {
    height: 88px;
    padding: 16px;
  }

  .reservation-checkbox-text,
  .reservation-checkbox-text * {
    line-height: 100%;
  }

  .reservation-submit-button {
    font-size: 16px;
    letter-spacing: 1.6px;
  }

  .reservation-submit-button .main-link-btn-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 500px) {
  .reservation-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .reservation-form-main-container {
    width: 100%;
  }

  .reservation-text-field input,
  .reservation-select-field select {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .reservation-guests-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .reservation-calendar-popover {
    left: -16px;
    right: -16px;
    width: calc(100% + 32px);
    min-width: 0;
  }
}
