/* ============================================================================
   style.css — GloMarQ public registration form
   Brand: green→blue gradient (#34d399 → #3b82f6) on deep navy text (#1e3a8a)
   Aesthetic: glassmorphism + animated gradient blobs + staggered reveals
   No JS frameworks, no external fonts, system stack only.
   ============================================================================ */

:root {
  --brand-green: #34d399;
  --brand-blue:  #3b82f6;
  --brand-navy:  #1e3a8a;
  --brand-dark:  #0f172a;
  --brand-grad:  linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(52,211,153,.08) 0%, rgba(59,130,246,.08) 100%);

  --text:        #0f172a;
  --text-mid:    #475569;
  --text-muted:  #94a3b8;
  --bg:          #f8fafc;
  --bg-soft:     #f1f5f9;
  --border:      #e2e8f0;
  --border-mid:  #cbd5e1;
  --danger:      #dc2626;
  --warn:        #f59e0b;
  --warn-bg:     #fffbeb;
  --shadow-card: 0 20px 50px -12px rgba(30, 58, 138, .12),
                 0 8px 18px -6px rgba(30, 58, 138, .08),
                 0 1px 2px rgba(15, 23, 42, .04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f0f5ff;
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================================
   Animated gradient blob backdrop — pure CSS, GPU-accelerated.
   Three blobs float at different speeds creating a calm "aurora" feel.
   ============================================================================ */
body::before,
body::after,
.blob3 {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
body::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #34d399 0%, rgba(52,211,153,0) 70%);
  top: -180px; left: -160px;
  animation: blobA 18s ease-in-out infinite;
}
body::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3b82f6 0%, rgba(59,130,246,0) 70%);
  bottom: -220px; right: -180px;
  animation: blobB 22s ease-in-out infinite;
}
.blob3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #60a5fa 0%, rgba(96,165,250,0) 70%);
  top: 35%; left: 60%;
  opacity: .35;
  animation: blobC 26s ease-in-out infinite;
}

@keyframes blobA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, 30px) scale(1.08); }
  66%      { transform: translate(-20px, 50px) scale(.96); }
}
@keyframes blobB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-30px, -40px) scale(1.04); }
  66%      { transform: translate(20px, -20px) scale(1.1); }
}
@keyframes blobC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-60px, 40px) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .blob3 { animation: none; }
  .reveal, .stagger > * { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   Layout
   ============================================================================ */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 32px 18px 48px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hd {
  text-align: center;
  margin-bottom: 24px;
  animation: dropIn .7s cubic-bezier(.16,.84,.34,1) both;
}
.hd .logo {
  height: 64px;
  width: auto;
  display: inline-block;
  filter: drop-shadow(0 6px 16px rgba(30,58,138,.15));
}
/* ============================================================================
   Medical-themed background — scattered medical crosses + a faint heartbeat
   wave drawn in SVG (data URI). Sits below the gradient blobs.
   ============================================================================ */
.med-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
  background-image:
    /* heartbeat wave repeating across the canvas */
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='90' viewBox='0 0 420 90'%3E%3Cpath d='M0 45 L70 45 L80 45 L92 22 L104 70 L116 10 L128 80 L140 45 L210 45 L218 45 L226 35 L234 58 L242 45 L420 45' stroke='%233b82f6' stroke-width='1.4' fill='none' opacity='.06' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    /* medical plus / cross pattern — small, very subtle */
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='%2334d399' opacity='.07'%3E%3Cpath d='M14 6h4v6h6v4h-6v6h-4v-6h-6v-4h6z'/%3E%3Cpath d='M62 52h3v4.5h4.5v3h-4.5v4.5h-3v-4.5h-4.5v-3h4.5z'/%3E%3C/g%3E%3Cg fill='%233b82f6' opacity='.06'%3E%3Ccircle cx='75' cy='18' r='1.8'/%3E%3Ccircle cx='30' cy='68' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 0 0, 0 0;
  background-repeat: repeat-x, repeat;
  background-size: 420px 90px, 90px 90px;
  animation: medBgDrift 60s linear infinite;
}
@keyframes medBgDrift {
  from { background-position: 0     20vh,  0   0; }
  to   { background-position: -420px 20vh, 90px 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .med-bg { animation: none; }
}

/* ============================================================================
   Card — glassmorphism with brand-tinted shadow
   ============================================================================ */
.card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
  /* overflow:visible so the city/specialty dropdown can extend below the card.
     The brand strip and EKG line both have width:100% so they don't overflow
     horizontally; the rounded top corners are preserved by the strip's own
     border-radius. */
  overflow: visible;
  animation: rise .8s cubic-bezier(.16,.84,.34,1) .15s both;
}
/* Brand gradient accent strip across the top of the card */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-grad);
  border-radius: 20px 20px 0 0;
  z-index: 2;
}

