/* =========================================================
   Beauty Mantra - Book Appointment (header button, popup, CTA)
   ========================================================= */
:root {
  --bm-primary: #b30fb7;
  --bm-accent: #d41597;
  --bm-grad: linear-gradient(16deg, #b30fb7 26%, #d41597 88%);
  --bm-ink: #1c1a1d;
  --bm-muted: #6e6b70;
  --bm-line: #e8e3da;
  --bm-soft: #fbf4fb;
  --bm-error: #c62828;
  --bm-ok: #1b8a4b;
}

/* ---------- Header button (desktop + mobile) ---------- */
.main-header__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.main-header__btn .bm-short { display: none; }
@media (max-width: 767.98px) {
  .main-header__right { padding-left: 8px; }
  .main-header__btn {
    margin-left: 10px;
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .main-header__btn .bm-full { display: none; }
  .main-header__btn .bm-short { display: inline; }
  .main-header__logo img { max-width: 150px; height: auto; }
}
@media (max-width: 380px) {
  .main-header__logo img { max-width: 125px; }
  .main-header__btn { padding: 9px 11px; margin-left: 6px; }
}

/* ---------- Mobile drawer button ---------- */
.bm-drawer-btn {
  display: block;
  margin: 22px 0 6px;
  width: 100%;
  background: var(--bm-grad) !important;
}
.bm-drawer-btn::before, .bm-drawer-btn::after { display: none; }
.bm-drawer-btn:hover { color: #fff; }

/* ---------- CTA band (about / services / massage pages) ---------- */
.bm-cta {
  padding: 60px 0;
  background: var(--bm-grad);
  color: #fff;
  text-align: center;
}
.bm-cta__sub {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.bm-cta__title {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
}
.bm-cta .solox-btn { background: #fff; color: var(--bm-primary); }
.bm-cta .solox-btn::before { background-color: #fff; }
.bm-cta .solox-btn::after { background-color: var(--bm-ink); }
.bm-cta .solox-btn:hover { color: #fff; }

/* ---------- Contact page card that replaces the old inline form ---------- */
.bm-contact-cta {
  background: var(--bm-soft);
  border: 1px solid var(--bm-line);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin-top: 30px;
}
.bm-contact-cta__icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bm-grad);
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.bm-contact-cta h3 { margin: 0 0 10px; }
.bm-contact-cta p { margin: 0 0 22px; }

/* ---------- Popup ---------- */
body.bm-modal-open { overflow: hidden; }

.bm-modal {
  position: fixed; inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(28, 26, 29, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bm-modal.is-open { display: flex; }
.bm-modal.is-visible { opacity: 1; }

.bm-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s ease;
}
.bm-modal.is-visible .bm-modal__dialog { transform: none; }

.bm-modal__head {
  padding: 28px 28px 22px;
  background: var(--bm-grad);
  color: #fff;
  border-radius: 20px 20px 0 0;
}
.bm-modal__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 32px;
  line-height: 1.1;
}
.bm-modal__text { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 14px; line-height: 1.5; }
.bm-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.bm-modal__close:hover, .bm-modal__close:focus-visible { background: rgba(255, 255, 255, 0.35); }

.bm-form { padding: 24px 28px 28px; }
.bm-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 520px) { .bm-row--2 { grid-template-columns: 1fr 1fr; } }

.bm-field { margin-bottom: 14px; }
.bm-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bm-ink);
}
.bm-field label .bm-req { color: var(--bm-error); }
.bm-field label .bm-opt { font-weight: 400; color: var(--bm-muted); }

.bm-form input[type="text"],
.bm-form input[type="email"],
.bm-form input[type="tel"],
.bm-form select,
.bm-form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin: 0;
  font-family: var(--solox-font, "Plus Jakarta Sans", sans-serif);
  font-size: 16px; /* 16px = iPhone zoom hot nahi */
  color: var(--bm-ink);
  background: #fff;
  border: 1.5px solid var(--bm-line);
  border-radius: 12px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  height: auto;
  min-height: 48px;
  line-height: 1.4;
}
.bm-form ::placeholder { color: #a39fa6; opacity: 1; }
.bm-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b30fb7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.bm-form textarea { min-height: 90px; resize: vertical; }
.bm-form input:focus, .bm-form select:focus, .bm-form textarea:focus {
  border-color: var(--bm-primary);
  box-shadow: 0 0 0 4px rgba(179, 15, 183, 0.14);
}
.bm-field.has-error input, .bm-field.has-error select { border-color: var(--bm-error); }
.bm-error {
  display: none;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--bm-error);
}
.bm-field.has-error .bm-error { display: block; }

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

.bm-captcha { margin: 4px 0 14px; transform-origin: 0 0; min-height: 78px; }
.bm-captcha-wrap.has-error .bm-error { display: block; }

.bm-status {
  display: none;
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  background: #fdecec;
  color: var(--bm-error);
}
.bm-status.is-shown { display: block; }

.bm-submit {
  position: relative;
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--bm-grad);
  color: #fff;
  font-family: var(--solox-font, "Plus Jakarta Sans", sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 22px rgba(179, 15, 183, 0.28);
}
.bm-submit:hover { transform: translateY(-1px); }
.bm-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.bm-submit.is-loading span { visibility: hidden; }
.bm-submit.is-loading::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bm-spin 0.7s linear infinite;
}
@keyframes bm-spin { to { transform: rotate(360deg); } }

.bm-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--bm-muted); }
.bm-note a { color: var(--bm-primary); font-weight: 600; }

/* success */
.bm-success { display: none; padding: 40px 28px 34px; text-align: center; }
.bm-modal.is-done .bm-success { display: block; }
.bm-modal.is-done .bm-form,
.bm-modal.is-done .bm-modal__head { display: none; }
.bm-success__icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f6ee; color: var(--bm-ok);
  font-size: 32px;
  display: flex; align-items: center; justify-content: center;
}
.bm-success h3 { margin: 0 0 8px; font-size: 30px; }
.bm-success p { margin: 0 0 22px; color: var(--bm-muted); }
.bm-success .bm-submit { max-width: 220px; margin: 0 auto; }

/* mobile = bottom sheet */
@media (max-width: 575.98px) {
  .bm-modal { padding: 0; align-items: flex-end; }
  .bm-modal__dialog {
    max-width: none;
    max-height: 94vh; max-height: 94dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(40px);
  }
  .bm-modal__head { padding: 24px 20px 18px; border-radius: 20px 20px 0 0; }
  .bm-modal__title { font-size: 28px; }
  .bm-form { padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .bm-success { padding: 36px 20px calc(30px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .bm-modal, .bm-modal__dialog, .bm-submit { transition: none; }
}

/* ---------- Desktop header: logo + menu + button ek-sath fit vhave mhanun ---------- */
@media (min-width: 768px) {
  .main-header__btn { padding: 11px 22px; margin-left: 20px; }
}
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .main-header__logo img { max-width: 210px; height: auto; }
  .main-menu__list > li + li { margin-left: 4px; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .main-header__logo img { max-width: 170px; height: auto; }
}
