.booking-body {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: #1a1a1a;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
  --space-xl: clamp(24px, 3.2vw, 48px);
  --space-lg: clamp(18px, 2.6vw, 32px);
  --space-md: clamp(12px, 2.1vw, 20px);
  --space-sm: clamp(8px, 1.6vw, 14px);
  --day-size: clamp(28px, 4.6vw, 36px);
  --type-heading: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --type-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --type-label: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --type-hero-size: clamp(22px, 2.6vw, 30px);
  --type-hero-line: 1.2;
  --type-sub-size: clamp(12px, 1.4vw, 13px);
  --type-sub-line: 1.5;
  --type-label-size: clamp(11px, 1.4vw, 12px);
  --type-label-line: 1.4;
  --type-input-size: clamp(13px, 1.6vw, 14px);
  --type-input-line: 1.4;
  --type-strong: #1a1a1a;
  --type-muted: #6b7280;
}

.booking-body ::selection {
  background: #6b7c52;
  color: #fff;
}

.booking-layout {
  display: flex;
  min-height: 100svh;
  height: 100svh;
}

.booking-image {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: none;
  min-height: 0;
  --image-edge-x: 32px;
  --image-edge-bottom: 48px;
}

.booking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transform: scale(1);
  transition: transform 1s ease-in-out;
}

.booking-image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.image-brand {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 6px;
}

.image-brand h1 {
  font-family: "Poppins", "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 0;
}

.image-brand p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.2;
  white-space: nowrap;
}

.image-bottom {
  position: absolute;
  left: var(--image-edge-x);
  right: var(--image-edge-x);
  bottom: var(--image-edge-bottom);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.image-copy {
  position: static;
  color: rgba(255, 255, 255, 0.92);
  max-width: 380px;
}

.image-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.image-location a {
  color: inherit;
  text-decoration: none;
}

.image-location a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.7);
  text-underline-offset: 3px;
}

.image-copy p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

.booking-panel {
  flex: 1;
  background: #ffffff;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  min-height: 0;
}

.booking-panel::-webkit-scrollbar {
  display: none;
}

.mobile-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px var(--space-md);
  background: var(--bg);
  color: var(--text);
  position: relative;
}

.mobile-bar h2 {
  margin: 0 auto;
}

.mobile-bar h2 {
  font-family: "Poppins", "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: lowercase;
}

.panel-inner {
  padding: var(--space-lg) var(--space-md) calc(var(--space-lg) + 8px);
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.steps {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 28px;
}

.step {
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  cursor: pointer;
}

.step:focus-visible {
  outline: 2px solid rgba(107, 124, 82, 0.4);
  outline-offset: 4px;
}

.step-active {
  color: #6b7c52;
  border-color: #6b7c52;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(10px);
  animation: none;
  flex: 1;
  min-height: 0;
}

.form-step[data-step="2"] {
  gap: 16px;
}

.form-step[data-step="3"] {
  gap: 16px;
}

.form-step[data-step="2"] .step-body,
.form-step[data-step="3"] .step-body {
  flex: 0 0 auto;
  margin-bottom: auto;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.form-step.is-active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-title h3 {
  font-family: var(--type-heading);
  font-size: var(--type-hero-size);
  line-height: var(--type-hero-line);
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--type-strong);
}

.panel-title p {
  font-family: var(--type-body);
  font-size: var(--type-sub-size);
  line-height: var(--type-sub-line);
  color: var(--type-muted);
  font-weight: 400;
}

.panel-title span {
  color: rgba(107, 124, 82, 0.4);
  margin: 0 6px;
}

.step-heading {
  font-family: var(--type-heading);
  font-size: var(--type-hero-size);
  line-height: var(--type-hero-line);
  font-weight: 500;
  color: var(--type-strong);
  margin: 0 0 8px;
}


.options-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  min-width: 0;
}

.form-step[data-step="2"] .option-row {
  border-bottom: none;
}