/* ============================================================================
   EKG / heartbeat line — sits just below the brand strip on top of the card.
   The path animates as if being drawn, loops forever.
   ============================================================================ */
.ekg {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  width: 100%;
  height: 28px;
  opacity: .55;
  pointer-events: none;
}
.ekg-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: ekgDraw 3.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, .4));
}
@keyframes ekgDraw {
  0%   { stroke-dashoffset: 1200; }
  60%  { stroke-dashoffset: 0;     }
  100% { stroke-dashoffset: -1200; }
}
@media (prefers-reduced-motion: reduce) {
  .ekg-path { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================================
   Heading block — event name + date + city, centered
   ============================================================================ */
.head-block {
  text-align: center;
  margin: 8px 0 22px;
  padding-top: 14px;
}

h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--brand-navy);
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 70%, #34d399 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.event-date,
.event-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin: 0 4px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .12), rgba(59, 130, 246, .12));
  border: 1px solid rgba(59, 130, 246, .18);
  color: var(--brand-navy);
}
.event-date svg,
.event-city svg {
  color: var(--brand-blue);
  flex-shrink: 0;
}
.event-city {
  background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(96, 165, 250, .14));
}

.desc {
  margin: 0 0 22px;
  color: var(--text-mid);
  font-size: 14px;
  text-align: left;
}

/* ============================================================================
   Form fields — staggered reveal on load
   ============================================================================ */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stagger: each direct child fades in 70ms after the previous.
   fill-mode is `backwards` (not `both`) so the transform is REMOVED after
   the animation finishes. Otherwise transform:translateY(0) on every field
   creates a stacking context and the city/specialty dropdown gets clipped
   inside its own .field instead of floating above the next field. */
.reg-form > * {
  animation: slideUp .5s cubic-bezier(.16,.84,.34,1) backwards;
}
.reg-form > *:nth-child(1) { animation-delay: .25s; }
.reg-form > *:nth-child(2) { animation-delay: .31s; }
.reg-form > *:nth-child(3) { animation-delay: .37s; }
.reg-form > *:nth-child(4) { animation-delay: .43s; }
.reg-form > *:nth-child(5) { animation-delay: .49s; }
.reg-form > *:nth-child(6) { animation-delay: .55s; }
.reg-form > *:nth-child(7) { animation-delay: .61s; }
.reg-form > *:nth-child(8) { animation-delay: .67s; }
.reg-form > *:nth-child(9) { animation-delay: .73s; }
.reg-form > *:nth-child(10){ animation-delay: .79s; }
.reg-form > *:nth-child(11){ animation-delay: .85s; }
.reg-form > *:nth-child(12){ animation-delay: .91s; }
.reg-form > *:nth-child(13){ animation-delay: .97s; }

.field {
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Lift the active field above siblings so the combobox dropdown is never
   covered by the field below it. */
.field:focus-within {
  z-index: 100;
}
.field label {
  font-size: 13px;
  color: var(--brand-navy);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.field input {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: 10px;
  background: rgba(255,255,255,.85);
  color: var(--text);
  transition: all .2s cubic-bezier(.16,.84,.34,1);
}
.field input::placeholder {
  color: #cbd5e1;
}
.field input:hover:not(:focus) {
  border-color: #94a3b8;
}
.field input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12),
              0 2px 8px rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: #fda4af;
}

