/* ============================================================
   Languademy — Dynamic flow overlay (book / modify / cancel as a sheet)
   Builds on styles.css + layout.css + booking.css
   ============================================================ */

.flow-overlay { position: fixed; inset: 0; z-index: 120; display: flex; }

.flow-scrim {
  position: absolute; inset: 0;
  background: rgba(40, 36, 46, .82);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fScrim .3s ease;
}
@keyframes fScrim { from { opacity: 0; } to { opacity: 1; } }

.flow-sheet {
  position: relative; margin: auto; width: min(1160px, 100%);
  max-height: 94vh; background: var(--cream);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  animation: fSheet .4s cubic-bezier(.2, .8, .3, 1);
}
@keyframes fSheet { from { transform: translateY(30px); } to { transform: none; } }
@keyframes fDropdown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.flow-bar {
  display: flex; align-items: center; gap: 16px; flex: none;
  padding: 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.fb-ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--c, var(--primary)); box-shadow: 0 4px 0 var(--c-d, var(--primary-dark));
}
.fb-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fb-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fb-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; }
.fb-sub { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.flow-close {
  margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 2px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.flow-close:hover { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 8%, var(--paper)); transform: rotate(90deg); }
.flow-close svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2.6; stroke-linecap: round; }

.flow-content { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: clamp(16px, 4vw, 40px); flex: 1; }
.flow-content .stepper { margin-top: 2px; }

/* per-flow accent on the header icon */
.flow-overlay.f-book .fb-ico { --c: var(--teal); --c-d: var(--teal-dark); }
.flow-overlay.f-modify .fb-ico { --c: var(--sky); --c-d: var(--sky-dark); }
.flow-overlay.f-cancel .fb-ico { --c: var(--grape); --c-d: var(--grape-dark); }
.flow-overlay.f-about .fb-ico { --c: var(--coral); --c-d: var(--coral-dark); }
.flow-overlay.f-trial .fb-ico { --c: var(--yellow); --c-d: var(--yellow-dark); }
.flow-overlay.f-package .fb-ico { --c: var(--grape); --c-d: var(--grape-dark); }
.flow-overlay.f-video .fb-ico { --c: var(--coral); --c-d: var(--coral-dark); }
.flow-overlay.f-review .fb-ico { --c: var(--yellow); --c-d: var(--yellow-dark); }

/* About-us tab switcher (instructor / methodology) */
.about-tabs { display: inline-flex; gap: 5px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: clamp(22px, 3.5vw, 38px); flex-wrap: wrap; max-width: 100%; }
.about-tabs button {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; border: none; background: transparent; color: var(--ink-soft);
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.about-tabs button svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.about-tabs button:hover { color: var(--ink); }
.about-tabs button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.about-pane { animation: paneIn .35s ease; }
/* Decorative shapes must never intercept clicks (they overlapped the tabs). */
.flow-content .blob-bg, .flow-content .deco, .flow-content .t-dot, .flow-content .t-badge { pointer-events: none; }
@media (max-width: 540px) {
  .about-tabs { display: flex; width: 100%; }
  .about-tabs button { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; }
}

/* On phones the sheet becomes full-screen */
@media (max-width: 700px) {
  .flow-sheet { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .flow-content { padding: 14px; }
}