.form-step[data-step="2"] .option-row-text {
  gap: 2px;
}

.option-row:last-child {
  border-bottom: none;
}

.option-row-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.option-row-icon {
  font-size: 24px;
  color: #6b7280;
}

.option-row-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.option-row-title {
  font-family: var(--type-body);
  font-size: 16px;
  font-weight: 600;
}

.option-row-subtitle {
  font-family: var(--type-body);
  font-size: var(--type-sub-size);
  line-height: var(--type-sub-line);
  color: var(--type-muted);
  word-break: break-word;
}

.option-row-link {
  font-size: 12px;
  color: #6b7c52;
  text-decoration: none;
  width: fit-content;
}

.option-row-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-block-compact {
  gap: 10px;
}

.form-step[data-step="3"] .contact-block {
  gap: 12px;
}

.form-step[data-step="3"] .contact-block-compact {
  gap: 8px;
}


.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--type-label);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  color: var(--type-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.field-compact {
  gap: 6px;
}

.field-compact span {
  font-size: 11px;
  letter-spacing: 0.1em;
}

.field-compact input {
  padding: 10px 12px;
  font-size: 13px;
}

.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.field.is-hidden {
  display: none;
}

.field-inline {
  text-transform: none;
  letter-spacing: normal;
}

.field-inline input {
  padding: 10px 12px;
  font-size: 12px;
  min-height: 44px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 14px 16px;
  font-family: var(--type-body);
  font-size: var(--type-input-size);
  line-height: var(--type-input-line);
  font-weight: 500;
  color: var(--type-strong);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-step[data-step="3"] .field input {
  padding: 10px 12px;
  font-size: var(--type-input-size);
  min-height: 44px;
}

.form-step[data-step="3"] .field textarea {
  padding: 12px;
  font-size: var(--type-input-size);
  min-height: 96px;
}

.form-step[data-step="3"] .field {
  gap: 6px;
}

.form-step[data-step="3"] .field-inline {
  margin-top: -4px;
}

.promo-block {
  gap: 8px;
}

.promo-trigger-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #6b7280;
  font-family: var(--type-label);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.promo-trigger-icon {
  font-size: 22px;
  line-height: 1;
  color: inherit;
  transition: transform 0.18s ease;
}

.promo-trigger-line.is-open .promo-trigger-icon {
  transform: rotate(90deg);
}

.promo-entry-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 8px;
}

.promo-entry-line[hidden] {
  display: none !important;
}

.promo-code-field {
  flex: 1;
  min-width: 0;
}

.promo-code-field input {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  padding: 0;
  color: #6b7280;
  font-family: var(--type-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-code-field input::placeholder {
  color: #6b7280;
}

.promo-code-field input:focus {
  border: 0;
  box-shadow: none;
}

.promo-apply-button {
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  cursor: pointer;
}

.promo-trigger-line:hover,
.promo-apply-button:hover {
  color: #111827;
}

.promo-message {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}

.promo-message-success {
  color: #0f766e;
}

.promo-message-error {
  color: #dc2626;
}




.field input:focus,
.field textarea:focus {
  border-color: #6b7c52;
  box-shadow: 0 0 0 2px rgba(107, 124, 82, 0.12);
}

.field-title {
  font-family: var(--type-label);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--type-muted);
  font-weight: 600;
}

.booking-comment-block .field-title {
  color: #2f2f2f;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

.booking-comment-field {
  margin-top: -10px;
  gap: 0;
}

.booking-comment-field textarea {
  border: 0;
  border-bottom: 0;
  background: transparent;
  min-height: 64px;
  padding: 0 0 12px 0 !important;
  padding-inline-start: 0 !important;
  text-indent: 0;
  border-radius: 0;
  box-shadow: none;
  color: #111827;
  font-size: 14px;
  resize: none;
}

.booking-comment-field textarea::placeholder {
  color: #6b7280;
}

.booking-comment-field textarea:focus {
  border-color: #aeb6c3;
  box-shadow: none;
}

.form-step[data-step="3"] .booking-comment-field textarea {
  min-height: 64px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-methods.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.contact-method {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--type-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--type-strong);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-methods.compact .contact-method {
  padding: 8px 6px;
  font-size: 11px;
}

.contact-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-method input:checked + span {
  color: #6b7c52;
}

.contact-method input:checked ~ span::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #6b7c52;
  box-shadow: 0 0 0 2px rgba(107, 124, 82, 0.12);
}

.contact-method:hover {
  background: rgba(107, 124, 82, 0.06);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 1px;
  left: 1px;
  background: #ffffff;
  border: 2px solid #d1d5db;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.toggle-switch input:checked + .toggle-track {
  background: #6b7c52;
  border-color: #6b7c52;
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(20px);
  border-color: #6b7c52;
}

.summary-panel {
  padding: 18px 0 8px;
  margin-top: 0;
  min-width: 0;
  position: relative;
  --summary-bg: #ffffff;
  display: flex;
  flex-direction: column;
}

.form-step[data-step="3"] .summary-panel {
  padding: 12px 0 4px;
  margin-top: auto;
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
}

.form-step[data-step="2"] .summary-panel {
  margin-top: auto;
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
}

.form-step[data-step="2"] .summary-title {
  margin-top: auto;
}

.summary-panel::before,
.summary-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.summary-panel::before {
  top: 0;
  background: linear-gradient(to bottom, var(--summary-bg), transparent);
}

.summary-panel::after {
  bottom: 0;
  background: linear-gradient(to top, var(--summary-bg), transparent);
}

.summary-panel.has-top-fade::before {
  opacity: 1;
}

.summary-panel.has-bottom-fade::after {
  opacity: 1;
}

.form-step[data-step="1"] .panel-actions .primary-button {
  width: 100%;
}

.form-step[data-step="1"] .panel-actions {
  grid-template-columns: 1fr;
}


.summary-title {
  font-family: var(--type-label);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--type-strong);
  margin-bottom: 12px;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-step[data-step="3"] .summary-rows {
  gap: 6px;
}


.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--type-body);
  font-size: 12px;
  line-height: var(--type-sub-line);
  color: var(--type-muted);
  gap: 10px;
  min-width: 0;
}

.summary-value {
  color: var(--type-strong);
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin-top: 2px;
}

.summary-options {
  display: flex;
  flex-direction: column;
  gap: inherit;
  padding-top: 0;
  margin: 0;
}

.form-step[data-step="3"] .summary-options {
  gap: inherit;
}


.summary-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--type-body);
  font-size: 12px;
  line-height: var(--type-sub-line);
  color: var(--type-muted);
  gap: 10px;
  min-width: 0;
  min-height: 22px;
}

