h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}

.quote-title {
  margin-top: 0;
  color: #4a3728;
  letter-spacing: 0.02em;
	text-align: center;
}

.quote-calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-year-select {
  min-width: 120px;
  padding: 0.5rem 0.65rem;
}

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

.quote-month-nav,
.quote-btn {
  background: #153243;
  color: #fff;
  border: 0;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
}

.quote-month-nav:hover,
.quote-btn:hover {
  background: #1e455c;
}

.quote-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quote-calendar-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: 1rem 0;
}

.quote-key-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quote-key-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid #cfd8e3;
}

.quote-key-available {
  background: #dfecfb;
}

.quote-key-selected {
  background: #1e3755;
  border-color: #1e3755;
}

.quote-key-unavailable {
  background: repeating-linear-gradient(-45deg, #f1f3f6, #f1f3f6 6px, #e6e9ee 6px, #e6e9ee 12px);
  border-color: #f1f1f1;
}

.quote-month-card {
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.6rem;
}

.quote-month-name {
	margin: 0 0 0.5rem;
	text-align: center;
	font-weight: bold;
	text-transform: uppercase;
}

.quote-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.quote-day-header {
  font-weight: 700;
  text-align: center;
  font-size: 0.72rem;
  color: #4f4f4f;
}

.quote-day {
  min-height: 46px;
  border: 1px solid #dfecfb;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.2rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.quote-day.empty {
  border: none;
  background: transparent;
}

.quote-day.available {
  background: #dfecfb;
border-color: #dfecfb;
  cursor: pointer;
}

.quote-day.active {
  background: #1e3755;
  border-color: #1e3755;
  color: #fff;
}

.quote-day:disabled {
  background: repeating-linear-gradient(-45deg, #f1f3f6, #f1f3f6 6px, #e6e9ee 6px, #e6e9ee 12px);
  color: #b9c0ca;
  cursor: not-allowed;
  border-color: #f1f1f1;
  cursor: not-allowed;
}

.quote-day small {
  font-size: 0.62rem;
  line-height: 1;
  color: #6d4d29;
}

.quote-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
text-align: center;
}

.quote-modal.open {
  display: flex;
}

.quote-modal-inner {
  max-width: 420px;
  width: 100%;
  background: #fff;
  padding: 1.2rem;
  position: relative;
}

.quote-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.quote-modal h3 {
    font-size: min(max(20px, 1.25rem + (1vw - 3.6px) * .1282), 22px);
    font-weight: var(--font-med);
    letter-spacing: min(max(6px, .375rem + (1vw - 3.6px) * .0385), 6.6px);
    margin-bottom: min(max(30px, 1.875rem + (1vw - 3.6px) * -.1923), 27px);
    min-height: 0;
    text-transform: uppercase;
}

.quote-modal p {
  margin-bottom: 1rem;
}

.quote-modal .btn {
  margin: 0 auto;
}

.quote-panel {
  background: #fff;
  border: 1px solid #d7cfb7;
  padding: 1rem;
  margin-top: 1rem;
}

#quote-start-quote {
  display: block;
  margin: 1rem auto 0;
}

.quote-builder-launch {
  margin-bottom: 1rem;
}

#quote-customiser-form {
  margin-top: 1rem;
}

.quote-builder-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.quote-builder-top h4 {
  margin: 0;
  color: #2b3749;
  font-size: 2rem;
}

.quote-selection-card {
  background: #fff;
  border: 1px solid #d4dbe4;
  border-bottom: 3px solid #c03b82;
  padding: 1rem;
  margin: 1rem 0;
}

.quote-selection-card h5,
.quote-builder-main h5,
.quote-builder-summary h5 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #253447;
}

.quote-builder-summary h5 {
  border-bottom: 1px solid #d7dfeb;
  padding-bottom: 0.4rem;
}

.quote-total-row + h5 {
  margin-top: 2rem;
}

.quote-selection-card p {
  margin: 0.2rem 0;
  color: #253447;
}

.quote-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: start;
}

.quote-builder-main {
  background: #f4f7fb;
  padding: 0.8rem;
  border: 1px solid #d4dbe4;
}

.quote-helper-line {
  margin-top: 0;
  color: #617080;
}

.quote-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.quote-option-item {
  background: #fff;
  border: 1px solid #d7dfeb;
  padding: 0.6rem 0.7rem;
}

.quote-extra-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quote-extra-options .quote-option-item {
  padding: 0.5rem 0.7rem;
}

.quote-accommodation-card {
  margin-bottom: 1rem;
}

.quote-catering-card,
.quote-drinks-card {
  margin-bottom: 1rem;
}

.quote-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.45rem;
  width: 100%;
}

