/* Reusable mobile quick actions + booking / enquiry dialogs.
   Used by the Val D'or kit and available to other templates. */

.ma-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 241, 0.97);
  border-top: 1px solid rgba(36, 39, 31, 0.14);
  box-shadow: 0 -10px 36px rgba(20, 23, 16, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.24, 1), opacity 0.35s;
}

.ma-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .ma-bar {
    display: grid;
  }
  html.ma-bar-active body {
    padding-bottom: 74px;
  }
}

.ma-bar__book,
.ma-bar__enquire {
  min-height: 44px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ma-bar__book {
  background: #4f5a3b;
  color: #fbf8f1;
  border: 1px solid #4f5a3b;
}

.ma-bar__enquire {
  background: transparent;
  color: #4d5143;
  border: 1px solid rgba(36, 39, 31, 0.25);
  padding: 0 14px;
  opacity: 0.82;
}

.ma-bar__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7b7c6d;
  border: 1px solid rgba(36, 39, 31, 0.16);
  font-size: 18px;
  line-height: 1;
  justify-self: end;
}

/* ---------- dialogs ---------- */

.ma-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 18, 12, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: ma-fade 0.25s ease both;
}

@keyframes ma-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ma-modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92svh;
  overflow: auto;
  padding: 30px 22px calc(24px + env(safe-area-inset-bottom));
  background: #f4efe5;
  color: #24271f;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 60px rgba(10, 12, 8, 0.28);
  animation: ma-up 0.35s cubic-bezier(0.22, 0.61, 0.24, 1) both;
}

@keyframes ma-up {
  from { transform: translateY(24px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 640px) {
  .ma-overlay {
    align-items: center;
    padding: 24px;
  }
  .ma-modal {
    border-radius: 18px;
    padding: 34px 32px;
  }
}

.ma-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 39, 31, 0.18);
  border-radius: 50%;
  color: #4d5143;
  font-size: 20px;
  line-height: 1;
}

.ma-modal__close:focus-visible {
  outline: 1px solid rgba(36, 39, 31, 0.45);
  outline-offset: 2px;
}

.ma-eyebrow {
  margin: 0 0 8px;
  font-family: "Jost", ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4f5a3b;
}

.ma-title {
  margin: 0 48px 10px 0;
  font-family: "VdCormorant", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 7vw, 42px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
}

.ma-lead {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.65;
  color: #4d5143;
}

.ma-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}

/* ---------- branded book-now calendar (mobile action bar) ---------- */

.ma-book {
  display: block;
}

.ma-book-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  border: 1px solid rgba(36, 39, 31, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: #fbf8f1;
}

.ma-book-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 62px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #24271f;
  text-align: left;
  cursor: pointer;
}

.ma-book-date + .ma-book-date {
  border-left: 1px solid rgba(36, 39, 31, 0.14);
}

.ma-book-date.is-active {
  background: #ffffff;
}

.ma-book-date:focus-visible,
.ma-book-cal__head button:focus-visible,
.ma-stepper button:focus-visible {
  outline: 1px solid #ab8749;
  outline-offset: 2px;
}

.ma-book-date span {
  font-family: "Jost", ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7b7c6d;
}

.ma-book-date strong {
  font-family: "Jost", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.ma-book-cal {
  margin-bottom: 14px;
}

.ma-book-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ma-book-cal__head p {
  margin: 0;
  font-family: "VdCormorant", "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.ma-book-cal__head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(36, 39, 31, 0.18);
  border-radius: 50%;
  background: transparent;
  color: #24271f;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.ma-book-cal__head button:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.ma-book-cal__week,
.ma-book-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.ma-book-cal__week {
  margin-bottom: 2px;
}

.ma-book-cal__week span {
  padding: 4px 0;
  font-family: "Jost", ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  color: #7b7c6d;
}

.ma-book-cal__grid {
  gap: 0;
}

.ma-day {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #24271f;
  font-family: "Jost", ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  cursor: pointer;
}

.ma-day:hover {
  background: #ffffff;
}

.ma-day:focus-visible {
  outline: 1px solid #ab8749;
  outline-offset: 2px;
}

.ma-day.is-outside,
.ma-day.is-disabled {
  opacity: 0.22;
  pointer-events: none;
}

.ma-day.is-range {
  border-radius: 0;
  background: rgba(79, 90, 59, 0.14);
}

.ma-day.is-start,
.ma-day.is-end {
  border-radius: 50%;
  background: #4f5a3b;
  color: #fbf8f1;
}

.ma-book-guests {
  border-top: 1px solid rgba(36, 39, 31, 0.14);
  margin-top: 2px;
}

.ma-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(36, 39, 31, 0.12);
}

.ma-guest-row strong {
  display: block;
  font-family: "Jost", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.ma-guest-row div > span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #7b7c6d;
}

.ma-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ma-stepper button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(36, 39, 31, 0.24);
  border-radius: 50%;
  background: transparent;
  color: #24271f;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ma-stepper button:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.ma-stepper > span {
  min-width: 18px;
  font-size: 13px;
  text-align: center;
}

.ma-book-summary {
  margin: 12px 0 14px;
  font-size: 11px;
  line-height: 1.5;
  color: #7b7c6d;
}

.ma-book .ma-form__submit {
  width: 100%;
}

.ma-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.ma-field--full {
  grid-column: 1 / -1;
}

.ma-field span {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7b7c6d;
}

.ma-field input,
.ma-field select,
.ma-field textarea {
  width: 100%;
  border: 1px solid rgba(36, 39, 31, 0.18);
  border-radius: 10px;
  background: #fbf8f1;
  padding: 11px 12px;
  font-family: "Jost", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  color: #24271f;
  outline: none;
}

.ma-field input:focus,
.ma-field select:focus,
.ma-field textarea:focus {
  border-color: #4f5a3b;
  box-shadow: 0 0 0 2px rgba(79, 90, 59, 0.12);
}

.ma-field textarea {
  resize: vertical;
  min-height: 76px;
}

.ma-form__submit {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.ma-primary {
  min-height: 48px;
  width: 100%;
  border-radius: 999px;
  background: #4f5a3b;
  color: #fbf8f1;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid #4f5a3b;
  padding: 0 20px;
}

.ma-primary:disabled {
  opacity: 0.6;
}

.ma-note {
  margin: 14px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #7b7c6d;
}

.ma-phone {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #4d5143;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ma-captcha-wrap {
  grid-column: 1 / -1;
  min-height: 66px;
}

.ma-captcha {
  min-height: 65px;
}

.ma-captcha--loading {
  min-height: 65px;
}

.ma-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 10px 14px;
  border: 1px solid rgba(36, 39, 31, 0.2);
  border-radius: 8px;
  background: #fbf8f1;
  font-size: 12px;
  color: #4d5143;
}

.ma-check input {
  width: 18px;
  height: 18px;
  accent-color: #4f5a3b;
}

.ma-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.ma-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  background: rgba(164, 83, 63, 0.08);
  border-left: 2px solid #a4533f;
  font-size: 12px;
  color: #7a3a2b;
}

.ma-success {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 2px;
}

.ma-success p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4d5143;
}

.ma-success .ma-primary {
  margin-top: 12px;
}