/* ----- Per-field inline error message ----- */
.field.has-error input,
.field.has-error .combo-input,
.field.has-error .combo-other input {
  border-color: #ef4444 !important;
  background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
  animation: fieldShake .35s cubic-bezier(.36, .07, .19, .97);
}
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  animation: errorIn .25s cubic-bezier(.16, .84, .34, 1);
}
.field-error svg {
  flex-shrink: 0;
  color: #dc2626;
  margin-top: 1px;
}
@keyframes errorIn {
  from { opacity: 0; transform: translateY(-4px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 60px; }
}
@keyframes fieldShake {
  0%, 100%        { transform: translateX(0); }
  20%, 60%        { transform: translateX(-4px); }
  40%, 80%        { transform: translateX(4px); }
}
.req {
  color: var(--danger);
  font-weight: 700;
  margin-left: 2px;
}

/* Honeypot: visually hidden but in the DOM for accessibility. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================================
   Submit button — gradient, shimmer on hover
   ============================================================================ */
.btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px -2px rgba(59, 130, 246, .45),
              0 2px 6px rgba(52, 211, 153, .25);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
/* Shimmer overlay that slides on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform .65s cubic-bezier(.16,.84,.34,1);
  z-index: 1;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(59, 130, 246, .55),
              0 4px 12px rgba(52, 211, 153, .35);
}
.btn:hover::after { transform: translateX(100%); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .5);
  outline-offset: 2px;
}

/* ============================================================================
   Combobox (city / specialty)
   ============================================================================ */
.combo { position: relative; }
.combo-input {
  font: inherit;
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 14px center,
    rgba(255,255,255,.85);
  color: var(--text);
  transition: all .2s cubic-bezier(.16,.84,.34,1);
  cursor: pointer;
}
.combo-input:hover:not(:focus) { border-color: #94a3b8; }
.combo-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}
.combo-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  z-index: 1000;
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, .22),
              0 8px 16px rgba(15, 23, 42, .10);
  padding: 6px;
  transform-origin: top center;
  animation: comboOpen .18s cubic-bezier(.16,.84,.34,1);
}
.combo-list.show { display: block !important; }
.combo-item {
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  border-radius: 8px;
  transition: background .12s, color .12s, transform .12s;
}
.combo-item:hover {
  background: var(--brand-grad-soft);
  color: var(--brand-blue);
  transform: translateX(2px);
}
.combo-item-other {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}
.combo-item-other:hover { color: var(--brand-blue); font-style: normal; }

.combo-other {
  display: none;
  margin-top: 10px;
  animation: slideUp .25s cubic-bezier(.16,.84,.34,1);
}
.combo-other.show { display: block; }
.combo-other input {
  font: inherit;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px dashed var(--brand-blue);
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.6);
  color: var(--text);
  transition: all .2s;
}
.combo-other input:focus {
  outline: none;
  border-style: solid;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* ============================================================================
   Radio pill group (SCFHC Yes/No)
   ============================================================================ */
.radio-group {
  display: flex;
  gap: 10px;
}
.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: 10px;
  background: rgba(255,255,255,.85);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  transition: all .2s cubic-bezier(.16,.84,.34,1);
  user-select: none;
}
.radio-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-1px);
}
.radio-pill input {
  margin: 0;
  accent-color: var(--brand-blue);
  width: 18px;
  height: 18px;
}
.radio-pill:has(input:checked) {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, rgba(52,211,153,.10), rgba(59,130,246,.12));
  color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12),
              0 2px 8px rgba(59, 130, 246, 0.10);
}

/* Conditional SCFHC input wrap — hidden by default, JS toggles .show */
.scfhc-input-wrap {
  display: none;
}
.scfhc-input-wrap.show {
  display: flex;
  animation: slideUp .3s cubic-bezier(.16,.84,.34,1);
}

/* Helper text under a field */
.helper {
  font-size: 12.5px;
  color: #92400e;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--warn-bg);
  border-left: 3px solid var(--warn);
  border-radius: 6px;
  line-height: 1.5;
}

/* ============================================================================
   Status messages
   ============================================================================ */
