/* ==========================================================================
   Public Index 2026 Layout — Clean, Elegant, Premium Aesthetics
   ========================================================================== */

body[data-page="registration"] {
  --color-primary: #087f83;
  --color-primary-hover: #066669;
  --color-primary-soft: #eef7f6;
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-border: #e2e8f0;
  --color-surface: #ffffff;
  --color-surface-secondary: #f1f5f9;

  color: #1e293b;
  background: #f1f5f9;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 36px 16px 28px;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-page="registration"] .app-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 48px 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Top Admin Access Button
   -------------------------------------------------------------------------- */
body[data-page="registration"] .admin-access-button {
  position: absolute;
  top: 32px;
  right: 36px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #087f83;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 8px rgba(8, 127, 131, 0.22);
  z-index: 10;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body[data-page="registration"] .admin-access-button:hover {
  background: #066669;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(8, 127, 131, 0.3);
}

body[data-page="registration"] .admin-access-button svg {
  width: 19px;
  height: 19px;
  stroke: #ffffff;
}

/* --------------------------------------------------------------------------
   App Header & Meta (Centered, Elegant Hierarchy)
   -------------------------------------------------------------------------- */
body[data-page="registration"] .app-header {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
  padding: 0;
  animation: cgmElementSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both;
}

body[data-page="registration"] .logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  text-align: center;
}

body[data-page="registration"] .logo-container img {
  width: 96px;
  height: 96px;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body[data-page="registration"] .logo-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

body[data-page="registration"] .event-kicker {
  font-size: 11.5px;
  font-weight: 750;
  color: #087f83;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  text-align: center;
}

body[data-page="registration"] .app-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: center;
}

body[data-page="registration"] .app-header h2 {
  font-size: 14.5px;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 14px;
  text-align: center;
}

body[data-page="registration"] .event-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin: 0 auto;
}

body[data-page="registration"] .event-summary-separator {
  margin: 0 4px;
}

/* --------------------------------------------------------------------------
   Stepper (Proportional, Centered 3-Step Navigation)
   -------------------------------------------------------------------------- */
body[data-page="registration"] .stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 440px;
  margin: 18px auto 28px;
  padding: 0;
  list-style: none;
  animation: cgmElementSlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}

body[data-page="registration"] .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100px;
  flex-shrink: 0;
}

body[data-page="registration"] .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

body[data-page="registration"] .step.active .step-number {
  background: #087f83;
  border-color: #087f83;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(8, 127, 131, 0.28);
}

body[data-page="registration"] .step-label {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
  font-weight: 500;
  color: #64748b;
}

body[data-page="registration"] .step.active .step-label {
  color: #087f83;
  font-weight: 600;
}

body[data-page="registration"] .step-divider {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
  margin-top: 15px;
  margin-left: -8px;
  margin-right: -8px;
  border: none;
}

/* --------------------------------------------------------------------------
   Step 1 Form Section
   -------------------------------------------------------------------------- */
body[data-page="registration"] #registroForm {
  display: block;
}

body[data-page="registration"] .form-section.active {
  display: block;
  animation: cgmElementSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

body[data-page="registration"] .form-section legend {
  font-size: 16px;
  font-weight: 750;
  color: #1e293b;
  margin-bottom: 14px;
  border: none;
  padding: 0;
  line-height: 1.3;
}

body[data-page="registration"] .info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 22px;
  background: #eef7f6;
  border: none;
  border-radius: 12px;
}

body[data-page="registration"] .info-icon {
  width: 18px;
  height: 18px;
  stroke: #087f83;
  flex-shrink: 0;
}

body[data-page="registration"] .info-text p {
  color: #1e293b;
  font-size: 13px;
  margin: 0;
  line-height: 1.45;
}

body[data-page="registration"] #section-1 > .input-group {
  max-width: 540px;
  margin-bottom: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}

body[data-page="registration"] #section-1 > .input-group label[for="categoria_pago"],
body[data-page="registration"] #section-1 > .input-group select#categoria_pago:focus + label,
body[data-page="registration"] #section-1 > .input-group select#categoria_pago:valid + label {
  position: static !important;
  top: auto !important;
  left: auto !important;
  font-size: 13.5px;
  font-weight: 750;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  background: transparent !important;
  padding: 0;
  order: -1;
  transform: none !important;
  line-height: 1.35;
}

