/* ==========================================================================
   SAININ SYSTEMS — DEDICATED PROJECT INTAKE / BOOK A MEETING
   Aesthetic Tokens:
   - Outer Canvas: #080B0D (Sainin Dark)
   - Form Surface: #f5f4ef (Warm Off-White / Linen)
   - Inputs & Cards: #FFFFFF
   - Dark Text: #0B0F13 / #11110f
   - Accent Green: #00C878 (Sainin Emerald)
   - Secondary Green: #007A4D
   - Muted Borders: rgba(17, 17, 15, 0.08) - rgba(17, 17, 15, 0.14)
   ========================================================================== */

:root {
  --bg-dark: #080B0D;
  --bg-surface: #f5f4ef;
  --bg-card: #ffffff;
  --text-dark: #0B0F13;
  --text-muted: rgba(11, 15, 19, 0.6);
  --text-dim: rgba(11, 15, 19, 0.42);
  --green-primary: #00C878;
  --green-dark: #007A4D;
  --green-glow: rgba(0, 200, 120, 0.16);
  --green-wash: rgba(0, 200, 120, 0.06);
  --border-subtle: rgba(11, 15, 19, 0.08);
  --border-medium: rgba(11, 15, 19, 0.14);
  --border-focus: #00C878;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: Manrope, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "DM Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-dark);
  color: var(--text-dark);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Outer Canvas Container */
.intake-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 0%, rgba(0, 200, 120, 0.04) 0%, transparent 60%);
  padding: 1.5rem 1.25rem 4rem;
}

@media (min-width: 768px) {
  .intake-page {
    padding: 2.25rem 2.5rem 5rem;
  }
}

/* Header Navigation Bar */
.intake-navbar {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.intake-wordmark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.intake-wordmark span {
  font-size: 0.65rem;
  color: var(--green-primary);
  font-weight: 600;
}

.intake-back-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.intake-back-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(-2px);
}

/* Page Intro (Restrained, Above Fold) */
.intake-intro {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 2rem;
  text-align: left;
}

.intake-eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.intake-eyebrow-rule {
  width: 18px;
  height: 1px;
  background: var(--green-primary);
}

.intake-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-primary);
}

.intake-main-title {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.intake-main-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
}

.intake-main-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
}

/* Main Form Shell (Warm Off-White Surface on Dark Background) */
.intake-shell {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .intake-shell {
    grid-template-columns: 310px 1fr;
  }
}

/* --------------------------------------------------------------------------
   LEFT SIDEBAR: PROGRESS TRACKER (DESKTOP)
   -------------------------------------------------------------------------- */
.intake-sidebar {
  background: #ebe9e1;
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.25rem 1.75rem;
  display: none;
}

@media (min-width: 992px) {
  .intake-sidebar {
    display: flex;
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
  }
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.stepper-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 1.85rem;
  cursor: default;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.step-node:last-child {
  padding-bottom: 0;
}

/* Connecting Line Between Steps */
.step-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background-color: var(--border-medium);
  transition: background-color 0.3s ease;
}

.step-node.completed:not(:last-child)::after {
  background-color: var(--green-primary);
}

.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  z-index: 2;
  transition: all 0.25s ease;
}

.step-node.active .step-indicator {
  border-color: var(--green-primary);
  background-color: var(--text-dark);
  color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.step-node.completed .step-indicator {
  border-color: var(--green-primary);
  background-color: var(--green-primary);
  color: #080B0D;
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.step-label-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.step-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.step-node.active .step-title {
  color: var(--text-dark);
  font-weight: 700;
}

.step-node.completed .step-title {
  color: var(--text-dark);
}

.step-node.clickable {
  cursor: pointer;
}

.step-node.clickable:hover .step-title {
  color: var(--green-dark);
}

/* --------------------------------------------------------------------------
   MOBILE COMPACT STEPPER
   -------------------------------------------------------------------------- */
.mobile-stepper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1.5rem 1.5rem 1.25rem;
  background: #ebe9e1;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 992px) {
  .mobile-stepper {
    display: none;
  }
}

.mobile-stepper-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-step-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-step-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.mobile-step-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.mobile-progress-track {
  width: 100%;
  height: 4px;
  background: var(--border-medium);
  border-radius: 4px;
  overflow: hidden;
}

.mobile-progress-fill {
  height: 100%;
  background: var(--green-primary);
  border-radius: 4px;
  width: 12.5%;
  transition: width 0.3s ease;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: ACTIVE FORM WORKSPACE
   -------------------------------------------------------------------------- */
.intake-main {
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 580px;
}

/* Step Container & Transitions */
.step-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.step-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Step Header */
.step-pane-header {
  margin-bottom: 2rem;
}

.step-pane-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.step-pane-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form Fields & Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-required {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 0.06em;
}

.label-optional {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.form-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -2px;
  margin-bottom: 4px;
}

/* Form Inputs & Textarea */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-dark);
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.78rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(11, 15, 19, 0.35);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 105px;
  line-height: 1.5;
}

