/* ============================================
   SZCUTZ — Appointment Page Styles
   ============================================ */

.booking-page {
  padding: 48px 0 100px;
  min-height: 100vh;
}

.appointment-page .site-header {
  position: sticky;
  top: 12px;
  left: auto;
  width: calc(100% - 32px);
  max-width: 1040px;
  margin: 12px auto 0;
  transform: none;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(13, 13, 13, 0.08), 0 0 0 1px rgba(13, 13, 13, 0.025), inset 0 1px rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.appointment-page .nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  height: auto;
  padding: 8px 10px 8px 18px;
}

.appointment-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.appointment-page .brand img {
  display: block;
  width: 76px;
  height: 44px;
  object-fit: cover;
  object-position: center 54%;
}

.appointment-page .nav-brand-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0d0d0d;
  box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08);
}

.appointment-page .nav-menu-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.appointment-page .main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.appointment-page .main-nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #595959;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.appointment-page .main-nav a:hover {
  color: #0d0d0d;
  background: rgba(13, 13, 13, 0.08);
  opacity: 1;
}

.appointment-page .main-nav a.is-active {
  border-color: rgba(13, 13, 13, 0.05);
  color: #000;
  background: #f1f1f1;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 13, 13, 0.08), inset 0 1px rgba(255, 255, 255, 0.9);
}

.appointment-page .main-nav a:active {
  transform: scale(0.97);
}

.appointment-page .nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(13, 13, 13, 0.1);
  border-radius: 50%;
  background: #0d0d0d;
  color: #fff;
}

.appointment-page .nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.appointment-page .nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.appointment-page .nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 861px) {
  .appointment-page .main-nav {
    position: absolute;
    left: 50%;
    flex: none;
    transform: translateX(-50%);
  }
}

@media (min-width: 861px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .appointment-page .nav-brand-dot { animation: appointment-nav-dot-beat 2.8s ease-in-out infinite; }
}

@keyframes appointment-nav-dot-beat {
  0%, 52%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08); }
  8% { transform: scale(1.18) rotate(-6deg); box-shadow: 0 0 0 6px rgba(13, 13, 13, 0.14); }
  16% { transform: scale(1) rotate(3deg); box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08); }
  26% { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 0 5px rgba(13, 13, 13, 0.11); }
  36% { transform: scale(1) rotate(-2deg); box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08); }
}

@media (max-width: 860px) {
  .appointment-page .site-header { width: calc(100% - 32px); border-radius: 28px; }
  .appointment-page .nav-inner { min-height: 58px; padding: 7px 8px 7px 14px; }
  .appointment-page .nav-toggle { display: block; }
  .appointment-page .nav-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(13, 13, 13, 0.12);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
  }

  .appointment-page .site-header.menu-open .nav-menu-panel { display: flex; }
  .appointment-page .main-nav {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    transform: none;
    transition: none;
  }
  .appointment-page .main-nav a { width: 100%; padding: 10px 12px; border-top: 0; border-radius: 12px; }
}

@media (max-width: 480px) {
  .appointment-page .site-header { top: 10px; width: calc(100% - 24px); }
}

/* ---------- Page intro ---------- */
.page-intro {
  text-align: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 32px;
}

.page-intro > .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid rgba(13, 13, 13, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 12px rgba(13, 13, 13, 0.04), inset 0 1px rgba(255, 255, 255, 0.9);
}

.page-heading {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.7rem, 5.3vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 14px 0 12px;
  white-space: nowrap;
}

.page-subtext {
  max-width: 420px;
  margin: 0 auto;
  color: #686868;
  font-size: 0.95rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* ---------- Type toggle ---------- */
.type-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 8px;
  width: fit-content;
  margin: 0 auto 32px;
}

.type-option {
  min-height: 50px;
  padding: 0 28px;
  border-radius: 16px;
  border: 1px solid rgba(13, 13, 13, 0.1);
  background: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #626262;
  cursor: var(--scissors-cursor), pointer;
  transform: rotate(2.5deg) translateY(1px);
  transition: transform 350ms cubic-bezier(0.3, 1.4, 0.5, 1), color 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.type-option:first-child:not(.is-active) { transform: rotate(-2.5deg) translateY(1px); }

.type-option:not(.is-active):hover {
  transform: rotate(0deg);
  border-color: rgba(13, 13, 13, 0.18);
  background: #fafafa;
  color: #111;
}

.type-option.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 13, 13, 0.2);
  transform: rotate(0deg);
  animation: appointment-option-drop 600ms cubic-bezier(0.3, 1.2, 0.5, 1);
}

@keyframes appointment-option-drop {
  0% { transform: translateY(-24px) rotate(-9deg); }
  55% { transform: translateY(5px) rotate(2deg); }
  78% { transform: translateY(-2px) rotate(-0.8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .type-option,
  .type-option.is-active { transition: none; animation: none; transform: none; }
}

/* ---------- Form card ---------- */
.form-card {
  position: relative;
  z-index: 3; /* sits above the ambient canvas — same reasoning as .stack-wrap / .about-grid */
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 18px 52px rgba(13, 13, 13, 0.055), inset 0 1px rgba(255, 255, 255, 0.95);
}

@media (max-width: 600px) {
  .form-card { padding: 28px 22px; }
  .booking-page { padding: 40px 0 70px; }
  .page-heading { font-size: clamp(1.8rem, 8vw, 3rem); }
  .type-toggle { gap: 6px; padding: 4px; }
  .type-option { min-height: 46px; padding: 0 17px; font-size: 0.92rem; }
}

/* ---------- Form fields ---------- */
.form-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.form-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 480px) {
  .form-grid.two-col { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 20px;
}

.form-grid .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  background: var(--white);
}

.form-group select:disabled {
  opacity: 0.1;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* ---------- Amount + location row ---------- */
.form-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.amount-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.amount-value {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.3rem;
}

.location-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color var(--transition);
}

.location-link:hover {
  color: var(--black);
}

/* ---------- Form message ---------- */
.form-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff4f4;
  border: 1px solid #f0bdbd;
  color: #8a2b2b;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Submit button ---------- */
.btn-submit {
  width: 100%;
}

.btn .btn-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

/* ---------- Confirmation panel ---------- */
.confirmation-panel {
  text-align: center;
  padding: 20px 0;
}

.confirm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.confirmation-panel h3 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.confirmation-panel p {
  color: var(--gray-700);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ---------- Check my booking ---------- */
.check-booking {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: center;
}

.check-booking-toggle {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(13, 13, 13, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: var(--scissors-cursor), pointer;
  box-shadow: 0 3px 12px rgba(13, 13, 13, 0.04), inset 0 1px rgba(255, 255, 255, 0.9);
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.check-booking-toggle:hover {
  color: var(--black);
  background: #fff;
  border-color: rgba(13, 13, 13, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(13, 13, 13, 0.08), inset 0 1px #fff;
}

.check-booking-form {
  margin-top: 20px;
  padding: 24px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
}

.check-booking-form .btn {
  width: 100%;
  margin-top: 4px;
}

.lookup-result {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}
