/* Private Dining Form popup */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.pdf-modal.is-open {
  display: flex;
}
.pdf-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.pdf-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #C2986B;
  color: #000;
  padding: 40px;
  font-family: "Mark Pro", sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: pdf-modal-in 0.25s ease-out;
}
/* Custom scrollbar (popup + textarea) */
.pdf-modal__dialog,
.pdf-field textarea {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #fff rgba(0, 0, 0, 0.12);
}
.pdf-modal__dialog::-webkit-scrollbar,
.pdf-field textarea::-webkit-scrollbar {
  width: 8px;
}
.pdf-modal__dialog::-webkit-scrollbar-track,
.pdf-field textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.12);
}
.pdf-modal__dialog::-webkit-scrollbar-thumb,
.pdf-field textarea::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 4px;
}
.pdf-modal__dialog::-webkit-scrollbar-thumb:hover,
.pdf-field textarea::-webkit-scrollbar-thumb:hover {
  background: #f0e6da;
}

@keyframes pdf-modal-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
body.pdf-modal-open {
  overflow: hidden;
}

.pdf-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
.pdf-modal__close:hover,
.pdf-modal__close:focus-visible {
  color: #fff;
}

.pdf-modal__title {
  font-size: 32px;
  color: #fff;
  line-height: 1.2;
  margin: 0 40px 24px 0;
}

.pdf-form__section {
  font-family: "Mark Pro", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 8px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.pdf-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-bottom: 24px;
}
.pdf-field--full {
  grid-column: 1 / -1;
}
/* Phone + Ext. share one row */
.pdf-field--phone {
  grid-column: 1 / 2;
}
.pdf-field--ext {
  grid-column: 2 / 3;
  max-width: 160px;
}

.pdf-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #fff;
}
.pdf-field label span {
  color: #fff;
  margin-left: 2px;
}
.pdf-field input[type="text"],
.pdf-field input[type="email"],
.pdf-field input[type="tel"],
.pdf-field input[type="number"],
.pdf-field input[type="date"],
.pdf-field input[type="time"],
.pdf-field select,
.pdf-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  color: #fff;
  background-color: #C2986B; /* same as the form background */
  border: 1px solid #fff;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.pdf-field select option {
  background: #C2986B;
  color: #fff;
}
.pdf-field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.pdf-field textarea {
  resize: vertical;
}
.pdf-field input:focus,
.pdf-field select:focus,
.pdf-field textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}
/* Keep the field colour when the browser autofills them */
.pdf-field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #C2986B inset;
  caret-color: #fff;
}
.pdf-field.has-error input,
.pdf-field.has-error select,
.pdf-field.has-error textarea {
  border-color: #8b0000;
  box-shadow: 0 0 0 1px #8b0000;
}
.pdf-field__error {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #6b0000;
}

.pdf-field--check label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
/* Custom checkbox: gold box, white border, white tick */
.pdf-field--check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  background: #C2986B;
  border: 1px solid #fff;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.pdf-field--check input:checked {
  background: #C2986B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' viewBox='0 0 14 11'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5.5l4 4L13 1'/%3E%3C/svg%3E") no-repeat center;
}
.pdf-field--check input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pdf-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pdf-form__note {
  color: #6b0000; /* same as field error messages */
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
}
.pdf-form__message {
  font-size: 16px;
  margin: 0 0 16px;
}
.pdf-form__message:empty {
  display: none;
}
.pdf-form__message.is-error {
  padding: 10px 14px;
  background: #fff;
  font-weight: 700;
  color: #8b0000;
}

.pdf-modal [hidden] {
  display: none !important;
}

/* Thank-you message shown in place of the form (same background as the form) */
.pdf-success {
  padding: 40px 0 8px;
  text-align: center;
  background: #C2986B;
}
.pdf-success__text {
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 24px;
  line-height: 1.4;
  color: #000;
}
.pdf-success__text:focus {
  outline: none;
}

/* Theme .btn is the same gold as the form, so invert it here */
.pdf-modal .pdf-form__submit {
  min-width: 200px;
  background: #000;
  border-color: #000;
  color: #fff;
}
.pdf-modal .pdf-form__submit:hover,
.pdf-modal .pdf-form__submit:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.pdf-form__submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 767px) {
  .pdf-modal__dialog {
    padding: 32px 20px 24px;
  }
  .pdf-modal__title {
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .pdf-modal {
    padding: 0;
    align-items: stretch;
  }
  .pdf-modal__dialog {
    max-width: none;
    height: 100%;
    max-height: none;
  }
  .pdf-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pdf-field,
  .pdf-field--phone,
  .pdf-field--ext {
    grid-column: 1 / -1;
    max-width: none;
  }
  .pdf-form__submit {
    width: 100%;
  }

  
}
/* White calendar icon in the Event Date field */
.pdf-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}