/* =====================================================
   EAWELL ACADEMY — Application Portal Styles
   Clean, Modern, Professional
   ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap");

:root {
  --ea-primary: #125b62;
  --ea-primary-light: #176d76;
  --ea-primary-dark: #0e494e;
  --ea-accent: #d6aa3b;
  --ea-accent-light: #f7e1ac;
  --ea-accent-bg: #fef9ee;
  --ea-success: #1e8449;
  --ea-success-bg: #eafaf1;
  --ea-danger: #c0392b;
  --ea-danger-bg: #fdf0ee;
  --ea-warning: #d35400;
  --ea-text: #1a2332;
  --ea-text-mid: #4a5568;
  --ea-text-light: #718096;
  --ea-border: #e2e8f0;
  --ea-border-focus: #d6aa3b;
  --ea-bg: #f0f4f8;
  --ea-card: #ffffff;
  --ea-shadow-sm: 0 2px 8px rgba(18, 91, 98, 0.08);
  --ea-shadow: 0 8px 32px rgba(18, 91, 98, 0.12);
  --ea-shadow-lg: 0 16px 48px rgba(18, 91, 98, 0.16);
  --ea-radius: 14px;
  --ea-radius-sm: 8px;
  --ea-radius-xs: 5px;
  --ea-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ea-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base reset for portal elements ─────────────────── */
.eawell-wrapper *,
.eawell-modal * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.eawell-wrapper, .eawell-dashboard-wrapper {
  font-family: var(--ea-font);
  color: var(--ea-text);
  background: var(--ea-bg);
  padding: 75px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ── Main Card ───────────────────────────────────────── */
.eawell-card {
  background: var(--ea-card);
  border-radius: var(--ea-radius);
  box-shadow: var(--ea-shadow-lg);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
}

.eawell-dashboard-wrapper .eawell-card {
  max-width: 680px;
}

/* ── Header: Logos + Title ───────────────────────────── */
.eawell-header {
  background: linear-gradient(180deg, #125b62 0%, #0e494e 100%);
  padding: 36px 40px 28px;
  text-align: center;
  position: relative;
}

.eawell-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--ea-accent);
  border-radius: 2px 2px 0 0;
}

.eawell-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.eawell-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--ea-transition);
}

.eawell-logo:hover {
  border-color: var(--ea-accent);
  transform: translateY(-2px);
}

.eawell-logo-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.eawell-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 6px;
}

.eawell-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--ea-accent-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Form Section ────────────────────────────────────── */
.eawell-form-body {
  padding: 36px 40px 40px;
}

.eawell-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ea-primary);
  margin-bottom: 5px;
}

.eawell-section-sub {
  font-size: 0.98rem;
  color: var(--ea-text-light);
  margin-bottom: 28px;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Form Rows & Groups ──────────────────────────────── */
.eawell-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.eawell-form-row.two-col {
  grid-template-columns: 1fr 1fr;
}

.eawell-form-group {
  display: flex;
  flex-direction: column;
}

.eawell-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ea-text-mid);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.eawell-forgot-link {
  margin-left: auto;
  color: var(--ea-accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
}

.eawell-forgot-link:hover {
  text-decoration: underline;
}

.eawell-label .req {
  color: var(--ea-danger);
  margin-left: 2px;
}

/* ── Input Fields ────────────────────────────────────── */
.eawell-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--ea-border);
  border-radius: var(--ea-radius-sm);
  font-family: var(--ea-font);
  font-size: 14px;
  color: var(--ea-text);
  background: #fafbfc;
  transition: var(--ea-transition);
  outline: none;
  -webkit-appearance: none;
}

.eawell-input:focus {
  border-color: var(--ea-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(200, 151, 42, 0.12);
}

.eawell-input::placeholder {
  color: #b0bec5;
  font-size: 13px;
}

.eawell-input.has-error {
  border-color: var(--ea-danger);
  background: var(--ea-danger-bg);
}

/* ── Password Field Wrapper ──────────────────────────── */
.eawell-pass-wrap {
  position: relative;
}

.eawell-pass-wrap .eawell-input {
  padding-right: 46px;
}

.eawell-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ea-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: var(--ea-transition);
}

.eawell-pass-toggle:hover {
  color: var(--ea-primary);
}

.eawell-pass-toggle svg {
  width: 18px;
  height: 18px;
}

/* ── Phone Input (intl-tel-input overrides) ──────────── */
.eawell-form-group .iti {
  width: 100%;
}

.eawell-form-group .iti__flag-container {
  border-right: 1.5px solid var(--ea-border);
}

.eawell-form-group .iti__selected-flag {
  background: transparent;
  padding: 0 8px 0 12px;
}

.eawell-form-group .iti__selected-flag:hover,
.eawell-form-group .iti__selected-flag:focus {
  background: rgba(200, 151, 42, 0.08);
}

/* ── Alerts ──────────────────────────────────────────── */
.eawell-alert {
  padding: 12px 16px;
  border-radius: var(--ea-radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
  display: none;
  line-height: 1.5;
}

.eawell-alert.show {
  display: block;
}

.eawell-alert.success {
  background: var(--ea-success-bg);
  color: var(--ea-success);
  border: 1px solid #a9dfbf;
}

.eawell-alert.error {
  background: var(--ea-danger-bg);
  color: var(--ea-danger);
  border: 1px solid #f1948a;
}

.eawell-alert.info {
  background: var(--ea-accent-bg);
  color: #8a6914;
  border: 1px solid #f7e1ac;
}

/* ── Buttons ─────────────────────────────────────────── */
.eawell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--ea-radius-sm);
  font-family: var(--ea-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--ea-transition);
  text-decoration: none;
  white-space: nowrap;
}

.eawell-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.eawell-btn-primary {
  background: linear-gradient(135deg, #d6aa3b 0%, #a8841d 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(200, 151, 42, 0.35);
  width: 100%;
}

.eawell-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #d4a030 0%, #b88525 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 151, 42, 0.45);
}

.eawell-btn-primary:active {
  transform: translateY(0);
}

.eawell-btn-secondary {
  background: #f0f4f8;
  color: var(--ea-primary);
  border: 1.5px solid var(--ea-border);
}

.eawell-btn-secondary:hover:not(:disabled) {
  background: var(--ea-primary);
  color: #ffffff;
  border-color: var(--ea-primary);
}

.eawell-btn-outline {
  background: transparent;
  color: var(--ea-primary);
  border: 1.5px solid var(--ea-primary);
}

.eawell-btn-outline:hover:not(:disabled) {
  background: var(--ea-primary);
  color: #ffffff;
}

.eawell-btn-danger {
  background: transparent;
  color: var(--ea-danger);
  border: 1.5px solid var(--ea-danger);
}

