:root {
  --cml-blue: #1a5f9a;
  --cml-deep: #12384f;
  --cml-green: #d1e33d;
  --cml-green-soft: #f4f8cf;
  --cml-sky: #edf5f9;
  --cml-ink: #203947;
  --cml-muted: #607681;
  --cml-line: #d8e4e9;
  --cml-white: #ffffff;
  --cml-shadow: 0 18px 50px rgba(18, 56, 79, .12);
}

.cml-page, .cml-page * { box-sizing: border-box; }
.cml-page { color: var(--cml-ink); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.65; background: #fff; }
.cml-page h1, .cml-page h2, .cml-page h3 { color: var(--cml-deep); line-height: 1.12; margin-top: 0; font-weight: 800; letter-spacing: -.025em; }
.cml-page h1 { font-size: clamp(2.65rem, 6vw, 5.35rem); max-width: 840px; margin-bottom: 20px; }
.cml-page h2 { font-size: clamp(2rem, 4vw, 3.55rem); max-width: 900px; margin-bottom: 22px; }
.cml-page h3 { font-size: 1.25rem; margin-bottom: 10px; }
.cml-page p { margin: 0 0 18px; }
.cml-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.cml-kicker { display: inline-block; color: var(--cml-blue); font-weight: 800; letter-spacing: .14em; font-size: .76rem; margin-bottom: 16px; }
.cml-topic-badge { display: inline-flex; align-items: center; width: fit-content; margin: 0 0 18px; padding: 8px 13px; border-radius: 999px; background: var(--cml-green-soft); border: 1px solid #d6df86; color: var(--cml-deep); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.cml-section { padding: 94px 0; }
.cml-section-soft { background: var(--cml-sky); }

.cml-hero { position: relative; overflow: hidden; background: linear-gradient(125deg, #f7fbfd 0%, #fff 60%, #f5f9d4 100%); padding: 106px 0 90px; }
.cml-hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -210px; top: -230px; background: rgba(209, 227, 61, .32); }
.cml-hero::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; left: -210px; bottom: -250px; border: 70px solid rgba(26, 95, 154, .08); }
.cml-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .75fr); gap: 70px; align-items: center; }
.cml-subtitle { color: var(--cml-blue); font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 700; max-width: 850px; line-height: 1.35; }
.cml-hero-copy { max-width: 800px; font-size: 1.08rem; color: #49636f; }
.cml-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.cml-button, .cml-submit { border: 0; display: inline-flex; justify-content: center; align-items: center; padding: 14px 23px; border-radius: 7px; background: var(--cml-blue); color: #fff !important; text-decoration: none !important; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.cml-button:hover, .cml-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 95, 154, .22); background: #144f82; }
.cml-button-secondary { color: var(--cml-deep) !important; background: transparent; border: 1px solid #acc2cd; }
.cml-button-secondary:hover { background: #fff; }
.cml-event-card { background: var(--cml-deep); color: #fff; padding: 34px; border-radius: 16px; box-shadow: var(--cml-shadow); }
.cml-event-label { color: var(--cml-green); letter-spacing: .12em; font-size: .72rem; font-weight: 800; margin-bottom: 20px; }
.cml-event-card dl { margin: 0; }
.cml-event-card dl > div { display: grid; grid-template-columns: 85px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.cml-event-card dt { color: #a8c0cd; font-size: .85rem; }
.cml-event-card dd { margin: 0; font-weight: 700; }
.cml-early-bird { background: var(--cml-green); color: var(--cml-deep); border-radius: 10px; padding: 20px; margin-top: 24px; }
.cml-early-bird span { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.cml-early-bird strong { display: block; font-size: 1.55rem; margin: 5px 0; }
.cml-early-bird small { display: block; line-height: 1.45; }

.cml-three-grid, .cml-four-grid, .cml-pricing-grid { display: grid; gap: 20px; margin-top: 40px; }
.cml-three-grid { grid-template-columns: repeat(3, 1fr); }
.cml-four-grid { grid-template-columns: repeat(4, 1fr); }
.cml-two-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.cml-card, .cml-mini-card, .cml-policy-card { border: 1px solid var(--cml-line); border-radius: 12px; padding: 28px; background: #fff; }
.cml-card > span { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: var(--cml-green-soft); color: var(--cml-deep); font-weight: 900; margin-bottom: 22px; }
.cml-card p, .cml-mini-card p, .cml-policy-card p { color: var(--cml-muted); margin-bottom: 0; }
.cml-mini-card { border-top: 5px solid var(--cml-blue); }
.cml-deliverables-section { background: #fff; }
.cml-deliverables-grid { align-items: stretch; }
.cml-deliverable { border: 1px solid var(--cml-line); border-radius: 12px; padding: 24px; background: #fff; position: relative; overflow: hidden; }
.cml-deliverable::before { content: "✓"; display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--cml-green-soft); color: var(--cml-deep); font-weight: 900; margin-bottom: 17px; }
.cml-deliverable strong { display: block; color: var(--cml-deep); font-size: 1.08rem; line-height: 1.3; margin-bottom: 9px; }
.cml-deliverable p { color: var(--cml-muted); margin: 0; }
.cml-deliverable-featured { background: var(--cml-green-soft); border-color: #d6df86; }
.cml-esr-section { background: linear-gradient(135deg, #102f43 0%, #174e70 100%); color: #dce7ec; }
.cml-esr-section h2 { color: #fff; margin-bottom: 0; }
.cml-esr-section .cml-kicker { color: var(--cml-green); }
.cml-esr-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; }
.cml-esr-heading > p { margin: 0; color: #dce7ec; font-size: 1.04rem; }
.cml-esr-grid article { border: 1px solid rgba(255,255,255,.18); border-radius: 11px; padding: 22px; background: rgba(255,255,255,.055); }
.cml-esr-grid strong { display: block; color: var(--cml-green); margin-bottom: 7px; }
.cml-esr-grid span { display: block; color: #dce7ec; line-height: 1.45; }
.cml-check-list { display: grid; gap: 12px; }
.cml-check-list div { background: #fff; border: 1px solid var(--cml-line); border-radius: 9px; padding: 17px 18px 17px 50px; position: relative; font-weight: 650; }
.cml-check-list div::before { content: "✓"; position: absolute; left: 18px; top: 15px; color: var(--cml-blue); font-weight: 900; }
.cml-dark-section { background: var(--cml-deep); color: #dce7ec; }
.cml-dark-section h2 { color: #fff; }
.cml-dark-section .cml-kicker { color: var(--cml-green); }
.cml-audience-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cml-audience-list li { border-bottom: 1px solid rgba(255,255,255,.16); padding: 0 0 12px 30px; position: relative; font-size: 1.05rem; }
.cml-audience-list li::before { content: "→"; position: absolute; left: 0; color: var(--cml-green); }
.cml-trainer-grid { display: grid; grid-template-columns: 280px 1fr; gap: 54px; align-items: center; }
.cml-trainer-photo img, .cml-photo-placeholder { width: 280px; height: 340px; object-fit: cover; border-radius: 14px; box-shadow: var(--cml-shadow); }
.cml-photo-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--cml-blue), var(--cml-deep)); color: var(--cml-green); font-size: 5rem; font-weight: 300; }
.cml-trainer-title { color: var(--cml-blue); font-size: 1.1rem; font-weight: 800; }
.cml-fee-section { background: #f7fafb; }
.cml-pricing-grid { grid-template-columns: 1fr 1fr; max-width: 960px; }
.cml-price-card { padding: 38px; border-radius: 14px; background: #fff; border: 1px solid var(--cml-line); }
.cml-price-card > span { font-size: .76rem; letter-spacing: .12em; font-weight: 900; color: var(--cml-blue); }
.cml-price-card strong { display: block; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: var(--cml-deep); margin: 16px 0 8px; }
.cml-price-card small { display: block; color: var(--cml-muted); margin-bottom: 24px; }
.cml-price-card p { color: var(--cml-muted); }
.cml-price-featured { background: var(--cml-green-soft); border-color: #d6df86; }
.cml-policy-section { padding-top: 86px; }
.cml-policy-note { margin-top: 24px !important; padding: 18px 22px; background: #fff5e7; border-left: 5px solid #d8902f; border-radius: 6px; }

.cml-register-section { background: linear-gradient(180deg, var(--cml-sky), #fff); }
.cml-form-shell { max-width: 1020px; }
.cml-form-intro { margin-bottom: 30px; }
.cml-email-alert { background: #fff; border: 1px solid #bfd3dc; border-left: 5px solid var(--cml-blue); border-radius: 7px; padding: 18px 20px; color: #355563; }
.cml-registration-form { background: #fff; border-radius: 16px; box-shadow: var(--cml-shadow); padding: clamp(22px, 5vw, 50px); }
.cml-registration-form fieldset { display: block; min-width: 0; border: 0; border-top: 1px solid var(--cml-line); padding: 32px 0; margin: 0; }
.cml-registration-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.cml-registration-form .cml-form-section-title { display: block !important; position: static !important; float: none !important; clear: both !important; width: 100% !important; max-width: none !important; margin: 0 0 28px !important; padding: 0 !important; color: var(--cml-deep) !important; font-size: 1.3rem !important; font-weight: 900 !important; line-height: 1.25 !important; }
.cml-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cml-registration-form label { display: flex; flex-direction: column; color: var(--cml-deep); font-size: .92rem; font-weight: 750; gap: 7px; }
.cml-registration-form label > span { color: #bd3e36; }
.cml-registration-form input[type="text"], .cml-registration-form input[type="email"], .cml-registration-form input[type="tel"], .cml-registration-form select, .cml-registration-form textarea { width: 100%; border: 1px solid #bfcfd7; border-radius: 7px; background: #fff; padding: 12px 13px; color: var(--cml-ink); font: inherit; font-weight: 500; min-height: 47px; }
.cml-registration-form input:focus, .cml-registration-form select:focus, .cml-registration-form textarea:focus { outline: 3px solid rgba(26,95,154,.14); border-color: var(--cml-blue); }
.cml-registration-form label small { color: var(--cml-muted); font-weight: 500; line-height: 1.45; }
.cml-span-2 { grid-column: 1 / -1; }
.cml-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cml-choice-card { flex-direction: row !important; align-items: flex-start; gap: 13px !important; border: 1px solid var(--cml-line); border-radius: 10px; padding: 19px; cursor: pointer; }
.cml-choice-card:has(input:checked) { border-color: var(--cml-blue); box-shadow: 0 0 0 3px rgba(26,95,154,.10); }
.cml-choice-card input { margin-top: 5px; }
.cml-choice-card span { color: inherit !important; display: flex; flex-direction: column; gap: 3px; }
.cml-choice-card strong { font-size: 1.05rem; }
.cml-choice-card em { font-style: normal; color: var(--cml-blue); }
.cml-choice-card small { color: var(--cml-muted); font-weight: 500; }
.cml-field-help { color: var(--cml-muted); }
.cml-participants { display: grid; gap: 16px; }
.cml-participant { border: 1px solid var(--cml-line); border-radius: 10px; padding: 21px; background: #fbfdfe; }
.cml-participant-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--cml-deep); }
.cml-remove-participant { border: 0; background: transparent; color: #a43f39; text-decoration: underline; cursor: pointer; }
.cml-add-participant { margin-top: 15px; border: 1px solid var(--cml-blue); border-radius: 7px; color: var(--cml-blue); background: #fff; padding: 10px 15px; font-weight: 800; cursor: pointer; }
.cml-check-field { flex-direction: row !important; align-items: flex-start; gap: 12px !important; margin-bottom: 17px; font-weight: 600 !important; }
.cml-check-field input { margin-top: 6px; flex: 0 0 auto; }
.cml-check-field span { color: var(--cml-ink) !important; }
.cml-before-submit { background: var(--cml-green-soft); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; margin-bottom: 18px; }
.cml-submit { width: 100%; font-size: 1.02rem; min-height: 52px; }
.cml-privacy, .cml-small-note { color: var(--cml-muted); font-size: .82rem; margin: 13px 0 0 !important; text-align: center; }
.cml-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.cml-contact-strip { background: var(--cml-green); color: var(--cml-deep); padding: 22px 0; }
.cml-contact-strip .cml-shell { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.cml-notice { margin: 25px auto 0; border-radius: 9px; padding: 20px 22px; }
.cml-notice strong { font-size: 1.15rem; }
.cml-notice p { margin: 6px 0 0; }
.cml-notice-success { background: #eef7d5; border: 1px solid #cbdc7c; }
.cml-notice-error { background: #fff0ef; border: 1px solid #e6b5b1; }
.cml-confirm-wrap { padding: 70px 0; background: var(--cml-sky); }
.cml-confirm-card { background: #fff; max-width: 880px; margin: auto; border-radius: 16px; padding: clamp(24px, 5vw, 50px); box-shadow: var(--cml-shadow); }
.cml-confirm-summary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--cml-line); border-radius: 10px; overflow: hidden; margin: 24px 0; }
.cml-confirm-summary div { padding: 15px 18px; border-bottom: 1px solid var(--cml-line); display: flex; flex-direction: column; }
.cml-confirm-summary div:nth-last-child(-n+2) { border-bottom: 0; }
.cml-confirm-summary span { color: var(--cml-muted); font-size: .82rem; }
.cml-confirm-participants { background: #f7fafb; border-radius: 8px; padding: 20px 20px 20px 42px; }
.cml-confirm-policy { border-left: 5px solid var(--cml-green); padding: 5px 0 5px 20px; margin: 26px 0; }
.cml-confirm-policy p { margin-bottom: 10px; }

@media (max-width: 940px) {
  .cml-hero-grid, .cml-two-grid, .cml-trainer-grid, .cml-esr-heading { grid-template-columns: 1fr; }
  .cml-event-card { max-width: 620px; }
  .cml-four-grid { grid-template-columns: 1fr 1fr; }
  .cml-three-grid { grid-template-columns: 1fr; }
  .cml-trainer-grid { gap: 30px; }
}

@media (max-width: 680px) {
  .cml-shell { width: min(100% - 26px, 1180px); }
  .cml-section { padding: 66px 0; }
  .cml-hero { padding: 75px 0 60px; }
  .cml-four-grid, .cml-pricing-grid, .cml-field-grid, .cml-choice-grid, .cml-confirm-summary { grid-template-columns: 1fr; }
  .cml-confirm-summary div { border-bottom: 1px solid var(--cml-line) !important; }
  .cml-confirm-summary div:last-child { border-bottom: 0 !important; }
  .cml-trainer-photo img, .cml-photo-placeholder { width: 220px; height: 270px; }
  .cml-event-card { padding: 25px; }
  .cml-event-card dl > div { grid-template-columns: 70px 1fr; }
  .cml-registration-form { padding: 22px 18px; }
  .cml-contact-strip .cml-shell { flex-direction: column; gap: 3px; text-align: center; }
}

/* Version 1.2: protect shortcode layouts from theme/page-builder formatting. */
.cml-page .cml-shell {
  width: calc(100% - 40px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cml-page .cml-hero-grid,
.cml-page .cml-three-grid,
.cml-page .cml-four-grid,
.cml-page .cml-two-grid,
.cml-page .cml-pricing-grid,
.cml-page .cml-trainer-grid,
.cml-page .cml-esr-heading,
.cml-page .cml-field-grid,
.cml-page .cml-choice-grid,
.cml-page .cml-confirm-summary {
  display: grid !important;
}

.cml-page .cml-hero-grid > *,
.cml-page .cml-three-grid > *,
.cml-page .cml-four-grid > *,
.cml-page .cml-two-grid > *,
.cml-page .cml-pricing-grid > *,
.cml-page .cml-trainer-grid > *,
.cml-page .cml-esr-heading > *,
.cml-page .cml-field-grid > *,
.cml-page .cml-choice-grid > *,
.cml-page .cml-confirm-summary > * {
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.cml-page .cml-three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.cml-page .cml-four-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.cml-page .cml-two-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important; }
.cml-page .cml-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(310px, .75fr) !important; }
.cml-page .cml-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cml-page .cml-trainer-grid { grid-template-columns: 280px minmax(0, 1fr) !important; }
.cml-page .cml-esr-heading { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important; }
.cml-page .cml-field-grid,
.cml-page .cml-choice-grid,
.cml-page .cml-confirm-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

/* Some WordPress themes run automatic paragraph formatting after shortcode rendering. */
.cml-page p:empty,
.cml-page p.cml-autop-empty,
.cml-page .cml-hero-grid > br,
.cml-page .cml-three-grid > br,
.cml-page .cml-four-grid > br,
.cml-page .cml-two-grid > br,
.cml-page .cml-pricing-grid > br,
.cml-page .cml-trainer-grid > br,
.cml-page .cml-esr-heading > br,
.cml-page .cml-field-grid > br,
.cml-page .cml-choice-grid > br {
  display: none !important;
}

@media (max-width: 940px) {
  .cml-page .cml-hero-grid,
  .cml-page .cml-two-grid,
  .cml-page .cml-trainer-grid,
  .cml-page .cml-esr-heading { grid-template-columns: minmax(0, 1fr) !important; }
  .cml-page .cml-four-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cml-page .cml-three-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .cml-page .cml-trainer-grid { gap: 30px !important; }
}

@media (max-width: 680px) {
  .cml-page .cml-shell { width: calc(100% - 26px) !important; }
  .cml-page .cml-four-grid,
  .cml-page .cml-pricing-grid,
  .cml-page .cml-field-grid,
  .cml-page .cml-choice-grid,
  .cml-page .cml-confirm-summary { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Version 1.3: neutralize theme-generated clearfix pseudo-elements.
   Some themes attach ::before/::after to content containers. When those
   containers use CSS Grid, the pseudo-element becomes an extra grid item
   and shifts every visible card into the wrong column. */
.cml-page .cml-shell::before,
.cml-page .cml-shell::after,
.cml-page .cml-hero-grid::before,
.cml-page .cml-hero-grid::after,
.cml-page .cml-three-grid::before,
.cml-page .cml-three-grid::after,
.cml-page .cml-four-grid::before,
.cml-page .cml-four-grid::after,
.cml-page .cml-two-grid::before,
.cml-page .cml-two-grid::after,
.cml-page .cml-pricing-grid::before,
.cml-page .cml-pricing-grid::after,
.cml-page .cml-trainer-grid::before,
.cml-page .cml-trainer-grid::after,
.cml-page .cml-esr-heading::before,
.cml-page .cml-esr-heading::after,
.cml-page .cml-field-grid::before,
.cml-page .cml-field-grid::after,
.cml-page .cml-choice-grid::before,
.cml-page .cml-choice-grid::after,
.cml-page .cml-confirm-summary::before,
.cml-page .cml-confirm-summary::after,
.cml-page .cml-event-card dl > div::before,
.cml-page .cml-event-card dl > div::after {
  content: none !important;
  display: none !important;
  clear: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Prevent legacy float/clearfix rules from altering grid children. */
.cml-page .cml-hero-grid,
.cml-page .cml-three-grid,
.cml-page .cml-four-grid,
.cml-page .cml-two-grid,
.cml-page .cml-pricing-grid,
.cml-page .cml-trainer-grid,
.cml-page .cml-esr-heading,
.cml-page .cml-field-grid,
.cml-page .cml-choice-grid,
.cml-page .cml-confirm-summary {
  float: none !important;
  clear: none !important;
}