.summary-row span:first-child,
.summary-option span:first-child {
  flex: 1;
  min-width: 0;
  padding-right: 10px;
}

.summary-row span:last-child,
.summary-option span:last-child {
  white-space: nowrap;
}

.summary-option span:last-child {
  color: var(--type-strong);
  font-weight: 600;
}

.summary-row-discount,
.summary-row-discount .summary-value {
  color: var(--type-strong);
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--type-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--type-strong);
  margin-top: 0;
}


.calendar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calendar-head h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.icon-button {
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: inherit;
}

.icon-button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.weekdays span {
  font-size: 10px;
  font-weight: 700;
  color: #6b7c52;
  text-transform: uppercase;
}

.days {
  gap: 10px 6px;
  font-size: 13px;
  grid-auto-rows: var(--day-size);
  min-height: calc(var(--day-size) * 6 + 10px * 5);
  align-content: start;
}

.day {
  width: var(--day-size);
  height: var(--day-size);
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.day:hover {
  background: rgba(0, 0, 0, 0.05);
}

.day.blocked {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(79, 94, 58, 0.5);
  position: relative;
}

.day.blocked:hover {
  background: transparent;
}

.day.blocked::after {
  content: none;
}

.day.muted {
  color: #9ca3af;
  cursor: default;
}

.day.range,
.day.range-start,
.day.range-end,
.day.range-single {
  position: relative;
  z-index: 1;
}

.day.range::before,
.day.range-start::before,
.day.range-end::before,
.day.range-single::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 88%;
  background: rgba(170, 200, 135, 0.7);
  transform: rotate(-4deg);
  z-index: -1;
  border-radius: 0;
  box-shadow: 0 10px 18px rgba(79, 94, 58, 0.2);
}