.eawell-btn-danger:hover:not(:disabled) {
  background: var(--ea-danger);
  color: #ffffff;
}

.eawell-btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* ── Form footer (links) ─────────────────────────────── */
.eawell-form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ea-text-light);
}

.eawell-form-footer a {
  color: var(--ea-accent);
  text-decoration: none;
  font-weight: 600;
}

.eawell-form-footer a:hover {
  text-decoration: underline;
}

/* ── Divider ─────────────────────────────────────────── */
.eawell-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ea-text-light);
  font-size: 12px;
}

.eawell-divider::before,
.eawell-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ea-border);
}

/* ── Spinner ─────────────────────────────────────────── */
.eawell-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: eawell-spin 0.7s linear infinite;
  display: none;
}

.eawell-btn.loading .eawell-spinner {
  display: block;
}
.eawell-btn.loading .eawell-btn-text {
  opacity: 0.7;
}

@keyframes eawell-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD / WELCOME PAGE
   ═══════════════════════════════════════════════════════ */

.eawell-welcome-block {
  padding: 36px 40px;
}

.eawell-welcome-greeting {
  font-size: 24px;
  font-weight: 800;
  color: var(--ea-primary);
  margin-bottom: 8px;
}

.eawell-welcome-greeting span {
  color: var(--ea-accent);
}

.eawell-welcome-msg {
  font-size: 14px;
  color: var(--ea-text-mid);
  line-height: 1.65;
  margin-bottom: 6px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .eawell-wrapper,
  .eawell-dashboard-wrapper {
    padding: 24px 12px;
  }

  .eawell-header {
    padding: 28px 24px 22px;
  }

  .eawell-logos {
    gap: 12px;
  }

  .eawell-logo {
    width: 52px;
    height: 52px;
  }

  .eawell-title {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .eawell-form-body {
    padding: 28px 10px 32px;
  }

  .eawell-form-row.two-col {
    grid-template-columns: 1fr;
  }

  .eawell-welcome-block {
    padding: 28px 24px;
  }
}

/* =====================================================
   SITE CHROME — header + footer for non-Elementor pages
   Used by the page-eawell-auth.php custom template
   ===================================================== */

body.eawell-auth-body {
  margin: 0;
  padding: 0;
  background: var(--ea-bg);
  font-family: "Open Sans", var(--ea-font);
}

/* Force Onest on every heading inside auth pages. Selector specificity
   (0,1,2) beats Elementor's `.elementor-kit-11 h1` (0,1,1), and the
   !important guarantees it wins even against rules that also use it. */
body.eawell-auth-body h1,
body.eawell-auth-body h2,
body.eawell-auth-body h3,
body.eawell-auth-body h4,
body.eawell-auth-body h5,
body.eawell-auth-body h6 {
  font-family: "Onest", Sans-serif !important;
}

.eawell-site-main {
  display: block;
  position: relative;
}

/* ── Header ──────────────────────────────────────────────
   Experion-style: the banner is a full-width, FIXED parent
   that owns the bg image. Logo + nav sit inside it. As the
   page scrolls, the wrapper (z-index:1) moves up and visually
   covers the fixed banner (z-index:0). The image "sticks."
   ───────────────────────────────────────────────────────── */
.eawell-site-header {
  background: transparent;
}

.eawell-site-header__banner {
  position: relative;
  background-color: var(--ea-primary-dark);
  /* --banner-image is injected as an inline style by eawell_render_header():
     per-page ACF override if set, theme default banner-image.jpg otherwise. */
  background-image: linear-gradient(135deg, rgba(14, 73, 78, 0.82) 0%, rgba(18, 91, 98, 0.74) 55%, rgba(14, 73, 78, 0.88) 100%), var(--banner-image);
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  width: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

/* Page title block: sits in the lower portion of the banner */
.eawell-page-title {
  margin-top: auto;
  padding: 8px 0 48px;
}

.eawell-page-title__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.eawell-page-title__heading {
  margin: 0 0 14px;
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: "Onest", Sans-serif !important;
}

.eawell-breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
}

.eawell-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.eawell-breadcrumb li + li::before {
  content: "|";
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.eawell-breadcrumb a {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.eawell-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.eawell-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  width: 100%;
}

.eawell-site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.eawell-site-header__logo img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
}

.eawell-site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eawell-site-nav__list li {
  position: relative;
}

.eawell-site-nav__list a {
  font-family: "Open Sans", var(--ea-font);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: var(--ea-transition);
}

.eawell-site-nav__list a:hover,
.eawell-site-nav__list .current-menu-item > a,
.eawell-site-nav__list .current-menu-ancestor > a {
  color: var(--ea-accent);
}

/* Submenus */
.eawell-site-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--ea-primary-dark);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border-radius: 0 0 var(--ea-radius-sm) var(--ea-radius-sm);
  box-shadow: var(--ea-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: var(--ea-transition);
  z-index: 50;
}

.eawell-site-nav__list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.eawell-site-nav__list .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
}

/* Burger (mobile) — pure CSS via checkbox */
.eawell-menu-toggle-cb {
  display: none;
}

.eawell-menu-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.eawell-menu-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--ea-transition);
}

/* ── Footer ──────────────────────────────────────────── */
.eawell-site-footer {
  background: #0E494E;
  color: #ffffff;
  font-family: "Open Sans",var(--ea-font) ;
}

.eawell-site-footer__top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 85px 32px 5px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 56px;
}

.eawell-site-footer__col {
  display: flex;
  flex-direction: column;
}

.eawell-site-footer__col--cta {
  justify-content: flex-start;
  padding-right: 24px;
}

.eawell-site-footer__tagline {
  font-family: "Onest", "Open Sans",var(--ea-font) !important;
  font-size: 3rem;
  line-height: 1;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 32px;
}

.eawell-site-footer__btn {
  color: #ffffff !important;
  letter-spacing: 1.5px;
  line-height: 1;
  background-color: #D6AA3B;
  font-family: "Open Sans", Sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: capitalize;
  border-style: solid;
  border-width: 2px 2px 2px 2px;
  border-color: #D6AA3B;
  border-radius: 6px 6px 6px 6px;
  padding: 16px 75px 16px 75px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  text-decoration: none;
}

.eawell-site-footer__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.eawell-site-footer__btn:hover {
  background: #a8841d;
  color: #ffffff;
  transform: translateY(-1px);
}

.eawell-site-footer__heading {
  font-family: "Open Sans",var(--ea-font) !important;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: 0.3px;
}

.eawell-site-footer__heading--social {
  margin-top: 26px;
}

.eawell-site-footer__text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.eawell-site-footer__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.4;
  padding: 7px 0;
  word-break: break-word;
  transition: var(--ea-transition);
}