.msg {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  animation: slideUp .45s cubic-bezier(.16,.84,.34,1);
}
.msg-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}
.msg-title { font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.msg-body  { font-size: 14px; line-height: 1.5; }

.msg-ok {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.msg-ok .msg-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
  animation: pop .5s cubic-bezier(.16,.84,.34,1) .15s both;
}

.msg-closed {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border: 1px solid #fde68a;
  color: #78350f;
}
.msg-closed .msg-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.msg-err {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border: 1px solid #fecaca;
  color: #991b1b;
}
.msg-err .msg-icon { background: linear-gradient(135deg, #dc2626, #ef4444); }

/* ============================================================================
   Footer
   ============================================================================ */
.ft {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
  animation: fadeIn 1s ease 1s both;
}
.ft a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}
.ft a:hover { text-decoration: underline; }

/* ============================================================================
   Keyframes
   ============================================================================ */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes comboOpen {
  from { opacity: 0; transform: scaleY(.92) translateY(-4px); }
  to   { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ============================================================================
   Confirmation modal — shown after Submit, asks user to verify their data
   ============================================================================ */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cmFadeIn 0.25s ease;
}
.confirm-modal[hidden] { display: none !important; }

.confirm-modal-inner {
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45),
              0 8px 20px rgba(15, 23, 42, 0.18);
  animation: cmScaleIn 0.32s cubic-bezier(.16, .84, .34, 1);
}

.confirm-modal-head {
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
  color: #fff;
  text-align: center;
}
.confirm-modal-head .cm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: cmPulse 1.6s ease-in-out infinite;
}
.confirm-modal-head h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #fff;
  letter-spacing: -0.005em;
}
.confirm-modal-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.confirm-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px 4px;
  background: #fff;
}

#confirmTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
#confirmTable td {
  padding: 11px 14px;
  font-size: 14px;
  vertical-align: top;
}
#confirmTable td.rev-lbl {
  width: 42%;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.10), rgba(59, 130, 246, 0.10));
  color: #1e3a8a;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px 0 0 8px;
  border-right: 2px solid rgba(59, 130, 246, 0.18);
}
#confirmTable td.rev-val {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 500;
  border-radius: 0 8px 8px 0;
  word-break: break-word;
}

.confirm-modal-foot {
  display: flex;
  gap: 10px;
  padding: 14px 22px 18px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.confirm-modal-foot .cm-btn {
  flex: 1;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
}
.confirm-modal-foot .cm-btn-secondary {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
}
.confirm-modal-foot .cm-btn-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #1e3a8a;
}
.confirm-modal-foot .cm-btn-primary {
  background: linear-gradient(135deg, #34d399, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.confirm-modal-foot .cm-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}
.confirm-modal-foot .cm-btn-primary:disabled,
.confirm-modal-foot .cm-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.cm-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 6px;
  animation: cmSpin .8s linear infinite;
}

@keyframes cmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cmScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes cmPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
@keyframes cmSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .confirm-modal { padding: 10px; }
  .confirm-modal-inner { border-radius: 14px; max-height: 95vh; }
  .confirm-modal-head { padding: 18px 18px 14px; }
  .confirm-modal-head h2 { font-size: 17px; }
  .confirm-modal-body { padding: 12px 16px 0; }
  #confirmTable td { padding: 9px 11px; font-size: 13px; }
  #confirmTable td.rev-lbl { width: 45%; font-size: 12px; }
  .confirm-modal-foot { padding: 12px 16px 16px; flex-direction: column-reverse; }
}

/* ============================================================================
   Responsive — mobile tweaks
   ============================================================================ */
@media (max-width: 520px) {
  .wrap { padding: 22px 14px 32px; }
  .card { padding: 26px 22px; border-radius: 16px; }
  h1 { font-size: 21px; }
  .hd .logo { height: 52px; }
  .field input,
  .combo-input { padding: 11px 14px; }
  .radio-group { gap: 8px; }
  .radio-pill { padding: 11px 12px; font-size: 13px; }
  .btn { padding: 13px 18px; font-size: 14px; }
}
