/* ==========================================================================
   BE Mentor Akademi — Master Design System & Poster Engine CSS
   Inspired directly by the BÉ Brand Identity & Official Training Posters
   ========================================================================== */

:root {
  /* Brand Cobalt & Ice Spectrum */
  --cobalt-950: #030c3b;
  --cobalt-900: #061866;
  --cobalt-800: #0b2da1;
  --cobalt-700: #1147cf;
  --cobalt-600: #1864f0;
  --cobalt-500: #3584ff;
  --ice-400: #69c8ff;
  --ice-300: #9ee0ff;
  --ice-200: #d1f0ff;
  --ice-100: #edf8ff;
  --lilac-300: #c7b8ff;
  --lilac-200: #e7d9ff;

  /* Porcelain & Ink Neutrals */
  --porcelain: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f0f4fa;
  --ink-950: #091024;
  --ink-800: #1b2540;
  --ink-600: #475572;
  --ink-500: #667594;
  --ink-400: #8f9db8;
  --border: rgba(15, 36, 94, 0.1);
  --border-strong: rgba(15, 36, 94, 0.18);

  /* Semantic */
  --success: #16a34a;
  --success-bg: #e7f9ee;
  --warning: #d97706;
  --warning-bg: #fef4e2;
  --danger: #dc2626;
  --danger-bg: #fdecec;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-script: 'Dancing Script', 'Brush Script MT', cursive;

  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(6, 24, 102, 0.06);
  --shadow-md: 0 14px 36px rgba(6, 24, 102, 0.09);
  --shadow-lg: 0 28px 70px rgba(6, 24, 102, 0.16);
  --shadow-cobalt: 0 16px 40px rgba(24, 100, 240, 0.28);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-950);
  background: var(--porcelain);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cobalt-600) 0%, var(--cobalt-800) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-cobalt);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(24, 100, 240, 0.38);
}

.btn-ice {
  background: linear-gradient(135deg, #ffffff 0%, var(--ice-200) 100%);
  color: var(--cobalt-900);
  box-shadow: 0 12px 30px rgba(6, 24, 102, 0.22);
}

.btn-ice:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(105, 200, 255, 0.35);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink-950);
}

.btn-outline:hover {
  background: var(--ice-100);
  border-color: var(--cobalt-600);
  color: var(--cobalt-800);
}

.btn-soft {
  background: var(--ice-100);
  color: var(--cobalt-800);
  border-color: rgba(24, 100, 240, 0.16);
}

.btn-soft:hover {
  background: var(--ice-200);
}

.btn-danger-soft {
  background: var(--danger-bg);
  color: var(--danger);
}

.btn-danger-soft:hover {
  background: #fbd5d5;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Badges & Redesigned Crown Seal ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(24, 100, 240, 0.09);
  color: var(--cobalt-700);
  border: 1px solid rgba(24, 100, 240, 0.16);
}

.eyebrow.is-dark {
  background: rgba(158, 224, 255, 0.14);
  color: var(--ice-300);
  border-color: rgba(158, 224, 255, 0.26);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

.status-pill.is-success { background: var(--success-bg); color: var(--success); }
.status-pill.is-warning { background: var(--warning-bg); color: var(--warning); }
.status-pill.is-info { background: var(--ice-100); color: var(--cobalt-700); }
.status-pill.is-danger { background: var(--danger-bg); color: var(--danger); }
.status-pill.is-neutral { background: var(--surface-soft); color: var(--ink-600); }

.bema-crown-seal {
  display: inline-block;
  filter: drop-shadow(0 6px 14px rgba(6, 24, 102, 0.24));
  transition: transform 0.35s var(--ease-out);
}

.sub-exclusive-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-exclusive-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.sub-exclusive-text span {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #6cb8f8, #7b93f7);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.sub-exclusive-lockup .seal-inline {
  width: 38px;
  height: 38px;
}

/* ---------- Form Controls ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-800);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-950);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cobalt-600);
  box-shadow: 0 0 0 4px rgba(24, 100, 240, 0.12);
}

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

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 46, 0.68);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 36px 90px rgba(3, 12, 59, 0.42);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s var(--ease-out);
  position: relative;
}

.modal-dialog.is-sm { width: min(520px, 100%); }
.modal-dialog.is-md { width: min(740px, 100%); }
.modal-dialog.is-xl { width: min(1080px, 100%); }

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-800);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
  background: var(--ice-100);
  transform: rotate(90deg);
}

/* ---------- Toast Notifications ---------- */
.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--cobalt-950);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(3, 12, 59, 0.34);
  border: 1px solid rgba(158, 224, 255, 0.22);
  font-size: 0.9rem;
  font-weight: 500;
  animation: toastIn 0.35s var(--ease-out);
}