.eawell-site-footer__contact:hover {
  color: var(--ea-accent);
}

.eawell-site-footer__icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  transition: var(--ea-transition);
}

.eawell-site-footer__contact:hover .eawell-site-footer__icon-circle {
  border-color: var(--ea-accent);
}

.eawell-site-footer__icon-circle svg {
  width: 15px;
  height: 15px;
}

.eawell-site-footer__social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 4px;
}

.eawell-site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
  transition: var(--ea-transition);
}

.eawell-site-footer__social a:hover {
  color: var(--ea-accent);
  transform: translateY(-2px);
}

.eawell-site-footer__social svg {
  width: 100%;
  height: 100%;
}

/* Divider strip with centered crest logo */
.eawell-site-footer__divider {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px 8px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.eawell-site-footer__divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.eawell-site-footer__divider-logo {
  display: block;
  height: 86px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Bottom: about paragraph left, legal right */
.eawell-site-footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
}

.eawell-site-footer__about-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
}

.eawell-site-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.eawell-site-footer__legal li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.94rem;
}

.eawell-site-footer__legal li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ea-accent);
  flex-shrink: 0;
}

.eawell-site-footer__legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--ea-transition);
}

.eawell-site-footer__legal a:hover {
  color: var(--ea-accent);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
  .eawell-site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .eawell-site-footer__col--cta {
    grid-column: 1 / -1;
    padding-right: 0;
  }
  .eawell-site-footer__bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .eawell-site-footer__about-text {
    margin: 0 auto;
  }
  .eawell-site-footer__legal {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .eawell-site-header__inner {
    padding: 14px 20px;
    position: relative;
  }
  .eawell-site-header__logo img {
    height: 56px;
  }
  .eawell-menu-burger {
    display: flex;
  }
  .eawell-site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ea-primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 40;
  }
  .eawell-menu-toggle-cb:checked ~ .eawell-site-nav {
    max-height: 600px;
  }
  .eawell-menu-toggle-cb:checked ~ .eawell-menu-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .eawell-menu-toggle-cb:checked ~ .eawell-menu-burger span:nth-child(2) {
    opacity: 0;
  }
  .eawell-menu-toggle-cb:checked ~ .eawell-menu-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .eawell-site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .eawell-site-nav__list a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .eawell-site-nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    border-radius: 0;
  }
  .eawell-site-nav__list .sub-menu a {
    padding-left: 44px;
    font-size: 13px;
  }

  .eawell-page-title {
    padding: 8px 0 32px;
  }
  .eawell-page-title__inner {
    padding: 0 20px;
  }
  .eawell-page-title__heading {
    font-size: 30px;
    margin-bottom: 10px;
  }
  .eawell-breadcrumb {
    font-size: 13px;
  }
  .eawell-breadcrumb li + li::before {
    margin: 0 8px;
  }

  .eawell-site-footer__top {
    grid-template-columns: 1fr;
    padding: 48px 20px 28px;
    gap: 36px;
  }
  .eawell-site-footer__tagline {
    font-size: 28px;
  }
  .eawell-site-footer__divider {
    padding: 8px 20px;
    gap: 18px;
  }
  .eawell-site-footer__divider-logo {
    height: 64px;
  }
  .eawell-site-footer__bottom {
    padding: 20px 20px 40px;
    gap: 24px;
  }
}

/* =====================================================
   COURSES — archive (/courses/) and single (/courses/<slug>/)
   ===================================================== */

/* ── Archive ──────────────────────────────────────────── */
.eawell-courses-archive {
  background: var(--ea-bg);
  padding: 75px 16px 100px;
}

.eawell-courses-archive__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.eawell-courses-archive__intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ea-text-mid);
  margin: 0 0 48px;
  max-width: 880px;
}

.eawell-courses-archive__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ea-text-light);
}

/* Service-area group section */
.eawell-course-group {
  margin-bottom: 56px;
}

.eawell-course-group__title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ea-primary);
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ea-accent);
  display: inline-block;
}

/* Card grid */
.eawell-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* ── Course Card ──────────────────────────────────────── */
.eawell-course-card {
  background: #fff;
  border-radius: var(--ea-radius);
  box-shadow: var(--ea-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eawell-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ea-shadow-lg);
}

.eawell-course-card__image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.eawell-course-card__image {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.35s ease;
}

.eawell-course-card:hover .eawell-course-card__image {
  transform: scale(1.04);
}

.eawell-course-card__level {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 4px;
  color: #fff;
  background: var(--ea-primary);
}

.eawell-course-card__level--basic    { background: var(--ea-primary); }
.eawell-course-card__level--advanced { background: var(--ea-accent); color: #1a1a1a; }

.eawell-course-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eawell-course-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}

.eawell-course-card__title a {
  color: var(--ea-text);
  text-decoration: none;
}

.eawell-course-card__title a:hover {
  color: var(--ea-primary);
}

.eawell-course-card__summary {
  font-size: 0.94rem;
  color: var(--ea-text-light);
  line-height: 1.55;
  margin: 0 0 16px;
}

.eawell-course-card__meta {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.eawell-course-card__meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--ea-border);
}

.eawell-course-card__meta li:last-child {
  border-bottom: none;
}

.eawell-course-card__meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ea-text-light);
}

/* The value sits on the right side of each meta row */
.eawell-course-card__meta li > span:last-child {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ea-primary);
  font-family: "Onest", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.eawell-course-card__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* ── Generic button ───────────────────────────────────── */
.eawell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  height: 45px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Open Sans",var(--ea-font) ;
  letter-spacing: 0.2px;
  text-decoration: none;
  border-radius: 7px;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  cursor: pointer;
  line-height: 1;
}

/* Trailing arrow that slides right on hover */
.eawell-btn::after {
  content: "→";
  margin-left: 10px;
  display: inline-block;
  font-weight: 900;
  font-size: 1.1em;
  -webkit-text-stroke: 0.6px currentColor;
  transition: transform 0.22s ease;
}

.eawell-btn:hover::after {
  transform: translateX(4px);
}

.eawell-btn--primary {
  background: var(--ea-accent);
  color: #fff;
  border-color: var(--ea-accent);
}

.eawell-btn--primary:hover {
  background: #c39733;
  border-color: #c39733;
  color: #fff;
}

.eawell-btn--outline {
  background: transparent;
  color: var(--ea-text);
  border-color: var(--ea-accent);
}

.eawell-btn--outline:hover {
  background: var(--ea-accent);
  border-color: var(--ea-accent);
  color: #fff;
}