body[data-page="registration"] select#categoria_pago {
  width: 100%;
  height: 50px;
  min-height: 50px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23087f83' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 16px center;
  background-size: 16px;
  padding: 0 46px 0 16px;
  font-size: 14.5px;
  color: #1e293b;
  font-weight: 500;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-page="registration"] select#categoria_pago:focus {
  border-color: #087f83;
  box-shadow: 0 0 0 3px rgba(8, 127, 131, 0.15);
  outline: none;
}

/* --------------------------------------------------------------------------
   Platillo Extra Cédula Verification Panel (Harmonious & Tactile)
   -------------------------------------------------------------------------- */
body[data-page="registration"] .platillo-cedula-box {
  max-width: 540px;
  margin: 18px 0 26px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1.5px solid #087f83;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(8, 127, 131, 0.12), 0 2px 6px rgba(8, 127, 131, 0.05);
  box-sizing: border-box;
  animation: cgmElementSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-page="registration"] .platillo-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-page="registration"] .platillo-label {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  transform: none !important;
  background: transparent !important;
  line-height: 1.35;
}

body[data-page="registration"] .platillo-label-icon {
  width: 20px;
  height: 20px;
  color: #087f83;
  stroke: #087f83;
  flex-shrink: 0;
}

body[data-page="registration"] .platillo-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

body[data-page="registration"] .platillo-input {
  flex: 1;
  min-width: 0;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 16px !important;
  font-size: 14.5px !important;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-page="registration"] .platillo-input:focus {
  border-color: #087f83 !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 131, 0.15) !important;
}

body[data-page="registration"] .platillo-btn {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 28px !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(8, 127, 131, 0.25);
}

body[data-page="registration"] .platillo-status {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Group / Convenio Claim Panel (Consistent & Modernized)
   -------------------------------------------------------------------------- */
body[data-page="registration"] .group-claim {
  max-width: 680px;
  margin: 18px 0 24px;
  padding: 22px 24px;
  border: 1.5px solid #087f83;
  border-radius: 16px;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 4px 20px -2px rgba(8, 127, 131, 0.10);
  box-sizing: border-box;
  animation: cgmElementSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-page="registration"] .group-claim h2 {
  font-size: 15.5px;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 14px;
  line-height: 1.35;
}

body[data-page="registration"] .group-claim__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 18px;
  padding: 0;
  border: none;
}

body[data-page="registration"] .group-claim__choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-page="registration"] .group-claim__choices label:hover {
  background: #f0fdfa;
  border-color: #087f83;
  color: #087f83;
}

body[data-page="registration"] .group-claim__choices input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #087f83;
  cursor: pointer;
}

body[data-page="registration"] .group-claim__fields {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr);
  gap: 14px;
  margin-bottom: 12px;
}

body[data-page="registration"] .group-claim__fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

body[data-page="registration"] .group-claim input:not([type="radio"]),
body[data-page="registration"] .group-claim select {
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body[data-page="registration"] .group-claim input:not([type="radio"]):focus,
body[data-page="registration"] .group-claim select:focus {
  border-color: #087f83;
  box-shadow: 0 0 0 3px rgba(8, 127, 131, 0.15);
}

body[data-page="registration"] #group_identifier_help,
body[data-page="registration"] #group_otp_help {
  font-size: 12.5px;
  color: #64748b;
  margin: 8px 0 16px;
  line-height: 1.45;
}

body[data-page="registration"] #group_search_button,
body[data-page="registration"] #group_confirm_button,
body[data-page="registration"] #group_retry_button,
body[data-page="registration"] #group_otp_button,
body[data-page="registration"] #group_resend_button,
body[data-page="registration"] #group_normal_button,
body[data-page="registration"] #group_restart_button {
  height: 48px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

body[data-page="registration"] .group-claim__masked {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 16px;
  margin: 16px 0;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13.5px;
}