.form-textarea.large {
  min-height: 135px;
}

/* Error Message */
.field-error {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #c53030;
  font-weight: 500;
  display: none;
  margin-top: 3px;
}

.field-error.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   SELECTION TILES & CARDS (MULTI-SELECT & SINGLE-SELECT)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .cards-grid.large-cards {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

.select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.select-card:hover {
  border-color: rgba(11, 15, 19, 0.28);
  box-shadow: 0 4px 14px rgba(11, 15, 19, 0.04);
  transform: translateY(-1px);
}

.select-card.selected {
  border-color: var(--green-primary);
  background-color: var(--green-wash);
  box-shadow: 0 0 0 1px var(--green-primary), 0 4px 16px var(--green-glow);
}

.select-card-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.select-card.selected .select-card-icon {
  color: var(--green-dark);
}

.select-card-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.select-card-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.select-card-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-card.selected .select-card-indicator {
  border-color: var(--green-primary);
  background: var(--green-primary);
}

.select-card.selected .select-card-indicator::after {
  content: "✓";
  color: #080B0D;
  font-size: 9px;
  font-weight: 700;
}

/* Radio Pill Group (Yes/No & Compact Selectors) */
.radio-pill-group {
  display: inline-flex;
  gap: 8px;
  background: rgba(11, 15, 19, 0.04);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.radio-pill {
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-pill:hover {
  color: var(--text-dark);
}

.radio-pill.selected {
  background: var(--bg-card);
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(11, 15, 19, 0.08);
  border: 1px solid var(--border-medium);
}

/* Conditional Question Container */
.conditional-box {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--green-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-top: 1rem;
  animation: fadeInDown 0.25s ease forwards;
}

.conditional-box.visible {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* File Upload Zone */
.upload-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.75rem;
}

.upload-dropzone:hover {
  border-color: var(--green-primary);
  background: var(--green-wash);
}

.upload-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}

.upload-text-main {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.upload-text-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.uploaded-files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0.75rem;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dark);
}

.file-remove-btn {
  background: none;
  border: none;
  color: #c53030;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
}

/* --------------------------------------------------------------------------
   BOTTOM CONTROLS / ACTION BAR
   -------------------------------------------------------------------------- */
.intake-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.btn-continue {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  background-color: var(--green-primary);
  color: #080B0D;
  border: none;
  border-radius: 100px;
  padding: 0.9rem 2.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  box-shadow: 0 4px 18px var(--green-glow);
  margin-left: auto;
}

.btn-continue:hover {
  background-color: #00dc84;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 200, 120, 0.32);
}

.btn-continue .btn-arrow {
  transition: transform 0.2s ease;
}

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

.btn-back {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back:hover {
  color: var(--text-dark);
  background: rgba(11, 15, 19, 0.05);
}

.btn-back:disabled {
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   STEP 09: REVIEW SCREEN
   -------------------------------------------------------------------------- */
.review-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.review-section-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.review-section-card:hover {
  border-color: rgba(11, 15, 19, 0.24);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.review-card-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-dark);
}

.review-edit-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.review-edit-btn:hover {
  color: var(--text-dark);
}

.review-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .review-details-grid {
    grid-template-columns: 140px 1fr;
  }
}

.review-field-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-field-value {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dark);
  word-break: break-word;
  line-height: 1.45;
}

.review-notice-box {
  background: rgba(0, 200, 120, 0.08);
  border: 1px solid rgba(0, 200, 120, 0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-notice-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #080B0D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.review-notice-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   SCHEDULING PLACEHOLDER / HANDOFF STATE
   -------------------------------------------------------------------------- */
.scheduling-placeholder {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s ease;
  padding: 2rem 0;
  text-align: center;
}

.scheduling-placeholder.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
}

.sched-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wash);
  border: 1px solid rgba(0, 200, 120, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 1.5rem;
}

.sched-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-primary);
  box-shadow: 0 0 8px var(--green-glow);
}

.sched-badge-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  text-transform: uppercase;
}

.sched-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.sched-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.sched-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.sched-handoff-card {
  max-width: 560px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: left;
  box-shadow: 0 12px 36px rgba(11, 15, 19, 0.05);
}

.sched-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.sched-summary-client {
  display: flex;
  flex-direction: column;
}

.sched-client-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.sched-client-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.sched-status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: var(--green-wash);
  color: var(--green-dark);
  border: 1px solid rgba(0, 200, 120, 0.22);
  padding: 4px 10px;
  border-radius: 100px;
}

