/* Booking dialog desktop redesign — Figma node 493:599 */
.booking-desktop-close {
  display: none;
}

.booking-option-card-price,
.booking-field-hint {
  margin: 0;
}

@media (min-width: 769px) {
  .booking-dialog {
    width: min(960px, calc(100vw - 40px));
    height: min(calc(100dvh - 40px), 720px);
    border-radius: 20px;
    background: #ebeaea;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
  }

  .booking-dialog-container {
    position: relative;
    display: grid;
    grid-template-columns: 370px 1fr;
    grid-template-rows: 1fr;
    height: 100%;
  }

  .booking-desktop-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.08);
    color: #444444;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 200ms var(--ease-out);
  }

  @media (hover: hover) and (pointer: fine) {
    .booking-desktop-close:hover {
      background: rgba(0, 0, 0, 0.14);
      color: #222222;
    }
  }

  .booking-desktop-close svg {
    width: 15px;
    height: 15px;
  }

  .booking-dialog-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 28px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.52) 100%),
      url("/assets/booking-banner.webp") center 38% / cover no-repeat;
    overflow: hidden;
  }

  .booking-dialog-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
  }

  .booking-left-logo,
  .booking-left-title,
  .booking-left-subtitle {
    position: relative;
    z-index: 1;
  }

  .booking-logo-img {
    height: 36px;
  }

  .booking-left-title {
    max-width: 300px;
    margin: 18px 0 6px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  .booking-title-highlight {
    color: inherit;
  }

  .booking-left-subtitle {
    max-width: 280px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .booking-benefits-list {
    display: none;
  }

  .booking-dialog-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 32px 36px;
    background: #ebeaea;
    overflow-y: auto;
  }

  .booking-form-new {
    gap: 22px;
    margin: auto 0;
  }

  .booking-steps-indicator {
    display: none;
  }

  .booking-step {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }

  .booking-step-naa {
    display: none;
  }

  .booking-step[data-step="3"] .booking-step-naa {
    display: flex;
    margin-top: 4px;
  }

  .booking-step[data-step="3"] .booking-btn-back {
    display: none;
  }

  .booking-field {
    gap: 10px;
  }

  .booking-field label {
    display: block;
    color: #000000;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  .booking-field label::before {
    content: attr(data-step-number) " ";
  }

  .booking-field input[type="text"],
  .booking-field input[type="tel"],
  .booking-field textarea {
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(158, 158, 158, 0.45);
    border-radius: 10px;
    background: #f6f5f5;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: border-color 0.2s;
  }

  .booking-field input[type="text"]:focus,
  .booking-field input[type="tel"]:focus,
  .booking-field textarea:focus {
    border-color: var(--lime);
    outline: none;
  }

  .booking-field input[type="text"]::placeholder,
  .booking-field input[type="tel"]::placeholder,
  .booking-field textarea::placeholder {
    color: rgba(115, 115, 115, 0.6);
  }

  .booking-field textarea {
    min-height: 100px;
  }

  .booking-period-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .booking-option-card-inner {
    height: 80px;
    flex-direction: column;
    gap: 4px;
    border: 1.5px solid rgba(158, 158, 158, 0.35);
    border-radius: 10px;
    background: #f6f5f5;
    transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out), transform 150ms var(--ease-out), box-shadow 220ms var(--ease-out);
  }

  @media (hover: hover) and (pointer: fine) {
    .booking-option-card-inner:hover {
      border-color: #b2b2b2;
      background-color: #fafdf7;
    }
    .booking-option-card input[type="radio"]:checked ~ .booking-option-card-inner:hover {
      border-color: var(--lime);
    }
  }

  .booking-option-card-txt {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .booking-option-card-price {
    font-size: 14px;
    font-weight: 600;
    color: #737373;
    letter-spacing: 0;
  }

  .booking-option-check-badge {
    display: none;
  }

  .booking-option-card input[type="radio"]:checked ~ .booking-option-card-inner {
    background: rgb(var(--lime-rgb) / 0.1);
    border-color: var(--lime);
  }

  .booking-option-card input[type="radio"]:checked ~ .booking-option-card-inner .booking-option-card-txt {
    color: #4a9900;
  }

  .booking-option-card input[type="radio"]:checked ~ .booking-option-card-inner .booking-option-card-price {
    color: var(--lime);
  }

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

  .booking-contact-card-inner {
    justify-content: center;
    height: 50px;
    border: 1.5px solid rgba(158, 158, 158, 0.35);
    border-radius: 10px;
    background: #f6f5f5;
    padding: 0 16px;
    gap: 10px;
    transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out), transform 150ms var(--ease-out), box-shadow 220ms var(--ease-out);
  }

  @media (hover: hover) and (pointer: fine) {
    .booking-contact-card-inner:hover {
      border-color: #b2b2b2;
      background-color: #fafdf7;
    }
    .booking-contact-card input[type="radio"]:checked ~ .booking-contact-card-inner:hover {
      border-color: var(--lime);
    }
  }

  .contact-icon {
    width: 18px;
    height: 18px;
    filter: grayscale(1) opacity(0.45);
    transition: filter 220ms var(--ease-out);
  }

  .contact-label-txt {
    color: #525252;
    font-size: 15px;
    font-weight: 700;
    transition: color 220ms var(--ease-out), font-weight 220ms var(--ease-out);
  }

  .booking-contact-card input[type="radio"]:checked ~ .booking-contact-card-inner {
    border-color: var(--lime);
    background: rgb(var(--lime-rgb) / 0.06);
  }

  .booking-contact-card input[type="radio"]:checked ~ .booking-contact-card-inner .contact-icon {
    filter: none;
  }

  .booking-contact-card input[type="radio"]:checked ~ .booking-contact-card-inner .contact-label-txt {
    color: #4a9900;
    font-weight: 800;
  }

  .booking-field-hint {
    color: #737373;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
  }

  .booking-agreement-field {
    margin-top: 2px;
  }

  .booking-checkbox-label {
    gap: 12px;
    align-items: flex-start;
  }

  .booking-checkbox-custom {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid rgba(158, 158, 158, 0.6);
    border-radius: 6px;
    background: #f6f5f5;
    flex: 0 0 22px;
  }

  .booking-checkbox-custom::after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
  }

  .booking-agreement-text {
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }

  .privacy-link {
    color: var(--lime);
    font-weight: 600;
  }

  .dialog-submit-new.booking-btn-submit {
    height: 58px;
    border-radius: 12px;
    background: var(--button-lime-bg);
    color: #000000;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: none;
    transition: background 0.2s;
  }

  .dialog-submit-new.booking-btn-submit:hover {
    background: var(--lime-active);
  }


}