.eawell-btn--apply {
  width: 100%;
  padding: 16px 22px;
  font-size: 1.05rem;
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────
   Single Course Detail — premium flat design (no shadows)
   ───────────────────────────────────────────────────── */
.eawell-course-detail {
  background: #fff;
  padding: 90px 16px 130px;
}

.eawell-course-detail__inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr);
  gap: 72px;
  align-items: start;
}

/* ── Main column ───────────────────────────────────────── */
.eawell-course-detail__main {
  background: transparent;
  padding: 0;
}

.eawell-course-detail__featured {
  margin: 0 0 44px;
  overflow: hidden;
  border-radius: 4px;
}

.eawell-course-detail__featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

/* Stat strip — horizontal facts row */
.eawell-course-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ea-border);
  border-bottom: 1px solid var(--ea-border);
  margin: 0 0 40px;
}

.eawell-course-stat {
  padding: 26px 24px;
  border-right: 1px solid var(--ea-border);
}

.eawell-course-stat:last-child {
  border-right: none;
}

.eawell-course-stat__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ea-text-light);
  margin-bottom: 8px;
}

.eawell-course-stat__value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ea-primary);
  font-family: "Onest", sans-serif;
  letter-spacing: -0.01em;
}

/* Lead summary — large display sentence */
.eawell-course-detail__summary {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ea-text);
  margin: 0 0 25px;
  font-weight: 500;
  font-family: "Onest", sans-serif;
  letter-spacing: -0.015em;
}

/* Long-form description */
.eawell-course-detail__description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ea-text-mid);
  margin-bottom: 48px;
}

.eawell-course-detail__description p {
  margin: 0 0 1.2em;
}

/* Section heading style with gold underline accent */
.eawell-course-section {
  margin-top: 55px;
  padding-top: 40px;
  border-top: 1px solid var(--ea-border);
}

.eawell-course-section__title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ea-primary);
  margin: 0 0 36px;
  font-family: "Onest", sans-serif;
  letter-spacing: -0.015em;
  position: relative;
  padding-bottom: 16px;
}

.eawell-course-section__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--ea-accent);
}

/* ── Modules — numbered two-column grid ──────────────── */
.eawell-course-modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ea-border);
  counter-reset: module;
}

.eawell-course-modules li {
  counter-increment: module;
  padding: 20px 24px 20px 68px;
  border-bottom: 1px solid var(--ea-border);
  background: transparent;
  border-left: none;
  border-radius: 0;
  position: relative;
  transition: background 0.2s ease;
}

.eawell-course-modules li:hover {
  background: rgba(214, 170, 59, 0.05);
}

.eawell-course-modules li:nth-child(odd) {
  border-right: 1px solid var(--ea-border);
}

.eawell-course-modules li::before {
  content: counter(module, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 22px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ea-accent);
  font-family: "Onest", sans-serif;
  letter-spacing: 0.65px;
  line-height: 1;
}

.eawell-course-modules__title {
  display: block;
  font-weight: 600;
  color: var(--ea-text);
  font-size: 1rem;
  line-height: 1.45;
}

.eawell-course-modules__desc {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--ea-text-light);
  line-height: 1.6;
}

/* ── Career outcomes — bordered tiles in 2-col grid ──── */
.eawell-course-outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.eawell-course-outcomes li {
  padding: 18px 22px;
  background: rgba(18, 91, 98, 0.04);
  border-left: 3px solid var(--ea-accent);
  font-size: 0.98rem;
  color: var(--ea-text);
  font-weight: 500;
  line-height: 1.4;
  border-bottom: none;
  position: static;
}

.eawell-course-outcomes li::before {
  content: none;
}

/* ── Sidebar — slim, sticky ──────────────────────────── */
.eawell-course-detail__sidebar {
  position: sticky;
  top: 32px;
}

.eawell-course-detail__sidebar-inner {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border: none;
}

/* Apply CTA card — dark teal block, no shadow */
.eawell-course-apply-card {
  background: var(--ea-primary-dark);
  color: #fff;
  padding: 32px 30px 34px;
  margin-bottom: 44px;
  position: relative;
}

.eawell-course-apply-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--ea-accent);
}

.eawell-course-apply-card__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ea-accent);
  margin-bottom: 14px;
}

.eawell-course-apply-card__heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  font-family: "Onest", sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.eawell-course-apply-card__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
}

.eawell-course-apply-card .eawell-btn--apply {
  width: 100%;
  height: 52px;
  font-size: 1rem;
  margin-top: 0;
}

/* Prerequisites — clean bordered list */
.eawell-course-detail__prereq {
  margin: 0;
  padding: 0;
  border-top: none;
}

.eawell-course-detail__prereq-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ea-primary);
  margin: 0 0 18px;
}

.eawell-course-detail__prereq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eawell-course-detail__prereq-list li {
  padding: 14px 0 14px 28px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ea-text-mid);
  position: relative;
  border-bottom: 1px solid var(--ea-border);
}

.eawell-course-detail__prereq-list li:last-child {
  border-bottom: none;
}

.eawell-course-detail__prereq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 2px;
  background: var(--ea-accent);
}

/* ── Responsive (≤768px) ──────────────────────────────── */
@media (max-width: 768px) {
  .eawell-courses-archive,
  .eawell-course-detail {
    padding: 50px 12px 70px;
  }
  .eawell-course-group__title {
    font-size: 1.5rem;
  }
  .eawell-course-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .eawell-course-card__actions {
    flex-direction: column;
  }
  .eawell-course-card__actions .eawell-btn {
    width: 100%;
  }
  .eawell-course-detail {
    padding: 50px 12px 80px;
  }
  .eawell-course-detail__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 16px;
  }
  .eawell-course-detail__featured {
    margin: 0 0 28px;
  }
  .eawell-course-detail__featured img {
    max-height: 280px;
  }
  .eawell-course-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 40px;
  }
  .eawell-course-stat {
    padding: 18px 18px;
  }
  .eawell-course-stat:nth-child(odd) {
    border-right: 1px solid var(--ea-border);
  }
  .eawell-course-stat:nth-child(even) {
    border-right: none;
  }
  .eawell-course-stat:nth-child(1),
  .eawell-course-stat:nth-child(2) {
    border-bottom: 1px solid var(--ea-border);
  }
  .eawell-course-stat__value {
    font-size: 1.1rem;
  }
  .eawell-course-detail__summary {
    font-size: 1.2rem;
  }
  .eawell-course-section {
    margin-top: 48px;
    padding-top: 40px;
  }
  .eawell-course-section__title {
    font-size: 1.55rem;
    margin-bottom: 26px;
  }
  .eawell-course-modules {
    grid-template-columns: 1fr;
  }
  .eawell-course-modules li {
    border-right: none !important;
  }
  .eawell-course-outcomes {
    grid-template-columns: 1fr;
  }
  .eawell-course-detail__sidebar {
    position: static;
  }
  .eawell-course-apply-card {
    padding: 26px 22px 28px;
    margin-bottom: 32px;
  }
}