body[data-page="registration"] .group-claim__masked dt {
  font-weight: 700;
  color: #64748b;
}

body[data-page="registration"] .group-claim__masked dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  overflow-wrap: anywhere;
}


/* --------------------------------------------------------------------------
   Two-Column Payment Panel (Balanced & Spacious)
   -------------------------------------------------------------------------- */
body[data-page="registration"] .ecm-payment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  margin: 20px 0 24px;
  align-items: start;
}

/* Left Card: Fee Card */
body[data-page="registration"] .ecm-fee-card {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-page="registration"] .ecm-fee-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

body[data-page="registration"] .ecm-fee-card__title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-page="registration"] .ecm-fee-card__kicker {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0;
}

body[data-page="registration"] .ecm-fee-card__title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

body[data-page="registration"] .ecm-status-pill {
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  background: #eef7f6;
  color: #087f83;
  border-radius: 999px;
  box-shadow: none;
}

body[data-page="registration"] .ecm-status-pill__dot {
  display: none !important;
}

body[data-page="registration"] .ecm-fee-card__price-box {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

body[data-page="registration"] .ecm-fee-card__amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

body[data-page="registration"] .ecm-fee-card__amount {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body[data-page="registration"] .ecm-fee-card__currency {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

body[data-page="registration"] .ecm-vigencia-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #087f83;
}

body[data-page="registration"] .ecm-vigencia-pill svg {
  width: 14px;
  height: 14px;
  stroke: #087f83;
  flex-shrink: 0;
}

body[data-page="registration"] .ecm-fee-card__description {
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

body[data-page="registration"] .ecm-schedule-block {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

body[data-page="registration"] .ecm-schedule-block__heading {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #64748b;
  margin-bottom: 10px;
}

body[data-page="registration"] .ecm-schedule-block__grid {
  display: grid;
  gap: 6px;
}

body[data-page="registration"] .ecm-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  gap: 12px;
  padding: 10px 14px;
  border: none !important;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

body[data-page="registration"] .ecm-schedule-item.is-active {
  background: #edf7f6;
  border: none !important;
  box-shadow: none !important;
}

body[data-page="registration"] .ecm-schedule-item.is-upcoming {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  opacity: 1;
}

body[data-page="registration"] .ecm-schedule-item__left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

body[data-page="registration"] .ecm-schedule-item__name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  flex-wrap: nowrap;
}

body[data-page="registration"] .ecm-schedule-item__name {
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

body[data-page="registration"] .ecm-pill-tag {
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

body[data-page="registration"] .ecm-pill-tag--active {
  background: #087f83;
  color: #ffffff;
}

body[data-page="registration"] .ecm-pill-tag--upcoming {
  background: #e2e8f0;
  color: #475569;
}

body[data-page="registration"] .ecm-schedule-item__dates {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

body[data-page="registration"] .ecm-schedule-item__price {
  font-size: 13.5px;
  font-weight: 750;
  color: #111827;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
}

body[data-page="registration"] .ecm-schedule-item__price small {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

/* Right Column: Bank Section */
body[data-page="registration"] .ecm-bank-section {
  display: grid;
  gap: 0;
}

body[data-page="registration"] .ecm-bank-section__head {
  margin-bottom: 12px;
}

body[data-page="registration"] .ecm-bank-section__title {
  font-size: 15.5px;
  font-weight: 750;
  color: #111827;
  margin: 0 0 4px;
  line-height: 1.3;
}

body[data-page="registration"] .ecm-bank-section__subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

body[data-page="registration"] .ecm-bank-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0;
}

body[data-page="registration"] .ecm-bank-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

body[data-page="registration"] .ecm-bank-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page="registration"] .ecm-bank-card__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef7f6;
  color: #087f83;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: none;
}

body[data-page="registration"] .ecm-bank-card__icon-wrap svg {
  width: 20px;
  height: 20px;
}

body[data-page="registration"] .ecm-bank-card__sublabel {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

body[data-page="registration"] .ecm-bank-card__title {
  font-size: 15px;
  font-weight: 750;
  color: #111827;
  margin: 1px 0 0;
}

body[data-page="registration"] .ecm-bank-card__badge-spei {
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
  background: transparent;
  border: none;
  padding: 0;
}

body[data-page="registration"] .ecm-bank-card__fields {
  display: grid;
  gap: 0;
}

body[data-page="registration"] .ecm-bank-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="registration"] .ecm-bank-field:last-child {
  border-bottom: none;
}

body[data-page="registration"] .ecm-bank-field:hover {
  background: transparent;
  border-color: #f1f5f9;
}

body[data-page="registration"] .ecm-bank-field--hero {
  background: transparent;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: none;
  padding: 11px 0;
}

body[data-page="registration"] .ecm-bank-field--hero:hover {
  border-color: #f1f5f9;
  box-shadow: none;
}

body[data-page="registration"] .ecm-bank-field__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body[data-page="registration"] .ecm-bank-field__label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

body[data-page="registration"] .ecm-bank-field__value {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body[data-page="registration"] :is(.ecm-bank-clabe, .ecm-bank-mono) {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

body[data-page="registration"] .ecm-copy-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #087f83;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body[data-page="registration"] .ecm-copy-btn:hover {
  background: #eef7f6;
  border-color: #087f83;
  color: #087f83;
  box-shadow: none;
  transform: none;
}

body[data-page="registration"] .ecm-copy-btn:active {
  background: #d8eeea;
  transform: none;
}

body[data-page="registration"] .ecm-copy-btn.is-copied {
  background: #d5eedd !important;
  border-color: #257a55 !important;
  color: #155724 !important;
  box-shadow: none !important;
  animation: none;
}

body[data-page="registration"] .ecm-copy-btn--hero {
  background: #ffffff;
  color: #087f83;
  border-color: #e2e8f0;
  box-shadow: none;
  padding: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

body[data-page="registration"] .ecm-copy-btn--hero:hover {
  background: #eef7f6;
  border-color: #087f83;
}

body[data-page="registration"] .ecm-copy-text {
  display: none !important;
}

body[data-page="registration"] .ecm-copy-icon {
  width: 16px;
  height: 16px;
}

body[data-page="registration"] .ecm-copy-icon svg {
  width: 16px;
  height: 16px;
}

body[data-page="registration"] .ecm-bank-card__help {
  background: #f8fafc;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

body[data-page="registration"] .ecm-bank-card__help svg {
  stroke: #087f83;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Action Button & Dual Actions — Comfortable Touch Targets
   -------------------------------------------------------------------------- */
body[data-page="registration"] .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

body[data-page="registration"] .form-actions.dual-actions {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

body[data-page="registration"] #payment_continue_button[hidden] {
  display: none !important;
}

body[data-page="registration"] #payment_continue_button,
body[data-page="registration"] .btn-primary,
body[data-page="registration"] .btn-secondary,
body[data-page="registration"] .btn-prev,
body[data-page="registration"] .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  box-sizing: border-box;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

body[data-page="registration"] #payment_continue_button,
body[data-page="registration"] .btn-primary,
body[data-page="registration"] .btn-submit {
  background: #087f83;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(8, 127, 131, 0.25);
}

body[data-page="registration"] #payment_continue_button:hover,
body[data-page="registration"] .btn-primary:hover,
body[data-page="registration"] .btn-submit:hover {
  background: #066669;
  box-shadow: 0 6px 18px rgba(8, 127, 131, 0.35);
  transform: translateY(-1px);
}

body[data-page="registration"] .btn-secondary,
body[data-page="registration"] .btn-prev {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body[data-page="registration"] .btn-secondary:hover,
body[data-page="registration"] .btn-prev:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

body[data-page="registration"] select.is-locked,
body[data-page="registration"] select#prefijo_titulo.is-locked,
body[data-page="registration"] select#modalidad_asistencia.is-locked {
  pointer-events: none;
  background-color: #f8fafc !important;
  cursor: not-allowed;
  user-select: none;
  color: #334155;
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   Section 2 Multi-Column Balanced Grid (Spacious & Ergonomic)
   -------------------------------------------------------------------------- */
body[data-page="registration"] .section2-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px 18px;
  margin: 12px 0 18px;
}

body[data-page="registration"] .section2-grid .input-group {
  margin-bottom: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
}

body[data-page="registration"] .section2-grid .col-title {
  grid-column: span 3;
}

body[data-page="registration"] .section2-grid .col-name {
  grid-column: span 5;
}

body[data-page="registration"] .section2-grid .col-lastname {
  grid-column: span 4;
}

body[data-page="registration"] .section2-grid .col-phone {
  grid-column: span 6;
}

body[data-page="registration"] .section2-grid .col-email {
  grid-column: span 6;
}

body[data-page="registration"] .section2-grid .col-cedula {
  grid-column: span 6;
}

body[data-page="registration"] .section2-grid .col-modality {
  grid-column: span 6;
}

body[data-page="registration"] .section2-grid input,
body[data-page="registration"] .section2-grid select {
  height: 52px !important;
  min-height: 52px !important;
  padding: 18px 16px 4px !important;
  font-size: 14.5px !important;
  font-weight: 500;
  color: #0f172a;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body[data-page="registration"] .section2-grid select {
  padding: 18px 42px 4px 16px !important;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23087f83' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

body[data-page="registration"] .section2-grid input:focus,
body[data-page="registration"] .section2-grid select:focus {
  border-color: #087f83 !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 131, 0.12) !important;
}

body[data-page="registration"] .section2-grid .input-group > label {
  position: absolute;
  top: 16px;
  left: 14px;
  z-index: 2;
  padding: 0 6px;
  color: #64748b;
  background-color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  border-radius: 4px;
  transition: top 0.18s cubic-bezier(0.16, 1, 0.3, 1), font-size 0.18s ease, color 0.18s ease;
}

body[data-page="registration"] .section2-grid .input-group input:focus + label,
body[data-page="registration"] .section2-grid .input-group input:not(:placeholder-shown) + label,
body[data-page="registration"] .section2-grid .input-group select:focus + label,
body[data-page="registration"] .section2-grid .input-group select:valid + label {
  top: -8px !important;
  font-size: 11.5px !important;
  font-weight: 700;
  color: #087f83;
}

/* --------------------------------------------------------------------------
   Registration Notice & Consent Callout (Comfortable, Trust-Building)
   -------------------------------------------------------------------------- */
body[data-page="registration"] .ecm-registration-notice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 16px 20px 16px 54px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 4px solid #087f83;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(8, 127, 131, 0.05);
  box-sizing: border-box;
}

body[data-page="registration"] .ecm-registration-notice::before {
  content: "!";
  position: absolute;
  left: 18px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #087f83;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(8, 127, 131, 0.25);
  box-sizing: border-box;
}

body[data-page="registration"] .ecm-registration-notice strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
}

body[data-page="registration"] .ecm-registration-notice > span {
  display: block;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

body[data-page="registration"] .ecm-registration-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(8, 127, 131, 0.16);
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
}

body[data-page="registration"] .ecm-registration-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #087f83;
  cursor: pointer;
  border-radius: 4px;
}

body[data-page="registration"] .ecm-registration-consent span {
  font-size: 12.5px;
  color: #0f172a;
  line-height: 1.4;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section 3 Spacious Upload Dropzone
   -------------------------------------------------------------------------- */
body[data-page="registration"] .upload-field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

body[data-page="registration"] .drag-drop-zone {
  position: relative;
  min-height: 160px !important;
  height: auto;
  padding: 32px 24px !important;
  margin-bottom: 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s ease;
}

body[data-page="registration"] .drag-drop-zone:hover {
  border-color: #087f83;
  background: #f0fdfa;
}

body[data-page="registration"] .drag-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  pointer-events: none;
}

body[data-page="registration"] .upload-icon {
  width: 36px;
  height: 36px;
  stroke: #087f83;
}

body[data-page="registration"] .file-message {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

body[data-page="registration"] .file-hint {
  font-size: 12.5px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
body[data-page="registration"] #toast_notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.6rem;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body[data-page="registration"] #toast_notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Tactile Button Micro-Interactions (Spring Physics & Layered Glow Shadows)
   ========================================================================== */
body[data-page="registration"] button,
body[data-page="registration"] .btn-primary,
body[data-page="registration"] .btn-secondary,
body[data-page="registration"] .btn-prev,
body[data-page="registration"] .btn-submit,
body[data-page="registration"] .admin-access-button,
body[data-page="registration"] .category-card {
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 180ms ease,
              border-color 180ms ease,
              color 180ms ease !important;
  will-change: transform, box-shadow;
}

body[data-page="registration"] .admin-access-button:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 127, 131, 0.35);
}

body[data-page="registration"] button:hover,
body[data-page="registration"] .btn-primary:hover,
body[data-page="registration"] .btn-submit:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 8px 24px -2px rgba(8, 127, 131, 0.38), 0 2px 6px rgba(8, 127, 131, 0.2);
}

body[data-page="registration"] .btn-secondary:hover,
body[data-page="registration"] .btn-prev:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

body[data-page="registration"] button:active,
body[data-page="registration"] .btn-primary:active,
body[data-page="registration"] .btn-secondary:active,
body[data-page="registration"] .btn-prev:active,
body[data-page="registration"] .btn-submit:active {
  transform: translateY(0) scale(0.96) !important;
  transition-duration: 80ms !important;
}

/* ==========================================================================
   Master Institutional Footer — Elegant Two-Tier Layout
   ========================================================================== */
body[data-page="registration"] .app-footer-master {
  max-width: 980px;
  width: 100%;
  margin: 36px auto 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
  box-sizing: border-box;
  animation: cgmElementSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

body[data-page="registration"] .footer-legal-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  margin: 0;
}

body[data-page="registration"] .copyright-notice {
  margin: 0;
  font-weight: 600;
  color: #475569;
  font-size: 12.5px;
}

body[data-page="registration"] .footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page="registration"] .legal-nav-btn {
  background: none;
  border: none;
  padding: 0 2px;
  color: #087f83;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

body[data-page="registration"] .legal-nav-btn:hover {
  color: #066669;
}

body[data-page="registration"] .legal-separator {
  color: #cbd5e1;
  font-size: 11px;
}

body[data-page="registration"] .footer-credit-tier {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

body[data-page="registration"] .footer-dev-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page="registration"] .footer-dev-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: color 0.15s ease;
}

body[data-page="registration"] .footer-dev-links a:hover {
  color: #087f83;
  text-decoration: underline;
}

/* ==========================================================================
   Persistent Floating WhatsApp Support Button
   ========================================================================== */
.whatsapp-float-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
}

.whatsapp-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms ease, box-shadow 150ms ease;
  will-change: transform;
}

.whatsapp-float-btn:hover {
  background: #20BA56;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-btn:active {
  transform: scale(0.94) !important;
}

.whatsapp-float-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.whatsapp-status-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.35);
  animation: pulseGreenDot 2s infinite ease-in-out;
}

