.booking-widget {
  z-index: 1;
}

.booking-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 3.45rem;
  height: 3.45rem;
  min-height: 3.45rem;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(180deg, #49a9ff 0%, #0b57ff 52%, #0a27cb 100%);
  color: #ffffff;
  box-shadow:
    0 20px 36px rgba(7, 26, 88, 0.32),
    inset 0 0 0 4px rgba(20, 67, 226, 0.78),
    inset 0 8px 14px rgba(255, 255, 255, 0.24),
    inset 0 -10px 18px rgba(1, 10, 89, 0.26);
  cursor: pointer;
  overflow: visible;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.booking-fab::after {
  content: "";
  position: absolute;
  inset: 0.28rem 0.58rem auto 0.58rem;
  height: 1.16rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.06));
  opacity: 0.92;
  pointer-events: none;
  transform: rotate(-10deg);
}

.booking-fab:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 26px 42px rgba(7, 26, 88, 0.36),
    inset 0 0 0 4px rgba(20, 67, 226, 0.82),
    inset 0 8px 14px rgba(255, 255, 255, 0.24),
    inset 0 -12px 20px rgba(1, 10, 89, 0.3);
}

.booking-fab-icon {
  position: relative;
  z-index: 1;
  width: 1.92rem;
  height: 1.92rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  filter: drop-shadow(0 6px 10px rgba(7, 26, 88, 0.32));
}

.booking-fab-icon svg {
  width: 1.38rem;
  height: 1.38rem;
  fill: currentColor;
}

.booking-fab-badge {
  position: absolute;
  top: -0.08rem;
  right: -0.16rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.16rem;
  height: 1.16rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #ff7f7f 0%, #ff1919 58%, #cb0606 100%);
  box-shadow:
    0 10px 20px rgba(114, 0, 0, 0.26),
    inset 0 0 0 2px rgba(171, 0, 0, 0.35),
    inset 0 8px 10px rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(83, 0, 0, 0.28);
}

.booking-fab-text {
  display: none;
}

.booking-popup {
  position: fixed;
  inset: 0;
  z-index: 81;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(126, 167, 255, 0.16), transparent 28%),
    rgba(4, 10, 18, 0.78);
  backdrop-filter: blur(14px);
}

.booking-panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 2rem));
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid rgba(183, 212, 255, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 143, 112, 0.12), transparent 24%),
    radial-gradient(circle at left center, rgba(124, 247, 212, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(9, 18, 31, 0.98), rgba(12, 23, 40, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.booking-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.booking-panel-intro {
  max-width: 620px;
  margin-bottom: 1.4rem;
}

.booking-badge {
  display: inline-flex;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  background: rgba(124, 247, 212, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-panel-intro h3 {
  margin: 0.9rem 0 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
}

.booking-panel-intro p,
.booking-note-card span,
.booking-feedback {
  color: var(--muted);
  line-height: 1.7;
}

.booking-panel-grid {
  display: grid;
  grid-template-columns: 0.44fr 0.56fr;
  gap: 1rem;
}

.booking-aside {
  display: grid;
  gap: 1rem;
}

.booking-note-card,
.booking-form {
  border: 1px solid rgba(183, 212, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.booking-note-card {
  padding: 1.15rem 1.2rem;
}

.booking-note-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.booking-form {
  padding: 1.2rem;
}

.booking-form-embedded {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.booking-field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.booking-field span {
  font-weight: 700;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(183, 212, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.booking-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color-scheme: dark;
}

.booking-field select option {
  background: #0f1b2e;
  color: #f6f8ff;
}

.booking-field textarea {
  resize: vertical;
  min-height: 118px;
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
  color: #7c8ba8;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: rgba(124, 247, 212, 0.68);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(124, 247, 212, 0.1);
}

.booking-actions {
  display: grid;
  gap: 0.75rem;
}

.booking-submit {
  min-height: 3.55rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #07121f;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 36px rgba(124, 247, 212, 0.22);
}

.booking-submit:hover {
  transform: translateY(-2px);
}

.booking-feedback {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .booking-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .booking-fab {
    width: 3.4rem;
    height: 3.4rem;
    min-height: 3.4rem;
  }

  .booking-fab:hover,
  .booking-submit:hover {
    transform: none;
  }

  .booking-panel {
    width: calc(100% - 1rem);
    max-height: calc(100svh - 0.75rem);
    padding: 0.75rem 0.75rem 0.85rem;
    border-radius: 22px;
  }

  .booking-panel-intro,
  .booking-aside {
    display: none;
  }

  .booking-form {
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .booking-panel-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-field {
    gap: 0.35rem;
    margin-bottom: 0.55rem;
  }

  .booking-field span {
    font-size: 0.86rem;
  }

  .booking-field input,
  .booking-field select,
  .booking-field textarea {
    min-height: 2.9rem;
    padding: 0.72rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 16px;
  }

  .booking-field textarea {
    min-height: 78px;
  }

  .booking-close {
    top: 0.7rem;
    right: 0.7rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  .booking-submit {
    min-height: 3rem;
    font-size: 0.92rem;
  }

  .booking-feedback {
    min-height: 1.2rem;
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .booking-fab {
    width: 3.05rem;
    height: 3.05rem;
    min-height: 3.05rem;
  }

  .booking-fab-icon {
    width: 1.72rem;
    height: 1.72rem;
  }

  .booking-fab-icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .booking-fab-badge {
    width: 0.98rem;
    height: 0.98rem;
    font-size: 0.54rem;
  }

  .booking-fab-text {
    font-size: 0.88rem;
  }

  .booking-panel {
    width: calc(100% - 0.5rem);
    max-height: calc(100svh - 0.35rem);
    padding: 0.65rem 0.65rem 0.75rem;
    border-radius: 20px;
  }

  .booking-field {
    margin-bottom: 0.45rem;
  }

  .booking-field span {
    font-size: 0.82rem;
  }

  .booking-field input,
  .booking-field select,
  .booking-field textarea {
    min-height: 2.7rem;
    padding: 0.65rem 0.78rem;
    font-size: 0.86rem;
  }

  .booking-field textarea {
    min-height: 68px;
  }

  .booking-submit {
    min-height: 2.85rem;
    font-size: 0.88rem;
  }
}