/* =====================================================
   APPLICATION WIZARD — Phase 2
   Step card on dashboard, flash messages, applied-course
   indicator on the registration form.
   ===================================================== */

/* Inline "Change course" link under the section subtitle */
.eawell-change-course {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ea-accent);
  text-decoration: none;
  white-space: nowrap;
}
.eawell-change-course:hover { text-decoration: underline; }

/* Flash messages (just_registered, verified, verify_error) */
.eawell-flash {
  padding: 14px 18px;
  border-radius: 7px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 22px;
  border-left: 4px solid;
}
.eawell-flash--info {
  background: #ecf6fa;
  color: #0e494e;
  border-color: var(--ea-primary);
  margin-top: 25px;
}
.eawell-flash--success { background: #ecf7ec; color: #1e4620; border-color: #2e7d32; }
.eawell-flash--error   { background: #fbecec; color: #621f1f; border-color: #c62828; }
.eawell-flash__tip {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  font-size: 0.9rem;
}
.eawell-flash__tip em { font-style: normal; font-weight: 600; }

/* Step card — the prominent "next action" card on the dashboard */
.eawell-step-card {
  background: #fff;
  border: 1px solid var(--ea-border);
  border-left-width: 4px;
  padding: 18px 22px 20px;
  margin: 0 0 28px;
  border-radius: 6px;
}
/* Tone is conveyed via the 4px left border only — no bg tint —
   so the step card visually matches its grid sibling (course summary). */
.eawell-step-card--warn     { border-left-color: var(--ea-accent); }
.eawell-step-card--go       { border-left-color: var(--ea-primary); }
.eawell-step-card--info     { border-left-color: #4a90e2; }
.eawell-step-card--success  { border-left-color: #2e7d32; }
.eawell-step-card--rejected { border-left-color: #c62828; }

.eawell-step-card__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ea-text-light);
  margin-bottom: 8px;
}

.eawell-step-card__title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ea-primary);
  margin: 0 0 10px;
  font-family: "Onest", sans-serif !important;
  letter-spacing: -0.01em;
}

.eawell-step-card__desc {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ea-text-mid);
  margin: 0 0 18px;
}

/* Inline status text next to the resend button */
.eawell-resend-status {
  display: inline-block;
  margin-left: 14px;
  font-size: 0.9rem;
  color: var(--ea-text-light);
}
.eawell-resend-status--ok  { color: #2e7d32; font-weight: 600; }
.eawell-resend-status--err { color: #c62828; font-weight: 600; }

/* =====================================================
   DOCUMENTS STEP — Phase 3
   Per-slot upload UI with dropzones + filled file display.
   ===================================================== */

.eawell-docs-card { max-width: 760px !important; }

.eawell-docs-grid {
  display: grid;
  /* minmax(0, 1fr) — lets columns shrink below content's min-content size
     so long filenames don't push the grid wider than the card. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin: 0 0 28px;
}

.eawell-doc-slot {
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 8px;
  padding: 18px 20px 18px;
  position: relative;
  min-width: 0;          /* allow shrinking inside the grid cell */
  overflow: hidden;      /* clip anything that still tries to spill */
  transition: border-color 0.2s ease;
}

/* `hidden` attribute would normally be display:none, but our CSS rules
   set display:flex on .eawell-doc-file / .eawell-doc-dropzone — that wins
   without !important. Force the hidden state to actually hide. */
.eawell-doc-file[hidden],
.eawell-doc-dropzone[hidden] {
  display: none !important;
}

.eawell-doc-slot.is-filled {
  border-left: 3px solid var(--ea-accent);
}

.eawell-doc-slot.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  border-radius: inherit;
  pointer-events: all;
}

.eawell-doc-slot__head { margin-bottom: 14px; }
.eawell-doc-slot__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ea-text);
  margin: 0 0 4px;
  font-family: "Onest", sans-serif !important;
}
.eawell-doc-slot__title .req { color: #c62828; margin-left: 2px; }
.eawell-doc-slot__hint {
  font-size: 0.82rem;
  color: var(--ea-text-light);
  margin: 0;
  line-height: 1.4;
}

/* Empty dropzone */
.eawell-doc-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 22px 14px;
  border: 2px dashed var(--ea-border);
  border-radius: 6px;
  background: var(--ea-bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.eawell-doc-dropzone:hover,
.eawell-doc-dropzone.is-drag-over {
  border-color: var(--ea-accent);
  background: rgba(214, 170, 59, 0.06);
}
.eawell-doc-dropzone__icon {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ea-accent);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 50%;
  margin-bottom: 6px;
}
.eawell-doc-dropzone__text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ea-text);
}
.eawell-doc-dropzone__hint {
  font-size: 0.75rem;
  color: var(--ea-text-light);
}

/* Filled state — grid so actions sit on their own row below */
.eawell-doc-file {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
"icon    info   "
"actions actions";
  align-items: center;
  gap: 10px 6px;
  padding: 12px 14px;
  background: rgba(18, 91, 98, 0.04);
  border-radius: 6px;
  margin-bottom: 10px;
}
.eawell-doc-file__icon {
  grid-area: icon;
  font-size: 1.3rem;
}
.eawell-doc-file__info {
  grid-area: info;
  min-width: 0;
  line-height: 1.15;
}
.eawell-doc-file__name {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ea-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eawell-doc-file__name:hover { text-decoration: underline; }
.eawell-doc-file__meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ea-text-light);
}

.eawell-doc-actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.eawell-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: "Open Sans", var(--ea-font);
  border-radius: 5px;
  border: 1px solid var(--ea-border);
  background: #fff;
  color: var(--ea-text);
  cursor: pointer;
  transition: all 0.18s ease;
}
.eawell-doc-btn:hover { border-color: var(--ea-primary); color: var(--ea-primary); }
.eawell-doc-btn--replace { padding: 0 14px; }
.eawell-doc-btn--remove:hover { border-color: #c62828; color: #c62828; }

/* Per-slot status (progress + error) */
.eawell-doc-status {
  font-size: 0.82rem;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 4px;
}
.eawell-doc-status--progress { background: rgba(18, 91, 98, 0.06); color: var(--ea-primary); }
.eawell-doc-status--err { background: rgba(198, 40, 40, 0.08); color: #c62828; }

/* Submit row */
.eawell-docs-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.eawell-docs-actions__hint {
  font-size: 0.85rem;
  color: var(--ea-text-light);
}

@media (max-width: 600px) {
  .eawell-docs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .eawell-doc-actions { flex-wrap: wrap; }
}

/* =====================================================
   PAYMENT STEP — Phase 4
   ===================================================== */

.eawell-payment-card { max-width: 760px !important; }

.eawell-pay-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 28px;
}

.eawell-pay-section {
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 8px;
  padding: 18px 22px;
}

.eawell-pay-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ea-text-light);
  margin-bottom: 8px;
}

