/* ============================================================
   Scheduler Form Page — shared layout shell
   Used across: scheduler, website, vibeqr admin pages
   ============================================================ */

:root {
  --scheduler-nav-offset: 64px;
}

.scheduler-form-page {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(180deg, #f7faf9 0%, #ffffff 100%);
  min-height: 100%;
  padding: 0 0 3rem;
  position: relative;
}

.scheduler-form-page--warm {
  background:
    radial-gradient(circle at 25% 25%, rgba(254, 189, 47, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(234, 46, 73, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #fefdfb 0%, #ffffff 100%);
}

/* ---- Page header ---- */

.scheduler-page-header {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.scheduler-page-eyebrow {
  color: #0f766e;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.scheduler-page-title {
  color: #11201c;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
}

.scheduler-page-description {
  color: #52605d;
  font-size: 1rem;
  margin: 0.75rem 0 0;
  max-width: 40rem;
}

.scheduler-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scheduler-ghost-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 32, 28, 0.1);
  border-radius: 999px;
  color: #11201c;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scheduler-ghost-link:hover {
  box-shadow: 0 0.8rem 2rem rgba(17, 32, 28, 0.08);
  color: #11201c;
  transform: translateY(-1px);
}

/* ---- Form shell ---- */

.scheduler-form-shell {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 32, 28, 0.08);
  border-radius: 24px;
  box-shadow: 0 1.5rem 4rem rgba(17, 32, 28, 0.08);
  overflow: hidden;
}

.scheduler-form-shell__inner {
  padding: 2rem;
}

/* ---- Embedded form container (transparent, used inside the page frame) ---- */

.scheduler-embedded-form-container {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.scheduler-embedded-form-container::before {
  content: none;
}

.scheduler-embedded-form-container--sm {
  max-width: 600px;
}

.scheduler-embedded-form-container--md {
  max-width: 680px;
}

.scheduler-embedded-form-container--lg {
  max-width: 800px;
}

/* ---- Form intro block ---- */

.scheduler-form-intro {
  border-bottom: 1px solid rgba(17, 32, 28, 0.08);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.scheduler-form-intro h3 {
  color: #11201c;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.scheduler-form-intro p {
  color: #677572;
  margin: 0.5rem 0 0;
}

/* ---- Form fields inside the shell ---- */

.scheduler-form-shell .form-control,
.scheduler-form-shell .form-select {
  border-radius: 12px;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
}

.scheduler-form-shell textarea.form-control {
  min-height: 128px;
}

.scheduler-form-shell .form-label {
  color: #22312d;
  font-weight: 600;
}

/* ---- Form actions (save / cancel row) ---- */

.scheduler-form-actions {
  align-items: center;
  border-top: 1px solid rgba(17, 32, 28, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
}

.scheduler-primary-btn {
  background: #11201c;
  border: none;
  border-radius: 999px;
  box-shadow: 0 0.8rem 1.8rem rgba(17, 32, 28, 0.18);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
}

.scheduler-primary-btn:hover,
.scheduler-primary-btn:focus {
  background: #0b1512;
  color: #ffffff;
}

.scheduler-cancel-link {
  color: #52605d;
  font-weight: 600;
  text-decoration: none;
}

.scheduler-cancel-link:hover {
  color: #11201c;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .scheduler-form-page {
    padding-top: 0;
  }

  .scheduler-header-actions,
  .scheduler-ghost-link {
    width: 100%;
  }

  .scheduler-form-shell__inner {
    padding: 1.25rem;
  }

  .scheduler-embedded-form-container,
  .scheduler-embedded-form-container--sm,
  .scheduler-embedded-form-container--md,
  .scheduler-embedded-form-container--lg {
    max-width: 100%;
  }

  .scheduler-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .scheduler-primary-btn,
  .scheduler-cancel-link {
    text-align: center;
    width: 100%;
  }
}