.sched-slot-placeholder {
  background: #fbfbf9;
  border: 1.5px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.sched-slot-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.sched-slot-heading {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.sched-slot-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.sched-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sched-return-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  transition: all 0.2s ease;
}

.sched-return-btn:hover {
  background: #ebe9e1;
  border-color: rgba(11, 15, 19, 0.24);
}

/* ==========================================================================
   DEDICATED CALENDAR SCHEDULER STAGE (BLACK BACKGROUND & SHADCN CARD THEME)
   ========================================================================== */

.calendar-booking-stage {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: calFadeIn 0.35s ease forwards;
}

@keyframes calFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* On-Screen Form Submitted Confirmation Banner */
.form-submitted-banner {
  max-width: 680px;
  width: 100%;
  background: rgba(0, 200, 120, 0.07);
  border: 1px solid rgba(0, 200, 120, 0.28);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 200, 120, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-submitted-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submitted-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-primary);
  box-shadow: 0 0 10px var(--green-primary);
}

.submitted-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-primary);
  text-transform: uppercase;
}

.form-submitted-msg {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #ffffff;
  line-height: 1.45;
}

.submitted-lead-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lead-pill-name {
  color: #ffffff;
  font-weight: 600;
}

.lead-pill-sep {
  color: rgba(255, 255, 255, 0.3);
}

.lead-pill-edit {
  background: none;
  border: none;
  color: var(--green-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  transition: all 0.2s ease;
  text-decoration: underline;
}

.lead-pill-edit:hover {
  color: #00dc84;
}

/* Calendar Stage Header */
.calendar-stage-header {
  text-align: center;
  max-width: 680px;
  margin-bottom: 2rem;
}

.calendar-main-title {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.calendar-main-desc {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* Shadcn-Style CalendarScheduler Card (Black Theme) */
.cal-scheduler-card {
  width: 100%;
  max-width: 680px;
  background-color: #0c1014;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-card-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cal-card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.cal-tz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-tz-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
}

/* Card Content: 2-Column Split (Calendar Left, Slots Right) */
.cal-card-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cal-card-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Left Section: Month Calendar */
.cal-month-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #080B0D;
  display: flex;
  flex-direction: column;
}

.cal-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cal-month-label {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.cal-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.cal-weekdays-grid span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 0;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  user-select: none;
}

.cal-day-cell:hover:not(.disabled):not(.empty) {
  background: rgba(255, 255, 255, 0.12);
}

.cal-day-cell.today::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-primary);
}

.cal-day-cell.disabled {
  color: rgba(255, 255, 255, 0.18);
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day-cell.empty {
  cursor: default;
  pointer-events: none;
}

.cal-day-cell.selected {
  background: var(--green-primary) !important;
  color: #080B0D !important;
  font-weight: 700;
  box-shadow: 0 0 14px var(--green-glow);
}

.cal-day-cell.selected.today::after {
  background: #080B0D;
}

/* Right Section: Time Slots */
.cal-slots-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #080B0D;
  display: flex;
  flex-direction: column;
  max-height: 330px;
}

.slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.slots-header-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.slots-header-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green-primary);
}

.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.slots-grid::-webkit-scrollbar {
  width: 4px;
}

.slots-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.slot-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.slot-btn:hover {
  background: rgba(0, 200, 120, 0.08);
  border-color: var(--green-primary);
  color: #ffffff;
}

.slot-btn.selected {
  background: var(--green-primary) !important;
  color: #080B0D !important;
  border-color: var(--green-primary) !important;
  font-weight: 700;
  box-shadow: 0 0 14px var(--green-glow);
}

/* Card Footer */
.cal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.cal-btn-reset {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cal-btn-reset:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.cal-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-selection-preview {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  display: none;
}

@media (min-width: 540px) {
  .cal-selection-preview {
    display: inline-block;
  }
}

.cal-btn-confirm {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--green-primary);
  color: #080B0D;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--green-glow);
}

.cal-btn-confirm:hover:not(:disabled) {
  background: #00dc84;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 200, 120, 0.4);
}

.cal-btn-confirm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* Ruixen attribution note */
.cal-attribution-note {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.cal-attribution-note a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
}

.cal-attribution-note a:hover {
  color: #ffffff;
}

/* STAGE C: MEETING CONFIRMED SCREEN */
.meeting-confirmed-screen {
  width: 100%;
  max-width: 600px;
  margin-top: 1.5rem;
  animation: calFadeIn 0.3s ease forwards;
}

.confirmed-card {
  background: #0c1014;
  border: 1px solid rgba(0, 200, 120, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(0, 200, 120, 0.08);
  text-align: left;
}

.confirmed-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wash);
  border: 1px solid rgba(0, 200, 120, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.confirmed-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #080B0D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.confirmed-badge-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.confirmed-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.confirmed-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.confirmed-summary-box {
  background: #080B0D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.conf-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

@media (min-width: 520px) {
  .conf-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

.conf-item-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

.conf-item-val {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.confirmed-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-confirmed-home {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--green-primary);
  color: #080B0D;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px var(--green-glow);
}

.btn-confirmed-home:hover {
  background: #00dc84;
  transform: translateY(-1px);
}

.btn-confirmed-resched {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-confirmed-resched:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