.day.range,
.day.range-start,
.day.range-end,
.day.range-single {
  color: #ffffff;
  font-weight: 600;
}

.calendar-legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: #6b7280;
}

.calendar-legend div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-marker {
  width: 14px;
  height: 14px;
  border-radius: 0;
  display: inline-block;
  position: relative;
}

.legend-blocked {
  background: transparent;
  border: 1px dashed rgba(79, 94, 58, 0.25);
}

.legend-blocked::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 2px;
  background: rgba(79, 94, 58, 0.5);
  transform: translateY(-50%);
  border-radius: 2px;
}

.legend-free {
  background: transparent;
  border: 1px solid rgba(79, 94, 58, 0.25);
}

.legend-selected {
  background: rgba(170, 200, 135, 0.7);
  transform: rotate(-4deg);
  box-shadow: 0 6px 12px rgba(79, 94, 58, 0.18);
  border-radius: 0;
}

.calendar-note {
  font-size: 12px;
  color: #6b7280;
}

.calendar-note-error {
  color: #b45309;
  margin-top: 6px;
}

.panel-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 0;
}

.form-step[data-step="3"] .panel-actions {
  gap: 12px;
  margin-top: 0;
}

.secondary-button,
.primary-button {
  padding: 12px 18px;
  font-size: clamp(11px, 1.4vw, 12px);
  font-weight: 600;
  min-height: 44px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.secondary-button {
  border: 1px solid #6b7c52;
  background: transparent;
  color: #6b7c52;
}

.secondary-button:hover {
  background: rgba(107, 124, 82, 0.06);
}

.certificate-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 0;
  align-self: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: #6b7c52;
  text-decoration: none;
  font-size: clamp(11px, 1.4vw, 12px);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.certificate-cta-button:hover {
  color: #7c8d61;
}

.certificate-cta-button:focus-visible {
  outline: 2px solid rgba(107, 124, 82, 0.35);
  outline-offset: 4px;
}

.certificate-cta-button .material-icons {
  font-size: 16px;
  line-height: 1;
}

.primary-button {
  border: none;
  background: #6b7c52;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(107, 124, 82, 0.2);
}

.primary-button:hover {
  background: #7c8d61;
}

.panel-disclaimer {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  margin: 0;
}

.submit-error-message {
  color: #dc2626;
}

.submit-error-message.is-hidden {
  display: none;
}

.panel-disclaimer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.theme-toggle {
  position: absolute;
  border: none;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle .material-icons {
  font-size: 18px;
  line-height: 1;
}

.theme-toggle .theme-dark,
.theme-toggle .theme-light {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dark .theme-toggle {
  background: #2c3325;
  color: #fff;
}

.dark .theme-toggle .theme-dark {
  opacity: 1;
}

.theme-toggle .theme-light {
  opacity: 1;
}

.theme-toggle-image {
  position: static;
  left: auto;
  z-index: 3;
}

.theme-toggle-mobile {
  gap: 6px;
}

.theme-toggle-mobile .theme-toggle-square {
  width: 32px;
  height: 32px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.theme-toggle-mobile .material-icons {
  font-size: 16px;
}

.theme-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

@media (max-width: 899px) {
  .theme-toggle-mobile {
    gap: 0;
  }

  .mobile-bar .theme-toggle-mobile {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
  }

  .theme-toggle-mobile .theme-toggle-square {
    width: 24px;
    height: 24px;
    box-shadow: none;
  }

  .theme-toggle-wrap.theme-toggle-mobile .theme-label {
    display: none;
  }

  .theme-toggle-wrap.theme-toggle-mobile .theme-toggle {
    background: transparent;
    box-shadow: none;
  }

  .theme-toggle-wrap.theme-toggle-mobile .theme-toggle:hover {
    transform: none;
  }

  .theme-toggle-wrap.theme-toggle-mobile .material-icons {
    font-size: 18px;
  }
}

.theme-toggle-wrap .theme-toggle {
  position: static;
  z-index: 0;
}

.theme-toggle-square {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

.theme-toggle-square .material-icons {
  font-size: 18px;
  line-height: 1;
}

.theme-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  padding: 0;
  transition: max-width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}

.theme-label-day {
  text-align: left;
}

.theme-label-night {
  text-align: right;
}

.theme-label-night,
.dark .theme-label-day {
  max-width: 0;
  opacity: 0;
  padding: 0;
}

.dark .theme-label-night {
  max-width: calc(var(--label-night-width, 0px) + 8px);
  opacity: 1;
  padding-right: 8px;
}

.theme-label-day {
  max-width: calc(var(--label-day-width, 0px) + 8px);
  opacity: 1;
  padding-left: 8px;
}

.dark .theme-toggle .theme-light {
  opacity: 0;
}

.dark .booking-body,
.booking-body.dark {
  background: #121212;
  color: #f2f2f2;
}

.dark .booking-panel {
  background: #1a1a1a;
}

.dark .mobile-bar {
  background: #1a1a1a;
  color: #f2f2f2;
}

.dark .step-active {
  color: #f2f2f2;
  border-color: #f2f2f2;
}

.dark .panel-title h3 {
  color: #f2f2f2;
}

.dark .step-heading {
  color: #f2f2f2;
}

.dark .panel-title p,
.dark .calendar-note,
.dark .calendar-legend,
.dark .panel-disclaimer {
  color: #8c8c8c;
}

.dark .submit-error-message {
  color: #ef4444;
}

.dark .calendar-note-error {
  color: #f2b766;
}

.dark .weekdays span {
  color: #8c8c8c;
}

.dark .icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark .day:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dark .day.range,
.dark .day.range-start,
.dark .day.range-end,
.dark .day.range-single {
  color: #f2f2f2;
}

.dark .day.blocked {
  color: #f2f2f2;
  text-decoration-color: #f2f2f2;
  opacity: 0.6;
}

.dark .secondary-button {
  border-color: #f2f2f2;
  color: #f2f2f2;
}

.dark .secondary-button:hover {
  background: rgba(242, 242, 242, 0.08);
}

.dark .certificate-cta-button {
  color: #f2f2f2;
}

.dark .certificate-cta-button:hover {
  color: #ffffff;
}

.dark .option-row-icon {
  color: #8c8c8c;
}

.dark .option-row-subtitle,
.dark .summary-row {
  color: #8c8c8c;
}

.dark .option-row-link {
  color: #4a5d45;
}

.dark .toggle-track {
  background: rgba(242, 242, 242, 0.08);
  border-color: rgba(242, 242, 242, 0.2);
}

.dark .toggle-track::after {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.dark .contact-method {
  border-color: rgba(242, 242, 242, 0.2);
  color: #f2f2f2;
}

.dark .contact-method:hover {
  background: rgba(242, 242, 242, 0.08);
}

.dark .option-row {
  border-bottom-color: rgba(242, 242, 242, 0.08);
}

.dark .summary-title {
  color: #f2f2f2;
}

.dark .summary-panel {
  --summary-bg: #1a1a1a;
}

.dark .summary-value,
.dark .summary-total {
  color: #f2f2f2;
}

.dark .summary-divider {
  background: rgba(242, 242, 242, 0.12);
}

.dark .summary-option {
  color: #8c8c8c;
}

.dark .summary-option span:last-child {
  color: #f2f2f2;
}

.dark .primary-button {
  background: #4a5d45;
  box-shadow: 0 12px 24px rgba(62, 77, 58, 0.35);
}

.dark .primary-button:hover {
  background: #3e4d3a;
}

.dark .contact-method input:checked + span {
  color: #f2f2f2;
}

.dark .contact-method input:checked ~ span::after {
  border-color: #4a5d45;
  box-shadow: 0 0 0 2px rgba(74, 93, 69, 0.2);
}

.dark .field,
.dark .field-title {
  color: #8c8c8c;
}

.dark .field input,
.dark .field textarea {
  border-color: rgba(242, 242, 242, 0.2);
  color: #f2f2f2;
  background: rgba(0, 0, 0, 0.16);
}

.dark .field input:focus,
.dark .field textarea:focus {
  border-color: #4a5d45;
  box-shadow: 0 0 0 2px rgba(74, 93, 69, 0.2);
}

.dark .field textarea::placeholder {
  color: #8c8c8c;
}

.dark .promo-message-success {
  color: #34d399;
}

.dark .promo-message-error {
  color: #f87171;
}

.dark .promo-trigger-line,
.dark .promo-trigger-icon,
.dark .promo-code-field input,
.dark .promo-code-field input::placeholder,
.dark .promo-apply-button {
  color: #8c8c8c;
}

.dark .promo-entry-line {
  border-bottom-color: rgba(226, 232, 240, 0.28);
}

.dark .promo-trigger-line:hover,
.dark .promo-apply-button:hover {
  color: #f2f2f2;
}


.dark .booking-comment-block .field-title {
  color: #e5e7eb;
}

.dark .booking-comment-field textarea {
  border: 0;
  border-bottom: 0;
  background: transparent;
}

.dark .day.range::before,
.dark .day.range-start::before,
.dark .day.range-end::before,
.dark .day.range-single::before {
  background: rgba(74, 93, 69, 0.28);
  box-shadow: 0 10px 18px rgba(62, 77, 58, 0.35);
}

@media (min-width: 900px) {
  .booking-image {
    display: block;
  }

  .booking-panel {
    max-width: 50%;
  }

  .panel-inner {
    padding: var(--space-xl);
  }

  .mobile-bar {
    display: none;
  }
}

@media (max-width: 899px) {
  .booking-panel {
    background: var(--bg);
  }
}

@media (max-width: 620px) {
  .steps {
    flex-wrap: wrap;
  }

  .calendar-head h4 {
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .panel-inner {
    padding: var(--space-md);
  }

  .mobile-bar {
    padding: 12px var(--space-md);
  }

  .steps {
    margin-bottom: 20px;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 12px;
  }

  .option-row {
    gap: 12px;
  }

  .option-row-meta {
    gap: 12px;
  }

  .summary-total {
    font-size: 14px;
  }

  .panel-title h3,
  .step-heading {
    margin-bottom: 6px;
  }

  .form-step,
  .step-body {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .calendar-head h4 {
    font-size: 15px;
  }

  .mobile-bar {
    padding: 10px var(--space-md);
  }

  .steps {
    display: none;
  }

  .panel-title p {
    font-size: 12px;
  }

  .toggle-switch {
    width: 36px;
    height: 20px;
  }

  .toggle-track::after {
    width: 16px;
    height: 16px;
  }

  .toggle-switch input:checked + .toggle-track::after {
    transform: translateX(16px);
  }

  .panel-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .mobile-bar h2 {
    font-size: 18px;
  }

  .theme-toggle-mobile .theme-label {
    display: none;
  }

  .option-row-title {
    font-size: 15px;
  }

  .option-row-subtitle {
    font-size: 11px;
  }

  .summary-option {
    font-size: 11px;
  }

  .summary-row {
    font-size: 11px;
  }

  .panel-disclaimer {
    font-size: 9px;
  }

  .panel-title h3,
  .step-heading {
    margin-bottom: 5px;
  }

  .form-step,
  .step-body {
    gap: 10px;
  }
}

@media (max-width: 380px) and (max-height: 820px) {
  .booking-layout {
    height: 100dvh;
  }

  .booking-panel {
    overflow: hidden;
  }

  .panel-inner {
    padding: 12px 12px calc(10px + env(safe-area-inset-bottom));
    height: 100%;
  }

  .mobile-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .steps {
    margin-bottom: 12px;
    gap: 8px;
    font-size: 10px;
  }

  .panel-title h3,
  .step-heading {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .panel-title p {
    font-size: 11px;
  }

  .form-step,
  .step-body {
    gap: 10px;
  }

  .options-stack {
    gap: 0;
  }

  .option-row {
    padding: 10px 0;
    gap: 10px;
  }

  .option-row-icon {
    font-size: 20px;
  }

  .option-row-title {
    font-size: 14px;
  }

  .option-row-subtitle {
    font-size: 10px;
  }

  .option-row-link {
    display: none;
  }

  .summary-panel {
    padding: 8px 0 2px;
  }

  .summary-title {
    font-size: 10px;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
  }

  .summary-rows {
    gap: 6px;
  }

  .summary-row,
  .summary-option {
    font-size: 10px;
  }

  .summary-total {
    font-size: 13px;
  }

  .contact-block,
  .contact-block-compact {
    gap: 8px;
  }

  .field {
    gap: 6px;
    font-size: 10px;
  }

  .field input,
  .field textarea {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 40px;
  }

  .booking-comment-field textarea {
    padding: 8px 0 12px 0 !important;
    padding-inline-start: 0 !important;
    min-height: 56px;
  }

  .contact-methods {
    gap: 6px;
  }

  .contact-method {
    padding: 8px 6px;
    font-size: 10px;
  }

  .panel-actions {
    gap: 8px;
    margin-top: auto;
  }

  .secondary-button,
  .primary-button {
    padding: 10px 12px;
    min-height: 40px;
    font-size: 10px;
  }

  .panel-disclaimer:not(.submit-error-message),
  .calendar-note:not(.calendar-note-error),
  .calendar-legend {
    display: none;
  }
}

@media (max-height: 820px) {
  .panel-inner {
    padding: var(--space-md);
  }

  .steps {
    margin-bottom: 18px;
  }

  .panel-title h3,
  .step-heading {
    font-size: 24px;
  }

  .options-stack {
    gap: 0;
  }

  .option-row {
    padding: 12px 0;
  }

  .summary-panel {
    padding: 14px 0 4px;
  }

  .summary-title {
    margin-bottom: 10px;
  }

  .summary-rows {
    gap: 8px;
  }

  .panel-actions {
    gap: 10px;
  }

  .secondary-button,
  .primary-button {
    padding: 10px 14px;
  }
}

@media (max-height: 700px) {
  .steps {
    gap: 10px;
    margin-bottom: 14px;
  }

  .calendar {
    gap: 10px;
  }

  .panel-actions {
    gap: 10px;
  }

  .summary-rows {
    gap: 6px;
  }
}

@media (max-height: 620px) {
  .booking-body {
    --day-size: clamp(24px, 4.2vw, 30px);
  }

  .panel-inner {
    padding: 12px 16px;
  }

  .panel-title h3,
  .step-heading {
    font-size: 22px;
  }

  .calendar-note {
    font-size: 11px;
  }

  .weekdays span {
    font-size: 9px;
  }

  .option-row {
    padding: 10px 0;
  }

  .summary-panel {
    padding: 10px 0 2px;
  }
}