.toast-item.is-success { border-left: 4px solid #34d399; }
.toast-item.is-error { border-left: 4px solid #f87171; }
.toast-item.is-info { border-left: 4px solid var(--ice-400); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   BE MENTOR AKADEMİ — OFFICIAL POSTER ENGINE (4:5 Ratio)
   Exact visual craft of Online & Yüz Yüze Workshop Reference Posters
   ========================================================================== */
.bema-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  user-select: none;
  container-type: inline-size;
  box-shadow: var(--shadow-md);
}

/* Raw Official Artwork Mode */
.bema-poster-raw {
  background: var(--cobalt-900);
}

.bema-poster-raw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.poster-redesigned-seal-overlay {
  position: absolute;
  right: 3.2%;
  bottom: 2.8%;
  width: 17%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(6, 24, 102, 0.45) 0%, transparent 72%);
  border-radius: 50%;
}

.poster-redesigned-seal-overlay .seal-overlay-badge {
  width: 100%;
  height: 100%;
}

/* Dynamic Template Base */
.bema-poster-tpl {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.2% 5.5% 5.4%;
}

/* --- ONLINE TEMPLATE (Cobalt & Ice Grain Mesh) --- */
.bema-poster-tpl.is-online {
  background:
    radial-gradient(circle at 92% 6%, rgba(164, 232, 255, 0.92) 0%, rgba(100, 185, 252, 0.52) 26%, rgba(18, 66, 206, 0) 56%),
    radial-gradient(circle at 22% 96%, rgba(126, 214, 255, 0.72) 0%, rgba(28, 86, 224, 0.25) 34%, rgba(6, 20, 118, 0) 58%),
    linear-gradient(155deg, #07197a 0%, #0b26a6 46%, #051478 100%);
  color: #ffffff;
}

/* --- YÜZ YÜZE TEMPLATE (Porcelain Pearl & Frost Aura) --- */
.bema-poster-tpl.is-yuzyuze {
  background:
    radial-gradient(circle at 88% 4%, rgba(124, 213, 255, 0.75) 0%, rgba(173, 228, 255, 0.35) 26%, rgba(246, 248, 252, 0) 52%),
    radial-gradient(circle at 14% 96%, rgba(128, 218, 255, 0.78) 0%, rgba(174, 166, 255, 0.45) 28%, rgba(246, 248, 252, 0) 55%),
    linear-gradient(180deg, #f3f5f8 0%, #eef1f6 100%);
  color: #0b1020;
}

/* Fine Film Grain Layer */
.poster-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}

.poster-grain.is-light-grain {
  opacity: 0.16;
  mix-blend-mode: multiply;
}

.poster-dental-doodles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.poster-v-watermark {
  position: absolute;
  left: -3%;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-size: 19cqi;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(6, 36, 150, 0.38);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.poster-v-watermark.is-light-wm {
  color: rgba(15, 23, 42, 0.045);
}

.poster-domain {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 3.1cqi;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.92);
}

.poster-domain.is-dark-domain {
  color: #0b1020;
  font-weight: 700;
}

/* Poster Main Two-Column Body */
.poster-online-body, .poster-f2f-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 4%;
  align-items: center;
  flex: 1;
  padding-block: 4% 1%;
}

.poster-portrait-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  justify-content: center;
}