/* Booking submit feedback, focus states and late safety overrides. */
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.dialog-close:focus-visible {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}

.dialog-close:active,
.dialog-submit:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .dialog-submit:hover {
    background: var(--button-lime-bg-hover);
  }
}
/* Clear submit feedback: the lead request can take a moment while Supabase and Telegram respond. */
.dialog-submit-new.booking-btn-submit:disabled,
.dialog-submit-new.booking-btn-submit.is-submitting {
  cursor: wait;
  opacity: 0.82;
  transform: none;
  box-shadow: none;
}

.dialog-submit-new.booking-btn-submit.is-submitting::after {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  border-top-color: #000000;
  border-radius: 999px;
  animation: booking-submit-spin 720ms linear infinite;
}

.dialog-submit-new.booking-btn-submit:disabled:hover,
.dialog-submit-new.booking-btn-submit.is-submitting:hover {
  background: var(--lime);
  transform: none;
  box-shadow: none;
}

@keyframes booking-submit-spin {
  to { transform: rotate(360deg); }
}
/* Shared booking form polish: mobile and desktop. */
.booking-dialog[open] .booking-left-logo,
.booking-dialog[open] .booking-left-title,
.booking-dialog[open] .booking-left-subtitle,
.booking-dialog[open] .booking-benefit-item,
.booking-dialog[open] .booking-form-new > * {
  animation-duration: 260ms;
}

.booking-field input[type="text"],
.booking-field input[type="tel"],
.booking-field textarea {
  transition:
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.booking-option-card-inner,
.booking-contact-card-inner {
  transition:
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    transform 140ms var(--ease-out);
}


.booking-option-card input[type="radio"]:focus-visible ~ .booking-option-card-inner,
.booking-contact-card input[type="radio"]:focus-visible ~ .booking-contact-card-inner {
  outline: 2px solid rgb(var(--lime-rgb) / 0.72);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .booking-option-card:hover .booking-option-card-inner,
  .booking-contact-card:hover .booking-contact-card-inner {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgb(0 0 0 / 0.07);
  }

  .booking-option-card input[type="radio"]:checked ~ .booking-option-card-inner:hover,
  .booking-contact-card input[type="radio"]:checked ~ .booking-contact-card-inner:hover {
    box-shadow: 0 8px 18px rgb(var(--lime-rgb) / 0.12);
  }
}

.booking-option-card:active .booking-option-card-inner,
.booking-contact-card:active .booking-contact-card-inner {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
}

.booking-checkbox-custom {
  transition:
    border-color 150ms var(--ease-out),
    background-color 150ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.booking-checkbox-label:active .booking-checkbox-custom {
  transform: scale(0.92);
}

.booking-checkbox-input:focus-visible ~ .booking-checkbox-custom {
  outline: 2px solid rgb(var(--lime-rgb) / 0.72);
  outline-offset: 2px;
}

.dialog-submit-new.booking-btn-submit {
  transition:
    background-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    transform 140ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.dialog-submit-new.booking-btn-submit:not(:disabled):not(.is-submitting):active {
  transform: scale(0.98);
}

.booking-desktop-close,
.dialog-close {
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.booking-desktop-close:active,
.dialog-close:active {
  transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
  .booking-dialog,
  .booking-dialog::backdrop,
  .booking-dialog[open] .booking-left-logo,
  .booking-dialog[open] .booking-left-title,
  .booking-dialog[open] .booking-left-subtitle,
  .booking-dialog[open] .booking-benefit-item,
  .booking-dialog[open] .booking-form-new > *,
  .booking-field input[type="text"],
  .booking-field input[type="tel"],
  .booking-field textarea,
  .booking-option-card-inner,
  .booking-contact-card-inner,
  .booking-checkbox-custom,
  .dialog-submit-new.booking-btn-submit,
  .booking-desktop-close,
  .dialog-close {
    animation: none;
    transition: none;
  }

  .booking-dialog[open] .booking-left-logo,
  .booking-dialog[open] .booking-left-title,
  .booking-dialog[open] .booking-left-subtitle,
  .booking-dialog[open] .booking-benefit-item,
  .booking-dialog[open] .booking-form-new > * {
    opacity: 1;
  }

  .dialog-submit-new.booking-btn-submit.is-submitting::after {
    animation: none;
  }
}