@keyframes pulseGreenDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==========================================================================
   Responsive Mobile Layout
   ========================================================================== */
@media (max-width: 850px) {
  body[data-page="registration"] {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    padding: 24px 16px 36px !important;
  }

  body[data-page="registration"] .app-container {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 28px 20px !important;
    border-radius: 20px !important;
  }

  body[data-page="registration"] .admin-access-button {
    top: 16px;
    right: 16px;
  }

  body[data-page="registration"] .app-header {
    text-align: center !important;
    padding: 0 36px !important;
  }

  body[data-page="registration"] .ecm-payment-panel {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body[data-page="registration"] #section-1 > .input-group,
  body[data-page="registration"] .platillo-cedula-box,
  body[data-page="registration"] .group-claim {
    max-width: 100% !important;
  }

  body[data-page="registration"] .platillo-input-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  body[data-page="registration"] .platillo-btn {
    width: 100% !important;
  }

  body[data-page="registration"] .form-actions.dual-actions {
    flex-direction: column-reverse !important;
    gap: 12px !important;
  }

  body[data-page="registration"] .form-actions button,
  body[data-page="registration"] .form-actions .btn-primary,
  body[data-page="registration"] .form-actions .btn-secondary,
  body[data-page="registration"] .form-actions .btn-prev,
  body[data-page="registration"] .form-actions .btn-next,
  body[data-page="registration"] .form-actions .btn-submit,
  body[data-page="registration"] #payment_continue_button {
    width: 100% !important;
  }

  body[data-page="registration"] .section2-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  body[data-page="registration"] .section2-grid .col-title,
  body[data-page="registration"] .section2-grid .col-name,
  body[data-page="registration"] .section2-grid .col-lastname,
  body[data-page="registration"] .section2-grid .col-phone,
  body[data-page="registration"] .section2-grid .col-email,
  body[data-page="registration"] .section2-grid .col-cedula,
  body[data-page="registration"] .section2-grid .col-modality {
    grid-column: auto !important;
    width: 100% !important;
  }

  body[data-page="registration"] .section2-grid input,
  body[data-page="registration"] .section2-grid select {
    height: 50px !important;
    min-height: 50px !important;
    padding: 16px 14px 4px !important;
  }

  body[data-page="registration"] .section2-grid .input-group > label {
    top: 15px !important;
    left: 12px !important;
    font-size: 13px !important;
  }

  body[data-page="registration"] .app-footer-master {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
    margin: 28px auto 16px !important;
  }

  body[data-page="registration"] .footer-legal-tier {
    flex-direction: column !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    gap: 8px !important;
  }

  body[data-page="registration"] .footer-credit-tier {
    flex-direction: column !important;
    gap: 6px !important;
  }
}