.quote-option-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 150px;
  align-items: center;
  column-gap: 0.75rem;
  width: 100%;
  min-width: 0;
  padding: 0.2rem 0;
}

.quote-option-check > span {
  display: block;
  min-width: 0;
  width: 100%;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quote-option-check > span a {
  color: inherit;
  text-decoration: underline;
}

.quote-option-check input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  justify-self: start;
}

.quote-option-check > strong {
  display: block;
  text-align: right;
  white-space: nowrap;
  justify-self: end;
  margin-left: 0;
}

.quote-option-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quote-option-qty-row label {
  margin: 0;
}

.quote-option-qty-row small {
  display: block;
  color: #667585;
}

.quote-option-qty-row input {
  max-width: 100px;
}

.quote-menu-details {
  margin: 0.2rem 0 0.6rem;
  padding: 0.6rem;
  border: 1px solid #d7dfeb;
  background: #f8fbff;
}

.quote-menu-details strong {
  display: block;
  margin-bottom: 0.35rem;
}

.quote-menu-details p {
  margin: 0.25rem 0;
}

.quote-menu-details a {
  color: #153243;
  text-decoration: underline;
}

.quote-builder-summary {
  background: #fff;
  border: 1px solid #d4dbe4;
  padding: 0.8rem;
  position: sticky;
  top: 10rem;
}

.quote-save-quote {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.8rem;
  background: var(--button--color-background);
}

.quote-book-viewing {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.8rem;
  background: var(--button--color-background);
}

.quote-breakdown {
  padding: 0.6rem 0;
}

.quote-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.35rem 0;
  color: #2f3d4e;
}

.quote-step-section {
  margin: 1rem 0;
}

.quote-step-panel {
  border: 0;
  margin-top: 0;
  padding: 0;
}

.quote-selected-price-line {
  text-align: center;
  margin: 1rem 0 1.2rem;
}

.quote-selected-price-line strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  margin-top: 0.4rem;
}

.quote-field {
  margin-bottom: 0.8rem;
}

.quote-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid #cfc8b2;
}

.quote-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.quote-event-row {
  margin-bottom: 0.75rem;
}

.quote-guest-title {
	margin: 0.3rem 0 0.5rem;
	font-weight: bold;
}

.quote-guest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quote-guest-grid-single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quote-consent {
  margin: 0.2rem 0 1rem;
}

.quote-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 400;
}

.quote-consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.quote-builder-calendar {
  display: block;
}

.quote-builder-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.quote-q-head {
  text-align: center;
  font-size: 0.82rem;
  color: #5a6572;
  font-weight: 600;
  padding: 0.25rem 0;
}

.quote-q-day {
  border: 1px solid #dfecfb;
  background: #e9f0f8;
  color: #153243;
  min-height: 40px;
  cursor: pointer;
  font-weight: 700;
}

.quote-q-day.unavailable {
  background: repeating-linear-gradient(-45deg, #f1f3f6, #f1f3f6 6px, #e6e9ee 6px, #e6e9ee 12px);
  color: #b9c0ca;
  cursor: not-allowed;
}

.quote-q-day.active {
  background: #1e3755;
  color: #fff;
}

.quote-q-day.empty {
  border: 0;
  background: transparent;
  pointer-events: none;
}

.quote-date-chip {
  border: 1px solid #b9a789;
  padding: 0.45rem 0.75rem;
  background: #fff;
  cursor: pointer;
}

.quote-date-chip.active {
  background: #153243;
  color: #fff;
}

.quote-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed #ddd;
  padding: 0.6rem 0;
}

.quote-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  font-size: 1.1rem;
  border-top: 1px dashed #ddd;
}

.quote-hidden {
  display: none;
}

.quote-flow-feedback {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.quote-flow-feedback-info {
  color: #153243;
  border-color: #bfd3e6;
  background: #edf5fc;
}

.quote-flow-feedback-success {
  color: #20412e;
  border-color: #b8ddc4;
  background: #eaf7ef;
}

.quote-flow-feedback-error {
  color: #6f1f2d;
  border-color: #f2c8d0;
  background: #fcecef;
}

@media (max-width: 768px) {
  .quote-grid-3,
  .quote-grid-2 {
    grid-template-columns: 1fr;
  }

  .quote-guest-grid {
    grid-template-columns: 1fr;
  }

  .quote-builder-grid {
    grid-template-columns: 1fr;
  }

  .quote-builder-summary {
    position: static;
  }

  .quote-builder-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .quote-day {
    min-height: 38px;
  }
}

@media (max-width: 520px) {
  .quote-calendar-grid {
    grid-template-columns: 1fr;
  }
}