.eawell-pay-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ea-primary);
  margin: 0 0 14px;
  font-family: "Onest", sans-serif !important;
  letter-spacing: -0.01em;
}

.eawell-pay-section__desc {
  font-size: 0.92rem;
  color: var(--ea-text-mid);
  margin: 0 0 14px;
  line-height: 1.5;
}

/* Application fee block */
.eawell-pay-fee {
  text-align: center;
  background: linear-gradient(135deg, #fafbfc 0%, #fff 100%);
  border-left: 4px solid var(--ea-accent);
}
.eawell-pay-fee__amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ea-primary);
  font-family: "Onest", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 4px;
}

/* Reference card */
.eawell-pay-ref {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.eawell-pay-ref__code {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: var(--ea-primary-dark);
  color: var(--ea-accent);
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 6px;
  text-align: center;
}
.eawell-pay-ref__hint {
  font-size: 0.92rem;
  color: var(--ea-text-mid);
  margin: 0 0 12px;
  flex: 1 1 100%;
}
.eawell-pay-ref__generate {
  flex: 0 0 auto;
}
.eawell-pay-ref__copy {
  flex: 0 0 auto;
}

/* Payment methods */
.eawell-pay-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.eawell-pay-method {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--ea-bg);
  border-radius: 6px;
  border: 1px solid var(--ea-border);
}
.eawell-pay-method--bank {
  grid-column: 1 / -1;
}
.eawell-pay-method__brand {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: #fff;
}
.eawell-pay-method__brand--mtn    { background: #fcc202; color: #1a1a1a; }
.eawell-pay-method__brand--airtel { background: #ed1c24; }
.eawell-pay-method__brand--bank   { background: var(--ea-primary); font-size: 1.4rem; }

.eawell-pay-method__body { flex: 1; min-width: 0; }
.eawell-pay-method__label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ea-text);
  margin-bottom: 2px;
}
.eawell-pay-method__meta {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ea-text-light);
  margin-bottom: 4px;
}
.eawell-pay-method__code {
  display: inline-block;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ea-primary);
}
.eawell-pay-method__bank {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ea-text-mid);
  white-space: pre-wrap;
  font-family: "Open Sans", var(--ea-font);
}

/* Resume reassurance banner — "your progress is saved" */
.eawell-pay-resume {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(18, 91, 98, 0.05);
  border-left: 4px solid var(--ea-primary);
  border-radius: 6px;
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ea-text-mid);
}
.eawell-pay-resume__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--ea-primary);
  line-height: 1.4;
}
.eawell-pay-resume__body strong {
  display: block;
  color: var(--ea-primary);
  font-weight: 700;
  margin-bottom: 2px;
}
.eawell-pay-resume__body a {
  color: var(--ea-accent);
  font-weight: 600;
  text-decoration: none;
}
.eawell-pay-resume__body a:hover { text-decoration: underline; }

/* "Ready to send for review" — final confirmation block */
.eawell-pay-final {
  margin: 32px 0 18px;
  padding: 22px 24px;
  background: rgba(214, 170, 59, 0.06);
  border: 1px solid rgba(214, 170, 59, 0.4);
  border-left: 4px solid var(--ea-accent);
  border-radius: 8px;
}
.eawell-pay-final__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ea-primary);
  margin: 0 0 8px;
  font-family: "Onest", sans-serif !important;
  letter-spacing: -0.01em;
}
.eawell-pay-final__intro {
  font-size: 0.94rem;
  color: var(--ea-text-mid);
  line-height: 1.55;
  margin: 0 0 14px;
}
.eawell-pay-final__checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.eawell-pay-final__checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--ea-text);
  line-height: 1.5;
}
.eawell-pay-final__checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ea-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 50%;
  margin-top: 2px;
}
.eawell-pay-final__checklist code {
  background: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--ea-border);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ea-primary);
}

/* Locked banner (read-only mode) */
.eawell-pay-locked-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(46, 125, 50, 0.08);
  border-left: 4px solid #2e7d32;
  border-radius: 6px;
  font-size: 0.94rem;
  color: #1e4620;
  font-weight: 500;
}
.eawell-pay-locked-banner__icon {
  font-size: 1.2rem;
  color: #2e7d32;
}

@media (max-width: 600px) {
  .eawell-pay-method { padding: 12px; }
  .eawell-pay-method__brand { width: 44px; height: 44px; }
}

/* =====================================================
   CUSTOM CONFIRM DIALOG — replaces native confirm()
   ===================================================== */

.eawell-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 73, 78, 0.55);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.eawell-confirm-overlay.is-open { opacity: 1; }

.eawell-confirm {
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 10px;
  max-width: 460px;
  width: 100%;
  padding: 28px 28px 22px;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.18s ease;
}
.eawell-confirm-overlay.is-open .eawell-confirm {
  transform: translateY(0) scale(1);
}

.eawell-confirm__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ea-primary);
  margin: 0 0 10px;
  font-family: "Onest", sans-serif !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.eawell-confirm__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ea-text-mid);
  margin: 0 0 22px;
}

.eawell-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.eawell-confirm__cancel,
.eawell-confirm__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: "Open Sans", var(--ea-font);
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.eawell-confirm__cancel {
  background: transparent;
  color: var(--ea-text-mid);
  border-color: var(--ea-border);
}
.eawell-confirm__cancel:hover {
  border-color: var(--ea-text-mid);
  color: var(--ea-text);
}

.eawell-confirm__ok {
  background: var(--ea-accent);
  color: #fff;
  border-color: var(--ea-accent);
}
.eawell-confirm__ok:hover {
  background: #c39733;
  border-color: #c39733;
}

.eawell-confirm__ok--danger {
  background: #c62828;
  border-color: #c62828;
}
.eawell-confirm__ok--danger:hover {
  background: #a31f1f;
  border-color: #a31f1f;
}

@media (max-width: 480px) {
  .eawell-confirm { padding: 22px 20px 18px; }
  .eawell-confirm__actions { flex-direction: column-reverse; }
  .eawell-confirm__cancel,
  .eawell-confirm__ok { width: 100%; }
}

/* =====================================================
   DASHBOARD CHROME — Phase 5a
   Top bar + left sidebar app layout for in-app pages
   (dashboard, documents, payment).
   ===================================================== */