.poster-indigo-blob {
  position: absolute;
  top: 3%;
  right: -4%;
  width: 78%;
  height: 44%;
  background: #14087a;
  border-radius: 56% 44% 60% 40% / 44% 58% 42% 56%;
  z-index: 0;
  opacity: 0.88;
}

.poster-arch-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 0.64;
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
  background: #62b6f5;
}

.poster-arch-frame.is-online-cutout {
  border: 3.5px solid #ffffff;
  box-shadow: 0 12px 26px rgba(3, 12, 59, 0.36);
}

.poster-arch-frame.is-f2f-arch {
  box-shadow: 0 12px 28px rgba(15, 36, 94, 0.12);
}

.poster-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.poster-mentor-sig {
  margin-top: 6%;
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.poster-mentor-sig.is-light { color: #ffffff; }
.poster-mentor-sig.is-dark { color: #0b1020; }

.poster-mentor-sig .sig-title {
  font-size: 3.6cqi;
  font-weight: 700;
}

.poster-mentor-sig .sig-first {
  font-size: 5.8cqi;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.poster-mentor-sig .sig-last {
  font-family: var(--font-script);
  font-size: 7.4cqi;
  font-weight: 600;
  margin-top: -2px;
  white-space: nowrap;
}

/* Online Right Column */
.poster-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8cqi;
  padding-right: 2%;
}

.poster-title-bold {
  font-size: 7.1cqi;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.poster-title-italic {
  font-size: 6.4cqi;
  font-weight: 300;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-top: 1.5%;
  text-transform: uppercase;
}

.poster-datetime-row {
  display: flex;
  align-items: center;
  gap: 4cqi;
}

.poster-cal-icon {
  width: 9cqi;
  height: 9cqi;
  color: #53b8ff;
  flex-shrink: 0;
}

.poster-cal-icon svg {
  width: 100%;
  height: 100%;
}

.poster-datetime-text {
  font-size: 3.9cqi;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.94);
}

.poster-online-pill-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.poster-live-dot {
  position: absolute;
  top: -18%;
  left: -5%;
  width: 4.5cqi;
  height: 4.5cqi;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
  z-index: 2;
}

.poster-online-pill {
  padding: 2.8cqi 7.5cqi;
  border-radius: 10px;
  font-size: 4.4cqi;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: linear-gradient(95deg, #1b5ee3 0%, #8397f5 55%, #f0c2e9 100%);
  box-shadow: 0 8px 20px rgba(3, 12, 59, 0.34);
}

/* Yüz Yüze Right Column */
.poster-info-col.is-f2f-info {
  align-items: center;
  text-align: center;
  gap: 9cqi;
}

.poster-f2f-heading {
  width: 100%;
}

.poster-f2f-bold {
  font-size: 7.4cqi;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #0b1020;
  text-transform: uppercase;
}

.poster-f2f-light {
  font-size: 6.1cqi;
  font-weight: 400;
  line-height: 1.1;
  color: #0b1020;
  margin-top: 2%;
  text-transform: uppercase;
}

.poster-workshop-ribbon {
  position: relative;
  margin-top: 4%;
  padding: 1.5cqi 4cqi;
  background: linear-gradient(90deg, rgba(114, 206, 252, 0.28) 0%, rgba(114, 206, 252, 0.62) 60%, rgba(162, 226, 255, 0.72) 100%);
  border-radius: 6px;
}

.poster-workshop-ribbon span {
  font-family: var(--font-script);
  font-size: 9.2cqi;
  font-weight: 600;
  color: #2175d9;
  line-height: 0.95;
  display: block;
}

.poster-f2f-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2cqi;
}

.poster-f2f-icons {
  display: flex;
  align-items: center;
  gap: 3cqi;
  color: #2ba8ff;
  margin-bottom: 1.5cqi;
}

.poster-f2f-icons svg {
  width: 6.4cqi;
  height: 6.4cqi;
}

.poster-f2f-date {
  font-size: 4.5cqi;
  font-weight: 800;
  color: #0b1020;
}

.poster-f2f-time {
  font-size: 4.1cqi;
  font-style: italic;
  color: #1e293b;
}

.poster-f2f-loc {
  font-size: 4.1cqi;
  font-weight: 500;
  color: #1e293b;
}

/* Poster Footer */
.poster-footer-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 11%;
}

.poster-be-logo {
  height: 11cqi;
  width: auto;
  object-fit: contain;
}

.poster-be-logo.is-dark-logo {
  height: 12cqi;
}

.poster-sub-seal-cluster {
  position: absolute;
  right: 0;
  bottom: -2%;
  display: flex;
  align-items: center;
  gap: 1.8cqi;
}

.poster-sub-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1cqi;
}

.poster-sub-pills span {
  padding: 1cqi 2.8cqi;
  border-radius: 999px;
  font-size: 2.6cqi;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #6bbbf8, #8c98f8);
  color: #ffffff;
  line-height: 1.25;
}

.poster-seal-svg {
  width: 15cqi;
  height: 15cqi;
}

/* ==========================================================================
   CUSTOMIZABLE CERTIFICATE STUDIO & PRINT STAGE (OFFICIAL 1024x723 HD)
   ========================================================================== */
.cert-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 723;
  border-radius: 16px;
  overflow: hidden;
  container-type: inline-size;
  background: #ffffff;
  box-shadow: 0 26px 68px rgba(4, 18, 66, 0.24), 0 0 0 1px rgba(15, 23, 42, 0.08);
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.cert-custom-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Razor-Sharp Vector Interior Card + Exact Ice-Blue Ribbon + HD BÉ Logo */
.cert-hd-card {
  position: absolute;
  left: 7.12%;
  top: 10.05%;
  width: 85.76%;
  height: 79.9%;
  background: #ffffff;
  border-radius: 1.85cqi;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.cert-hd-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  top: 26.66%;
  height: 14.08%;
  background: linear-gradient(
    90deg,
    #f8fcff 0%,
    #f0fafc 8%,
    #e0f2f6 22%,
    #d0ebf4 50%,
    #d0eaf7 76%,
    #d8efff 100%
  );
}

.cert-hd-logo-wrap {
  position: absolute;
  left: 50%;
  top: 84.1%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25cqi;
  transform-origin: center center;
}

.cert-hd-logo-img {
  height: 7.9cqi;
  width: auto;
  display: block;
  object-fit: contain;
}

.cert-hd-logo-tagline {
  font-family: var(--font-script);
  font-size: 1.82cqi;
  font-weight: 600;
  color: #24316b;
  line-height: 1.05;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Dynamically Positioned Multi-Line HD Fields */
.cert-pos-field {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: normal;
  box-sizing: border-box;
  z-index: 4;
  padding: 0.25cqi 0.6cqi;
  border-radius: 6px;
}

.cert-field-text {
  display: block;
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cert-pos-field.is-draggable {
  cursor: grab;
  border: 1.5px dashed rgba(24, 100, 240, 0.38);
  background: rgba(124, 214, 255, 0.06);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.cert-pos-field.is-draggable:hover,
.cert-pos-field.is-selected {
  border: 2px solid #1864f0;
  background: rgba(24, 100, 240, 0.11);
  box-shadow: 0 0 0 4px rgba(105, 200, 255, 0.24);
  z-index: 8;
}

.cert-pos-field.is-draggable:active {
  cursor: grabbing;
}

.cert-drag-tag {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0b2da1;
  color: #ffffff;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.cert-pos-field.is-draggable:hover .cert-drag-tag,
.cert-pos-field.is-selected .cert-drag-tag {
  opacity: 1;
}

@media (max-width: 680px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden !important; }
  #bema-cert-printable, #bema-cert-printable * { visibility: visible !important; }
  #bema-cert-printable {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
  }
}