@media (max-width: 600px) {
  body[data-page="registration"] {
    padding: 14px 10px 24px !important;
  }

  body[data-page="registration"] .app-container {
    padding: 24px 16px !important;
    border-radius: 18px !important;
  }

  body[data-page="registration"] .app-header {
    padding: 0 28px !important;
  }

  body[data-page="registration"] .admin-access-button {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  body[data-page="registration"] .app-header h1 {
    font-size: 20px !important;
  }

  body[data-page="registration"] .app-header h2 {
    font-size: 13px !important;
  }

  body[data-page="registration"] .whatsapp-float-widget {
    bottom: 16px;
    right: 16px;
  }

  body[data-page="registration"] .whatsapp-float-label {
    display: none;
  }

  body[data-page="registration"] .whatsapp-float-btn {
    padding: 12px;
    border-radius: 50%;
  }

  body[data-page="registration"] .whatsapp-status-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
  }
}

/* ==========================================================================
   Cookie Consent Banner (Item 03)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 820px;
  width: calc(100% - 32px);
  animation: cookieEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cookieEnter {
  from { opacity: 0; transform: translate(-50%, 16px) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.cookie-banner-text {
  font-size: 0.83rem;
  color: #334155;
  line-height: 1.45;
}

.cookie-banner-text strong {
  color: #0f172a;
}

.cookie-text-btn {
  background: none;
  border: none;
  padding: 0;
  color: #087f83;
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.btn-cookie-accept {
  flex-shrink: 0;
  padding: 9px 20px;
  background: #087f83;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 127, 131, 0.25);
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn-cookie-accept:hover {
  background: #066669;
}

.btn-cookie-accept:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .btn-cookie-accept {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Institutional Legal Dialogs (<dialog>)
   ========================================================================== */
dialog.legal-dialog {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  max-width: 600px;
  width: calc(100% - 32px);
  padding: 0;
  margin: auto;
  overflow: hidden;
  background: #ffffff;
  color: #1e293b;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  animation: emilDialogEnter 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

dialog.legal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.legal-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.legal-dialog-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.legal-dialog-close {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #64748b;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-dialog-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.legal-dialog-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
}

.legal-dialog-body p {
  margin: 0 0 14px;
}

.legal-dialog-body ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.legal-dialog-body li {
  margin-bottom: 6px;
}

.legal-dialog-body strong {
  color: #0f172a;
}

.legal-dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.btn-legal-dialog-ok {
  padding: 8px 22px;
  background: #087f83;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn-legal-dialog-ok:hover {
  background: #066669;
}

.btn-legal-dialog-ok:active {
  transform: scale(0.96);
}