/* When the in-app chrome is active we own the entire viewport */
body.eawell-in-app {
  margin: 0;
  background: #f3f5f7;
  min-height: 100vh;
}
body.eawell-in-app .eawell-site-main { display: none; }   /* belt-and-braces in case the public chrome leaks */

.eawell-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top bar ──────────────────────────────────────────── */
.eawell-app__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 58px;
  padding: 0 20px;
  background: var(--ea-primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.eawell-app__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.eawell-app__brand img {
  height: 36px;
  width: auto;
}
.eawell-app__brand-text {
  font-family: "Onest", sans-serif !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff;
}

.eawell-app__user {
  margin-left: auto;
  position: relative;
}
/* Pill-style trigger: "Hello, <Name>" + avatar */
.eawell-app__user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.eawell-app__user-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.eawell-app__user-trigger:focus {
  background-color: #206066;
  border-color: #266d73;
}
.eawell-app__hello {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  white-space: nowrap;
}
.eawell-app__hello strong {
  color: #fff;
  font-weight: 700;
  margin-left: 4px;
}

.eawell-app__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ea-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: "Onest", sans-serif;
  flex-shrink: 0;
}
.eawell-app__avatar--lg {
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

/* Dropdown card — dark, with user header + divider + icon links */
.eawell-app__user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 264px;
  background: #0e494e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.eawell-app__user-menu[hidden] { display: none; }

.eawell-app__user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 12px;
}
.eawell-app__user-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.eawell-app__user-card-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: "Onest", sans-serif;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eawell-app__user-card-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eawell-app__user-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 8px 6px;
}

.eawell-app__user-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}
.eawell-app__user-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.eawell-app__user-link .eawell-app__nav-icon {
  color: rgba(255, 255, 255, 0.7);
  width: 18px;
  height: 18px;
}
.eawell-app__user-link:hover .eawell-app__nav-icon {
  color: var(--ea-accent);
}

/* Mobile menu toggle (hamburger) — hidden on desktop */
.eawell-app__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}
.eawell-app__menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  border-radius: 1px;
}

/* ── Body (sidebar + main) ────────────────────────────── */
.eawell-app__body {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

.eawell-app__sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--ea-primary-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0 10px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}

.eawell-app__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 14px;
  flex: 1;
}

.eawell-app__nav-footer {
  padding: 12px 14px 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.eawell-app__nav-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 7px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: "Open Sans",var(--ea-font) ;
  transition: background 0.15s ease, color 0.15s ease;
  border-left: 3px solid transparent;
    border-left-color: transparent;
  margin-left: -3px;
}
.eawell-app__nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.eawell-app__nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  border-left-color: var(--ea-accent);
}
.eawell-app__nav-icon {
  flex-shrink: 0;
  color: currentColor;
  height: 18px;
  width: 18px;
}

/* Backdrop (mobile drawer overlay) */
.eawell-app__backdrop {
  display: none;
  position: fixed;
  inset: 58px 0 0 0;
  background: rgba(14, 73, 78, 0.45);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.eawell-app__backdrop.is-open {
  display: block;
  opacity: 1;
}

/* ── Main content area ────────────────────────────────── */
.eawell-app__main {
  flex: 1;
  min-width: 0;
  padding: 32px 32px 60px;
  background: #f3f5f7;
}

/* Make existing shortcode wrappers feel at home in the new shell:
   drop their full-height teal padding etc., let the card center inside. */
body.eawell-in-app .eawell-wrapper,
body.eawell-in-app .eawell-dashboard-wrapper {
  background: transparent;
  padding: 0;
  min-height: 0;
}

/* In-app pages: drop the form-card visual chrome entirely. Content sits
   directly on the dashboard's main area. Page-specific max-widths
   (.eawell-docs-card, .eawell-payment-card) are preserved by their own rules. */
body.eawell-in-app .eawell-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* Hide the repeating 3-logo + "Oil and Gas Wells Training" / "2026/2027 Application"
   header inside each card. The dashboard chrome already establishes identity. */
body.eawell-in-app .eawell-header {
  display: none;
}

/* Hide the redundant Sign Out link at the bottom of the welcome block —
   chrome's user menu + sidebar footer already provide Sign Out. */
body.eawell-in-app .eawell-logout-row {
  display: none;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .eawell-app__menu-toggle { display: inline-flex; }
  .eawell-app__brand-text { display: none; }

  .eawell-app__sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    height: calc(100vh - 58px);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    box-shadow: none;
  }
  .eawell-app__sidebar.is-open {
    transform: translateX(0);
  }
  .eawell-app__main { padding: 22px 16px 40px; }
}

@media (max-width: 480px) {
  .eawell-app__topbar { padding: 0 14px; }
  .eawell-app__hello { display: none; }            /* keep just the avatar */
  .eawell-app__user-trigger { padding: 4px; }      /* tighter when avatar-only */
}

a:hover, a:focus {
  color: #d6aa3b;
}

/* =====================================================
   MATERIALS PAGE — Phase 7
   List of downloadable files for approved students
   ===================================================== */

.eawell-materials-card { max-width: 820px !important; }

.eawell-materials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eawell-material {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 8px;
  transition: border-color 0.18s ease;
}
.eawell-material:hover {
  border-color: var(--ea-primary);
}

.eawell-material__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(18, 91, 98, 0.08);
  color: var(--ea-primary);
}

.eawell-material__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eawell-material__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ea-text);
  font-family: "Onest", sans-serif !important;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.eawell-material__desc {
  font-size: 0.88rem;
  color: var(--ea-text-light);
  margin: 0;
  line-height: 1.45;
}

.eawell-material__meta {
  font-size: 0.78rem;
  color: var(--ea-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.eawell-material__cta {
  flex-shrink: 0;
}

/* Empty state */
.eawell-materials-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--ea-border);
  border-radius: 8px;
}
.eawell-materials-empty__icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 14px;
  filter: grayscale(0.4);
}
.eawell-materials-empty__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ea-text);
  margin: 0 0 8px;
  font-family: "Onest", sans-serif !important;
}
.eawell-materials-empty p {
  color: var(--ea-text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 560px) {
  .eawell-material {
    flex-wrap: wrap;
  }
  .eawell-material__cta {
    width: 100%;
    margin-top: 8px;
  }
}

/* =====================================================
   PROFILE PAGE — Phase 5b-3
   ===================================================== */

.eawell-profile-card { max-width: 820px !important; }

.eawell-profile-section {
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 8px;
  padding: 22px 24px 24px;
  margin: 0 0 22px;
}

.eawell-profile-section__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ea-primary);
  margin: 0 0 6px;
  font-family: "Onest", sans-serif !important;
  letter-spacing: -0.01em;
}

.eawell-profile-section__desc {
  font-size: 0.88rem;
  color: var(--ea-text-light);
  margin: 0 0 18px;
  line-height: 1.5;
}

