.cdm-wrap,
.cdm-wrap * { box-sizing: border-box; }
.cdm-wrap { --cdm-red:#ff111a; --cdm-navy:#020722; --cdm-text:#15171d; --cdm-muted:#70737b; --cdm-border:#ececf0; --cdm-soft:#f7f7f8; width:100%; background:#fff; color:var(--cdm-text); font-family:Inter,Montserrat,Arial,sans-serif; }
.cdm-container { width:min(1120px, calc(100% - 34px)); margin:0 auto; }
.cdm-hero { background:var(--cdm-navy); min-height:280px; display:flex; align-items:center; text-align:center; }
.cdm-hero-inner { padding:64px 0 78px; }
.cdm-hero h1 { margin:0; color:#fff; font-size:clamp(36px,5vw,58px); line-height:1.08; font-weight:500; letter-spacing:-1.8px; }
.cdm-hero h1 span { color:var(--cdm-red); font-weight:700; }
.cdm-hero p { max-width:760px; margin:20px auto 0; color:#c9ccda; font-size:14px; }
.cdm-main { margin-top:-56px; padding-bottom:86px; position:relative; z-index:2; }
.cdm-card { background:#fff; border:1px solid var(--cdm-border); border-radius:18px; box-shadow:0 8px 26px rgba(20,24,40,.035); }
.cdm-step-card { padding:30px; margin-bottom:26px; }
.cdm-step-heading { display:flex; align-items:flex-start; gap:18px; margin-bottom:25px; }
.cdm-step-number { color:var(--cdm-red); font-weight:800; font-size:20px; line-height:1; padding-top:2px; }
.cdm-step-heading h2,.cdm-review-heading h2 { margin:0 0 4px; font-size:20px; line-height:1.2; font-weight:750; }
.cdm-step-heading p,.cdm-review-heading p { margin:0; font-size:12px; color:var(--cdm-muted); }
.cdm-two-col { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.cdm-field { display:block; }
.cdm-field > span { display:block; margin:0 0 8px; font-size:12px; font-weight:700; }
.cdm-field select { width:100%; height:48px; padding:0 14px; border:0; border-radius:13px; background:#f4f4f5; color:#53565d; font-size:13px; outline:none; }
.cdm-field select:focus { box-shadow:0 0 0 2px rgba(255,17,26,.15); }
.cdm-school-list { display:grid; gap:13px; }
.cdm-school-option { width:100%; display:grid; grid-template-columns:20px 1fr auto; gap:13px; align-items:center; padding:16px; min-height:68px; border:1px solid transparent; border-radius:13px; background:#f5f5f6; text-align:left; cursor:pointer; transition:.2s ease; color:inherit; }
.cdm-school-option:hover { border-color:#e5e5e8; transform:translateY(-1px); }
.cdm-school-option.is-selected { border-color:var(--cdm-red); background:#fffafa; box-shadow:0 4px 16px rgba(255,17,26,.09); }
.cdm-radio-dot { width:17px; height:17px; border:1.7px solid #d7d9df; border-radius:50%; position:relative; }
.cdm-school-option.is-selected .cdm-radio-dot { border-color:var(--cdm-red); }
.cdm-school-option.is-selected .cdm-radio-dot:after { content:""; position:absolute; inset:3px; background:var(--cdm-red); border-radius:50%; }
.cdm-school-copy strong { display:block; font-size:13px; font-weight:750; }
.cdm-school-copy small { display:block; margin-top:5px; color:#7d8088; font-size:11px; }
.cdm-school-select-label { padding:5px 9px; border-radius:8px; background:#fff; color:#8a8d94; font-size:10px; white-space:nowrap; }
.cdm-school-option.is-selected .cdm-school-select-label { color:var(--cdm-red); font-weight:700; }
.cdm-product-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:30px 28px; }
.cdm-product { position:relative; border:1px solid transparent; border-radius:14px; padding:8px 8px 10px; transition:.2s ease; min-width:0; }
.cdm-product.is-selected { border-color:var(--cdm-red); box-shadow:0 5px 18px rgba(255,17,26,.08); }
.cdm-product-selected-ribbon { display:none; position:absolute; top:-15px; left:28px; z-index:2; color:#fff; background:var(--cdm-red); border-radius:7px 7px 0 0; padding:4px 10px; font-size:9px; font-weight:800; }
.cdm-product.is-selected .cdm-product-selected-ribbon { display:block; }
.cdm-product-image { border:1px solid #eceef2; border-radius:10px; overflow:hidden; aspect-ratio:1.04/1; background:#fff; display:flex; align-items:center; justify-content:center; }
.cdm-product-image img { display:block; width:100%; height:100%; object-fit:contain; }
.cdm-product h3 { font-size:13px; line-height:1.35; margin:12px 0 7px; font-weight:750; min-height:35px; }
.cdm-price { min-height:20px; color:var(--cdm-red); font-size:12px; font-weight:800; margin-bottom:10px; }
.cdm-price del { color:#999; font-weight:500; margin-left:5px; }
.cdm-price ins { text-decoration:none; }
.cdm-product-button { width:100%; height:36px; border:1px solid #222; border-radius:999px; background:#fff; color:#222; cursor:pointer; font-size:11px; transition:.2s ease; }
.cdm-product-button:hover { border-color:var(--cdm-red); color:var(--cdm-red); }
.cdm-product.is-selected .cdm-product-button { color:#fff; background:var(--cdm-red); border-color:var(--cdm-red); }
.cdm-quantity-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; background:#f5f5f6; border-radius:12px; padding:14px 16px; }
.cdm-quantity-bar > div:first-child strong,.cdm-quantity-bar > div:first-child span { display:block; }
.cdm-quantity-bar > div:first-child strong { font-size:12px; }
.cdm-quantity-bar > div:first-child span { margin-top:4px; color:#777b84; font-size:10px; }
.cdm-quantity-actions { display:flex; align-items:center; gap:9px; }
.cdm-qty-preset { width:34px; height:34px; border:1px solid #d9dbe0; border-radius:8px; background:#fff; cursor:pointer; font-weight:700; color:#6a6d74; }
.cdm-qty-preset.is-active { background:#000; border-color:#000; color:#fff; }
.cdm-stepper { height:34px; display:flex; align-items:center; overflow:hidden; background:#fff; border-radius:8px; }
.cdm-stepper button { width:38px; height:34px; border:0; background:#fff; font-size:20px; line-height:1; cursor:pointer; }
.cdm-stepper button:last-child { background:var(--cdm-red); color:#fff; }
.cdm-stepper span { width:38px; text-align:center; font-size:13px; font-weight:700; }
.cdm-badge-panel { margin-top:22px; border:1px solid #eceef2; border-radius:12px; padding:20px; }
.cdm-badge-header { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.cdm-badge-header > div:first-child span { display:block; font-size:11px; font-weight:700; }
.cdm-badge-header > div:first-child strong { display:inline-block; margin-top:6px; color:var(--cdm-red); border:1px solid #ffc4c7; background:#fff6f7; border-radius:5px; padding:2px 5px; font-size:10px; }
#cdm-next-badge { color:#bc6b00; background:#fff8e9; border:1px solid #ffe4af; border-radius:7px; padding:6px 9px; font-size:10px; }
.cdm-progress-track { height:9px; margin:28px 8px 13px; border-radius:999px; background:#f0f1f3; overflow:hidden; }
.cdm-progress-track span { display:block; height:100%; width:5%; background:var(--cdm-red); border-radius:999px; transition:width .25s ease; }
.cdm-milestones { display:grid; grid-template-columns:repeat(4, 1fr); text-align:center; gap:5px; }
.cdm-milestones strong,.cdm-milestones span { display:block; }
.cdm-milestones strong { font-size:12px; }
.cdm-milestones span { margin-top:4px; font-size:9px; color:#444; }
.cdm-milestones .is-current strong,.cdm-milestones .is-current span { color:var(--cdm-red); }
.cdm-review-card { margin-top:8px; padding:32px; border-color:var(--cdm-red); box-shadow:0 15px 38px rgba(0,0,0,.045); }
.cdm-review-heading { margin-bottom:24px; }
.cdm-review-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.cdm-review-grid > div { padding:15px 16px; border-radius:9px; background:#f6f6f7; min-height:73px; }
.cdm-review-grid span,.cdm-review-grid strong { display:block; }
.cdm-review-grid span { margin-bottom:7px; color:#80838a; font-size:9px; }
.cdm-review-grid strong { font-size:11px; line-height:1.35; }
.cdm-total-row { margin:15px 0 0; padding:14px 16px; border-radius:9px; background:#fff8f8; display:flex; justify-content:space-between; gap:20px; align-items:center; }
.cdm-total-row span { color:#666a72; font-size:10px; }
.cdm-total-row strong { color:var(--cdm-red); font-size:13px; }
.cdm-submit-button { display:flex; align-items:center; gap:8px; margin:28px auto 0; padding:0 26px; height:48px; border:0; border-radius:999px; background:var(--cdm-red); color:#fff; font-weight:800; font-size:12px; cursor:pointer; box-shadow:0 7px 20px rgba(255,17,26,.2); }
.cdm-submit-button:disabled { opacity:.7; cursor:not-allowed; }
.cdm-confirmation-note { text-align:center; color:#777b84; margin:14px 0 0; font-size:10px; }
.cdm-form-message { max-width:620px; margin:18px auto -6px; padding:0; text-align:center; font-size:12px; }
.cdm-form-message.is-error,.cdm-form-message.is-success { padding:11px 14px; border-radius:9px; }
.cdm-form-message.is-error { color:#a80008; background:#fff0f1; border:1px solid #ffc6ca; }
.cdm-form-message.is-success { color:#0c6c3f; background:#eefbf4; border:1px solid #bcebd2; }
.cdm-empty-state,.cdm-empty-note,.cdm-alert { padding:18px; border-radius:10px; background:#f7f7f8; color:#6d7077; font-size:12px; }
.cdm-alert-error { margin-bottom:20px; color:#8d1117; background:#fff1f2; border:1px solid #ffc7ca; }

@media (max-width: 900px) {
  .cdm-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cdm-review-grid { grid-template-columns:repeat(2,1fr); }
  .cdm-quantity-bar,.cdm-badge-header { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 640px) {
  .cdm-container { width:min(100% - 24px,1120px); }
  .cdm-hero { min-height:225px; }
  .cdm-hero-inner { padding:44px 0 62px; }
  .cdm-hero h1 { font-size:36px; }
  .cdm-main { margin-top:-32px; }
  .cdm-step-card,.cdm-review-card { padding:20px 16px; border-radius:15px; }
  .cdm-step-heading { gap:12px; margin-bottom:20px; }
  .cdm-step-number { font-size:17px; }
  .cdm-step-heading h2,.cdm-review-heading h2 { font-size:17px; }
  .cdm-two-col,.cdm-product-grid,.cdm-review-grid { grid-template-columns:1fr; }
  .cdm-product-grid { gap:22px; }
  .cdm-product h3 { min-height:0; }
  .cdm-school-option { grid-template-columns:18px 1fr; }
  .cdm-school-select-label { display:none; }
  .cdm-quantity-actions { width:100%; flex-wrap:wrap; }
  .cdm-stepper { margin-left:auto; }
  .cdm-badge-header { gap:12px; }
  .cdm-milestones span { font-size:8px; }
}