/* Read-only email styling */
.eawell-input--readonly {
  background: var(--ea-bg);
  color: var(--ea-text-mid);
  cursor: not-allowed;
}

.eawell-input-note {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ea-text-light);
}

.eawell-profile-actions {
  margin-top: 18px;
}

/* Applied course row */
.eawell-profile-course {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.eawell-profile-course__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.eawell-profile-course__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ea-text);
  font-family: "Onest", sans-serif !important;
}
.eawell-profile-course__status {
  font-size: 0.85rem;
  color: var(--ea-text-light);
  font-weight: 500;
}

/* =====================================================
   OVERVIEW — Phase 5b-2
   Progress widget + step/course grid
   ===================================================== */

/* ── Progress widget (5 connected dots) ────────────────── */
.eawell-progress {
  list-style: none;
  margin: 0 0 28px;
  padding: 18px 8px;
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  counter-reset: progress-step;
}

.eawell-progress__step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Connector line between steps — rendered as a pseudo-element on each
   non-first step, stretched leftward to the previous dot. */
.eawell-progress__step + .eawell-progress__step::before {
  content: "";
  position: absolute;
  top: 16px;                /* vertical center of the 34px dot */
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--ea-border);
  z-index: -1;
}
/* Filled connector when the previous step is done — and into a done/current. */
.eawell-progress__step--done + .eawell-progress__step--done::before,
.eawell-progress__step--done + .eawell-progress__step--current::before {
  background: var(--ea-primary);
}

.eawell-progress__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ea-border);
  color: var(--ea-text-light);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: "Onest", sans-serif;
  transition: all 0.2s ease;
}

.eawell-progress__step--done .eawell-progress__dot {
  background: var(--ea-primary);
  border-color: var(--ea-primary);
  color: #fff;
}
.eawell-progress__step--current .eawell-progress__dot {
  background: var(--ea-accent);
  border-color: var(--ea-accent);
  color: #1a1a1a;
  box-shadow: 0 0 0 4px rgba(214, 170, 59, 0.18);
}

.eawell-progress__label {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ea-text-light);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.eawell-progress__step--done .eawell-progress__label {
  color: var(--ea-text);
}
.eawell-progress__step--current .eawell-progress__label {
  color: var(--ea-primary);
  font-weight: 700;
}

/* ── Overview stack: step card → course card ───────────
   Sidebar already eats ~240px of horizontal space, so two
   columns get cramped on the dashboard. Stack them. */
.eawell-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 22px;
}
.eawell-overview-grid .eawell-step-card { margin: 0; }

/* ── Course summary card (right column) ──────────────── */
.eawell-course-summary {
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 8px;
  padding: 18px 20px 20px;
}

.eawell-course-summary__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ea-text-light);
  margin-bottom: 6px;
}

.eawell-course-summary__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ea-primary);
  margin: 0 0 12px;
  font-family: "Onest", sans-serif !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.eawell-course-summary__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.eawell-course-summary__badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
}
.eawell-course-summary__badge--area {
  background: rgba(18, 91, 98, 0.1);
  color: var(--ea-primary);
}
.eawell-course-summary__badge--level.eawell-course-summary__badge--basic {
  background: var(--ea-primary);
  color: #fff;
}
.eawell-course-summary__badge--level.eawell-course-summary__badge--advanced {
  background: var(--ea-accent);
  color: #1a1a1a;
}

.eawell-course-summary__facts {
  margin: 0 0 14px;
  padding: 12px 0 0;
  border-top: 1px solid var(--ea-border);
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 16px;
  row-gap: 6px;
}
.eawell-course-summary__facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ea-text-light);
  align-self: center;
}
.eawell-course-summary__facts dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ea-text);
  font-family: "Onest", sans-serif;
}

.eawell-course-summary__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ea-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;            /* never wrap the label */
  transition: gap 0.18s ease;
  align-self: flex-start;         /* respect natural width inside flex parent */
}
.eawell-course-summary__link:hover {
  gap: 10px;
}

@media (max-width: 560px) {
  .eawell-progress__label {
    font-size: 0.7rem;
  }
  .eawell-progress {
    padding: 16px 4px;
  }
}

/* =====================================================
   APPLICATION SUMMARY CARD (dashboard Overview)
   Full-width horizontal tile — icon | name+course | View →
   Opens the existing See-My-Details modal on click.
   ===================================================== */
.eawell-summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid var(--ea-border);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.eawell-summary-card:hover {
  border-color: var(--ea-primary);
  background: rgba(18, 91, 98, 0.02);
}
.eawell-summary-card:focus {
  border-color: var(--ea-accent);
  background-color: #d6aa3b;
  outline: none;
}

.eawell-summary-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 91, 98, 0.08);
  color: var(--ea-primary);
  border-radius: 10px;
}

.eawell-summary-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eawell-summary-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #125b62;
  font-family: "Onest", sans-serif !important;
  letter-spacing: -0.005em;
}

.eawell-summary-card__meta {
  font-size: 0.88rem;
  color: var(--ea-text-light);
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eawell-summary-card__dot {
  margin: 0 6px;
  color: var(--ea-border);
}

.eawell-summary-card__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ea-accent);
}
.eawell-summary-card__cta svg {
  transition: transform 0.18s ease;
}
.eawell-summary-card:hover .eawell-summary-card__cta svg {
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .eawell-summary-card { padding: 14px 16px; gap: 12px; }
  .eawell-summary-card__icon { width: 38px; height: 38px; }
  .eawell-summary-card__cta { font-size: 0; gap: 0; }  /* arrow only on small */
  .eawell-summary-card__cta svg { width: 18px; height: 18px; }
}




/* ── Toast notification ──────────────────────────────────
   Fixed top-right, slides in, auto-dismisses after 6s.
   Used by /courses/ when a visitor is bounced from the
   register page for not picking a course.
   ───────────────────────────────────────────────────────── */
.eawell-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 380px;
  padding: 14px 18px 14px 20px;
  background: #ffffff;
  color: var(--ea-text);
  border: 1px solid var(--ea-border);
  border-left: 4px solid var(--ea-accent);
  font-family: "Open Sans", var(--ea-font);
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.eawell-toast--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eawell-toast__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--ea-accent);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 50%;
  line-height: 1;
}

.eawell-toast__msg {
  flex: 1;
  padding-top: 1px;
}

.eawell-toast__close {
  background: none;
  border: none;
  color: var(--ea-text-light);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 4px;
  margin-top: -2px;
  transition: color 0.15s ease;
}

.eawell-toast__close:hover {
  color: var(--ea-text);
}

@media (max-width: 600px) {
  .eawell-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

