/* ============================================================================
   ClassWaze Public Website — Application Forms
   Scope: Franchise Apply + future public Admission / Staff applications
   Keep application-specific styling here, not in pages.css.
   ========================================================================== */


/* ============================================================================
   1. PAGE FOUNDATION, SHELL & HERO
   ========================================================================== */

.cw-apply-page{
  --cw-apply-primary:var(--cw-theme-primary,#0A2D6D);
  --cw-apply-accent:var(--cw-theme-accent,#00B4E6);
  --cw-apply-dark:#08204E;
  --cw-apply-text:#243753;
  --cw-apply-muted:#6F7F93;
  --cw-apply-border:#DCE6EE;
  --cw-apply-soft:#F7FBFD;
  --cw-apply-radius:18px;
  padding:26px 0 54px;
  background:#fff;
  color:var(--cw-apply-text);
  font-family:var(--cw-font-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif);
}


.cw-apply-shell{
  width:calc(100% - 28px);
  max-width:var(--cw-container,1540px);
  margin:0 auto;
}

.cw-apply-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 205px;
  gap:18px;
  align-items:stretch;
}

.cw-apply-hero-copy,
.cw-apply-brand-card,
.cw-apply-panel,
.cw-review-card,
.cw-apply-doc-group{
  border:1px solid var(--cw-apply-border);
  background:#fff;
  border-radius:var(--cw-apply-radius);
}

.cw-apply-hero-copy{
  padding:28px 30px;
}

.cw-apply-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px;
  border:1px solid #BDEAF5;
  border-radius:999px;
  background:#F2FBFE;
  color:var(--cw-apply-primary);
  font-size:10px;
  font-weight:850;
  line-height:1;
}

.cw-apply-kicker span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--cw-apply-accent);
}

.cw-apply-hero h1{
  margin:13px 0 8px;
  color:var(--cw-apply-accent);
  font-size:32px;
  line-height:1.12;
  letter-spacing:-.025em;
  font-weight:850;
}

.cw-apply-hero-copy>p{
  max-width:790px;
  margin:0;
  color:var(--cw-apply-muted);
  font-size:13px;
  line-height:1.72;
}

.cw-apply-highlights{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:17px;
}

.cw-apply-highlights span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:6px 9px;
  border:1px solid #DCE8F0;
  border-radius:999px;
  background:#FBFDFF;
  color:#5D6F84;
  font-size:9.5px;
  font-weight:800;
}

.cw-apply-highlights svg{
  color:var(--cw-apply-accent);
}

.cw-apply-brand-card{
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:22px 16px;
  text-align:center;
  background:linear-gradient(180deg,#FBFEFF,#F7FBFD);
}

.cw-apply-brand-card strong{
  color:var(--cw-apply-primary);
  font-size:23px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.03em;
}

.cw-apply-brand-card strong span{
  color:var(--cw-apply-accent);
}

.cw-apply-brand-card small{
  margin-top:8px;
  color:#5B6F86;
  font-size:9.5px;
  font-weight:850;
}

.cw-apply-brand-card em{
  margin-top:7px;
  color:#8A99AA;
  font-size:7.5px;
  font-style:normal;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.cw-apply-alert{
  margin-top:16px;
  padding:12px 14px;
  border:1px solid #F0C7C2;
  border-radius:13px;
  background:#FFF7F5;
  color:#A12820;
  font-size:11px;
  font-weight:750;
  line-height:1.55;
}

/* ============================================================================
   2. FRANCHISE QUICK GUIDE
   --------------------------------------------------------------------------
   Four quick-guide cards with locked three-column alignment:
   ICON | TEXT | ARROW.
   SVG artwork is mathematically centered inside its icon box.
   ========================================================================== */

.cw-apply-guide{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--cw-apply-border);
  border-radius:16px;
  background:linear-gradient(135deg,#F7FCFE 0%,#FFFFFF 100%);
}

.cw-apply-guide-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);
  align-items:center;
  gap:18px;
  padding:2px 2px 11px;
}

.cw-apply-guide-kicker{
  display:block;
  margin-bottom:3px;
  color:var(--cw-apply-accent);
  font-size:9.5px;
  line-height:1.25;
  font-weight:850;
  letter-spacing:.02em;
}

.cw-apply-guide-head h2{
  margin:0;
  color:var(--cw-apply-primary);
  font-size:17px;
  line-height:1.3;
  font-weight:900;
}

.cw-apply-guide-head p{
  margin:0;
  color:#708197;
  font-size:10px;
  line-height:1.55;
}

.cw-apply-guide-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.cw-apply-guide-btn,
.cw-apply-guide-btn:link,
.cw-apply-guide-btn:visited{
  width:100%;
  min-width:0;
  min-height:64px;

  display:grid;
  grid-template-columns:34px minmax(0,1fr) 24px;
  align-items:center;

  column-gap:9px;
  padding:9px 10px;
  margin:0;

  border:1px solid #CFE7EF;
  border-radius:12px;

  background:#F2FBFD;
  color:var(--cw-apply-primary);

  text-align:left;
  white-space:normal;
  box-sizing:border-box;
  box-shadow:none;
}

.cw-apply-guide-btn:hover{
  transform:translateY(-2px);
  border-color:#A9DCEA;
  background:#EAF8FC;
  color:var(--cw-apply-primary);
  box-shadow:0 8px 18px rgba(10,45,109,.06);
}

.cw-apply-guide-btn:focus-visible{
  outline:2px solid var(--cw-apply-accent);
  outline-offset:2px;
}

/* --------------------------------------------------------------------------
   Icon box — fixed grid column + exact center.
   -------------------------------------------------------------------------- */
.cw-apply-guide-icon{
  position:relative;

  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;

  justify-self:center;
  align-self:center;

  display:grid;
  place-items:center;

  margin:0;
  padding:0;

  border:1px solid #B9DDE8;
  border-radius:9px;

  background:#FFFFFF;
  color:var(--cw-apply-accent);

  line-height:0;
  text-align:center;
  box-sizing:border-box;
}

/* --------------------------------------------------------------------------
   SVG — absolute mathematical center inside icon box.
   This avoids inline SVG baseline / viewBox alignment differences.
   -------------------------------------------------------------------------- */
.cw-apply-guide-icon svg{
  position:absolute;
  left:50%;
  top:50%;

  display:block;

  width:17px !important;
  height:17px !important;
  min-width:17px;
  min-height:17px;

  margin:0 !important;
  padding:0;

  flex:none;
  transform:translate(-50%,-50%);
  transform-origin:center center;
}

/* --------------------------------------------------------------------------
   Copy — vertically centered in the middle column.
   -------------------------------------------------------------------------- */
.cw-apply-guide-copy{
  min-width:0;
  align-self:center;

  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;

  margin:0;
  padding:0;
}

.cw-apply-guide-copy strong{
  display:block;
  overflow:hidden;
  color:var(--cw-apply-primary);
  font-size:10.8px;
  line-height:1.3;
  font-weight:850;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cw-apply-guide-copy small{
  display:block;
  overflow:hidden;
  color:#62758B;
  font-size:8.8px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* --------------------------------------------------------------------------
   Arrow — fixed third grid column + exact center.
   -------------------------------------------------------------------------- */
.cw-apply-guide-btn > b{
  width:24px;
  height:24px;
  min-width:24px;
  min-height:24px;

  justify-self:center;
  align-self:center;

  display:grid;
  place-items:center;

  margin:0;
  padding:0;

  border:1px solid #D4EAF1;
  border-radius:7px;

  background:#FFFFFF;
  color:var(--cw-apply-accent);

  font-size:13px;
  line-height:1;
  font-weight:850;
  text-align:center;
  box-sizing:border-box;
}

.cw-apply-guide-btn:hover > b{
  color:#FFFFFF;
  background:var(--cw-apply-accent);
  border-color:var(--cw-apply-accent);
}

/* ============================================================================
   3. APPLICATION PROGRESS & STEP NAVIGATION
   ========================================================================== */

.cw-apply-progress{
  margin-top:18px;
}

.cw-apply-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:7px;
}

.cw-apply-progress-meta strong{
  color:var(--cw-apply-primary);
  font-size:10px;
  font-weight:900;
}

.cw-apply-progress-meta span{
  color:#8A99AA;
  font-size:9px;
  font-weight:750;
}

.cw-apply-progress-track{
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:#E9F0F5;
}

.cw-apply-progress-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--cw-apply-primary),var(--cw-apply-accent));
  transition:width .28s ease;
}

.cw-apply-stepper{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}

.cw-apply-step{
  min-width:0;
  min-height:69px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 11px;
  border:1px solid var(--cw-apply-border);
  border-radius:14px;
  background:#fff;
  color:var(--cw-apply-text);
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}

.cw-apply-step:hover{
  transform:translateY(-1px);
  border-color:#B8E6F2;
  box-shadow:0 7px 18px rgba(8,32,78,.06);
}

.cw-apply-step.is-active{
  border-color:#8ADCF0;
  background:#F5FCFE;
  box-shadow:0 8px 22px rgba(0,180,230,.07);
}

.cw-apply-step.is-done{
  border-color:#CFE6D9;
  background:#FBFFFC;
}

.cw-apply-step-number{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#EEF6FA;
  color:var(--cw-apply-primary);
  font-size:10px;
  font-weight:900;
}

.cw-apply-step.is-active .cw-apply-step-number{
  color:#fff;
  background:linear-gradient(135deg,var(--cw-apply-primary),var(--cw-apply-accent));
}

.cw-apply-step.is-done .cw-apply-step-number{
  background:#E8F6EE;
  color:#087443;
}

.cw-apply-step strong{
  display:block;
  overflow:hidden;
  color:#183A69;
  font-size:10.5px;
  line-height:1.3;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cw-apply-step small{
  display:block;
  margin-top:3px;
  overflow:hidden;
  color:#8190A2;
  font-size:8.5px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}


/* ============================================================================
   4. FORM FIELDS & INPUTS
   ========================================================================== */

.cw-apply-panel{
  margin-top:12px;
  overflow:hidden;
}

.cw-apply-panel[hidden]{
  display:none!important;
}

.cw-apply-panel-head{
  display:flex;
  align-items:center;
  gap:13px;
  padding:18px 20px;
  border-bottom:1px solid #E5EDF3;
  background:linear-gradient(135deg,#F8FCFE,#fff);
}

.cw-apply-panel-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border:1px solid #D4EAF3;
  border-radius:12px;
  background:#EFF9FC;
  color:var(--cw-apply-primary);
  font-size:11px;
  font-weight:950;
}

.cw-apply-panel-kicker{
  display:block;
  margin-bottom:3px;
  color:var(--cw-apply-accent);
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.cw-apply-panel-head h2{
  margin:0;
  color:var(--cw-apply-dark);
  font-size:20px;
  line-height:1.3;
  font-weight:850;
}

.cw-apply-panel-head p{
  margin:4px 0 0;
  color:var(--cw-apply-muted);
  font-size:11.5px;
  line-height:1.6;
}

.cw-apply-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
  padding:20px;
}

.cw-field{
  min-width:0;
}

.cw-field-full{
  grid-column:1/-1;
}

.cw-field label{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:3px;
  min-height:18px;
  margin:0 0 6px;
  color:#51657E;
  font-size:11px;
  line-height:1.4;
  font-weight:850;
}

.cw-required{
  color:#D92D20;
  font-weight:950;
}

.cw-optional{
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:3px 7px;
  border:1px solid #C6E9F2;
  border-radius:999px;
  background:#F2FBFE;
  color:#008CB5;
  font-size:8.5px;
  line-height:1;
  font-weight:900;
}

.cw-input,
.cw-select,
.cw-textarea{
  width:100%;
  border:1px solid #CBD9E3;
  border-radius:11px;
  background:#fff;
  color:#233852;
  font:inherit;
  font-size:13px;
  line-height:1.5;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.cw-input,
.cw-select{
  height:46px;
  padding:0 13px;
}

.cw-textarea{
  min-height:108px;
  padding:12px 13px;
  resize:vertical;
  line-height:1.6;
}

.cw-textarea-compact{
  min-height:86px;
}

.cw-input::placeholder,
.cw-textarea::placeholder{
  color:#A0ADBA;
}

.cw-input:focus,
.cw-select:focus,
.cw-textarea:focus{
  border-color:var(--cw-apply-accent);
  box-shadow:0 0 0 3px rgba(0,180,230,.10);
  background:#FCFEFF;
}

.cw-input:invalid:focus,
.cw-select:invalid:focus,
.cw-textarea:invalid:focus{
  border-color:#E0A29C;
  box-shadow:0 0 0 3px rgba(217,45,32,.08);
}

/* ============================================================================
   5. PRIMARY TRAINING TYPE — CUSTOM COMBOBOX
   ========================================================================== */

/* --------------------------------------------------------------------------
   Primary Training Type — one professional combobox.
   Super Admin categories are selectable from the styled list, while the same
   input remains fully editable for a custom training type.
   -------------------------------------------------------------------------- */
.cw-training-picker{
  position:relative;
}

.cw-training-input-wrap{
  position:relative;
}

.cw-training-picker .cw-input{
  padding-right:44px;
}

.cw-training-picker-toggle{
  position:absolute;
  top:50%;
  right:8px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#5D728B;
  cursor:pointer;
  transform:translateY(-50%);
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.cw-training-picker-toggle:hover{
  background:#EEF8FC;
  color:var(--cw-apply-primary);
}

.cw-training-picker-toggle:focus-visible{
  outline:2px solid rgba(0,180,230,.35);
  outline-offset:1px;
}

.cw-training-picker.is-open .cw-training-picker-toggle{
  background:#EEF8FC;
  color:var(--cw-apply-accent);
}

.cw-training-picker.is-open .cw-training-picker-toggle svg{
  transform:rotate(180deg);
}

.cw-training-picker-toggle svg{
  width:14px;
  height:14px;
  transition:transform .18s ease;
}

.cw-training-menu{
  position:absolute;
  z-index:60;
  top:calc(100% + 6px);
  left:0;
  right:0;
  max-height:238px;
  overflow-y:auto;
  padding:6px;
  border:1px solid #CBDCE7;
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 30px rgba(8,32,78,.12),0 3px 8px rgba(8,32,78,.05);
}

.cw-training-menu[hidden]{
  display:none !important;
}

.cw-training-option{
  width:100%;
  display:flex;
  align-items:center;
  min-height:36px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#29415F;
  font:inherit;
  font-size:12px;
  font-weight:750;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}

.cw-training-option:hover,
.cw-training-option.is-highlighted{
  border-color:#D7EDF4;
  background:#F2FAFD;
  color:var(--cw-apply-primary);
}

.cw-training-option.is-selected{
  border-color:#BDE5F0;
  background:#EAF8FC;
  color:var(--cw-apply-primary);
  font-weight:850;
}

.cw-training-empty{
  padding:12px 10px;
  color:#7E8E9F;
  font-size:10px;
  line-height:1.55;
}

.cw-training-picker-help{
  margin-top:5px;
  color:#8090A2;
  font-size:9.5px;
  line-height:1.5;
}

.cw-training-picker:focus-within .cw-input{
  border-color:var(--cw-apply-accent);
  box-shadow:0 0 0 3px rgba(0,180,230,.10);
}

.cw-training-menu::-webkit-scrollbar{
  width:7px;
}

.cw-training-menu::-webkit-scrollbar-track{
  background:#F4F8FA;
  border-radius:999px;
}

.cw-training-menu::-webkit-scrollbar-thumb{
  background:#BCD3E0;
  border-radius:999px;
}

/* ============================================================================
   6. HELP, FILE GUIDANCE & DOCUMENT UPLOADS
   ========================================================================== */

.cw-apply-help{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 20px 20px;
  padding:11px 12px;
  border:1px solid #DCE8EF;
  border-radius:12px;
  background:#FBFDFF;
}

.cw-apply-help strong{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#17406F;
  font-size:10px;
  font-weight:900;
}

.cw-apply-help span{
  color:#7A899A;
  font-size:10.5px;
  line-height:1.55;
}

.cw-apply-help svg{
  color:var(--cw-apply-accent);
}

.cw-apply-file-note{
  margin:18px 20px 0;
  padding:14px 16px;
  border:1px solid #B9DCEB;
  border-left:4px solid var(--cw-apply-primary, #0A2D6D);
  border-radius:13px;
  background:#F3FAFD;
}

.cw-apply-file-note strong{
  display:block;
  color:var(--cw-apply-primary, #0A2D6D);
  font-size:15px;
  line-height:1.45;
  font-weight:900;
  letter-spacing:.15px;
}

.cw-apply-file-note span{
  display:block;
  margin-top:6px;
  color:#203B5D;
  font-size:13px;
  font-weight:650;
  line-height:1.65;
}

@media (max-width:600px){
  .cw-apply-file-note{margin:14px 12px 0;padding:12px}
  .cw-apply-file-note strong{font-size:14px}
  .cw-apply-file-note span{font-size:12.5px;line-height:1.6}
}

.cw-apply-doc-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  padding:18px 20px 20px;
}

.cw-apply-doc-group{
  overflow:hidden;
}

.cw-apply-doc-group-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 15px;
  border-bottom:1px solid #E6EEF3;
  background:#FAFCFD;
}

.cw-apply-doc-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#EEF8FC;
  color:var(--cw-apply-primary);
}

.cw-apply-doc-group-head strong{
  display:block;
  color:#193B69;
  font-size:12px;
  line-height:1.4;
  font-weight:900;
}

.cw-apply-doc-group-head small{
  display:block;
  margin-top:3px;
  color:#8290A2;
  font-size:9.5px;
}

.cw-upload-card{
  display:block;
  padding:13px 14px;
  border-bottom:1px solid #ECF1F5;
  background:#fff;
  cursor:pointer;
}

.cw-upload-card:last-child{
  border-bottom:0;
}

.cw-upload-card:hover{
  background:#FCFEFF;
}

.cw-upload-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.cw-upload-top strong{
  display:block;
  color:#29405D;
  font-size:11.5px;
  line-height:1.4;
  font-weight:900;
}

.cw-upload-top small{
  display:block;
  margin-top:3px;
  color:#8290A2;
  font-size:9.5px;
  line-height:1.5;
}

.cw-upload-top b{
  flex:0 0 auto;
}

.cw-upload-action{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  margin-top:9px;
  padding:7px 11px;
  overflow:hidden;
  border:1px solid #BDDDEA;
  border-radius:9px;
  background:#F2FBFE;
  color:var(--cw-apply-primary);
  font-size:10px;
  font-weight:900;
}

.cw-upload-action input[type="file"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  cursor:pointer;
  opacity:0;
}

.cw-upload-meta{
  display:block;
  margin-top:6px;
  color:#95A2AF;
  font-size:9px;
  line-height:1.5;
}

.cw-file-selected{
  display:block;
  margin-top:9px;
  color:#6D7D90;
  font-size:9.5px;
  line-height:1.5;
  word-break:break-word;
}

.cw-file-preview{
  display:none;
  align-items:center;
  gap:8px;
  min-height:44px;
  margin-top:8px;
  padding:6px 7px;
  border:1px solid #E2EAF0;
  border-radius:9px;
  background:#F9FCFD;
}

.cw-upload-card.has-file .cw-file-preview{
  display:flex;
}

.cw-file-preview img{
  width:42px;
  height:42px;
  flex:0 0 42px;
  object-fit:cover;
  border-radius:7px;
  background:#EEF3F7;
}

.cw-upload-error{
  margin-top:7px;
  padding:7px 9px;
  border:1px solid #F0C9C5;
  border-radius:8px;
  background:#FFF6F4;
  color:#A12820;
  font-size:9.5px;
  font-weight:800;
  line-height:1.45;
}

/* ============================================================================
   7. PLAN SELECTION
   ========================================================================== */

.cw-plan-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:20px;
}

.cw-plan-card{
  position:relative;
  min-width:0;
  cursor:pointer;
}

.cw-plan-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.cw-plan-card-body{
  display:block;
  min-height:100%;
  padding:18px;
  border:1px solid var(--cw-apply-border);
  border-radius:15px;
  background:#fff;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease;
}

.cw-plan-card:hover .cw-plan-card-body{
  transform:translateY(-1px);
  border-color:#B9E7F3;
  box-shadow:0 9px 22px rgba(8,32,78,.06);
}

.cw-plan-card.is-selected .cw-plan-card-body,
.cw-plan-card input:checked + .cw-plan-card-body{
  border-color:#72D2EA;
  background:#F6FCFE;
  box-shadow:0 0 0 3px rgba(0,180,230,.08),0 10px 25px rgba(8,32,78,.06);
}

.cw-plan-badge{
  display:inline-flex;
  padding:4px 7px;
  border-radius:999px;
  background:#F2FBFE;
  color:#008CB5;
  font-size:9.5px;
  font-weight:900;
}

.cw-plan-name{
  display:block;
  margin-top:11px;
  color:#1A3B68;
  font-size:14px;
  line-height:1.35;
  font-weight:900;
}

.cw-plan-price{
  display:block;
  margin-top:9px;
  color:var(--cw-apply-primary);
  font-size:26px;
  line-height:1.05;
  font-weight:950;
  letter-spacing:-.03em;
}

.cw-plan-meta{
  display:block;
  margin-top:6px;
  color:#7B899B;
  font-size:10px;
  line-height:1.5;
}

.cw-plan-extra{
  display:block;
  margin-top:7px;
  color:#4A6B86;
  font-size:9.5px;
  font-weight:800;
}

.cw-plan-features{
  margin-top:12px;
  padding-top:9px;
  border-top:1px solid #E6EDF2;
}

.cw-plan-features summary{
  color:var(--cw-apply-primary);
  font-size:9.5px;
  font-weight:900;
  cursor:pointer;
}

.cw-plan-feature-list{
  display:grid;
  gap:5px;
  margin-top:8px;
}

.cw-plan-feature-list span{
  display:flex;
  align-items:flex-start;
  gap:5px;
  color:#65758A;
  font-size:9.5px;
  line-height:1.5;
}

.cw-plan-feature-list svg{
  margin-top:1px;
  flex:0 0 auto;
  color:#16A67D;
}

.cw-plan-empty{
  display:grid;
  gap:4px;
  margin:20px;
  padding:20px;
  border:1px dashed #CDDCE6;
  border-radius:14px;
  background:#FBFDFF;
}

.cw-plan-empty strong{
  color:#25405F;
  font-size:12px;
}

.cw-plan-empty span{
  color:#7F8D9F;
  font-size:10px;
}

/* ============================================================================
   8. REVIEW & CONSENT
   ========================================================================== */

.cw-review-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:20px 20px 0;
}

.cw-review-card{
  padding:15px;
}

.cw-review-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.cw-review-card-head strong{
  color:#1A3B68;
  font-size:11.5px;
  font-weight:900;
}

.cw-review-card-head span{
  color:#8A98A9;
  font-size:9.5px;
}

.cw-review-card p{
  margin:0;
  color:#68798D;
  font-size:10.5px;
  line-height:1.7;
}

.cw-review-flow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}

.cw-review-flow span{
  padding:6px 8px;
  border:1px solid #DFE8EE;
  border-radius:999px;
  background:#FBFDFF;
  color:#52667F;
  font-size:9px;
  font-weight:850;
}

.cw-review-flow i{
  color:var(--cw-apply-accent);
  font-size:10px;
  font-style:normal;
  font-weight:950;
}

.cw-consent-box{
  display:grid;
  gap:9px;
  margin:14px 20px 20px;
  padding:15px;
  border:1px solid #DCE7EF;
  border-radius:14px;
  background:#FAFCFD;
}

.cw-consent-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:#586B80;
  font-size:10.5px;
  line-height:1.65;
}

.cw-consent-row input{
  margin-top:3px;
  accent-color:var(--cw-apply-accent);
}

.cw-consent-row a{
  color:var(--cw-apply-primary);
  font-weight:850;
  text-decoration:none;
}

.cw-consent-row a:hover{
  text-decoration:underline;
}

/* ============================================================================
   9. ACTION FOOTER
   ========================================================================== */

.cw-apply-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  margin-top:16px;
  padding-top:2px;
}

.cw-apply-actions-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
}

.cw-apply-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 19px;
  border:1px solid transparent;
  border-radius:10px;
  font-size:10.5px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}

.cw-apply-btn:hover{
  transform:translateY(-1px);
}

.cw-apply-btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--cw-apply-primary),#0962A6);
  box-shadow:0 7px 16px rgba(10,45,109,.13);
}

.cw-apply-btn-primary:hover{
  box-shadow:0 9px 20px rgba(10,45,109,.17);
}

.cw-apply-btn-secondary{
  color:var(--cw-apply-primary);
  border-color:#C9DBE5;
  background:#fff;
}

.cw-apply-btn-secondary:hover{
  border-color:#A8C9D8;
  background:#F8FCFE;
}

.cw-apply-btn:disabled,
.cw-apply-btn.is-processing{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}

.cw-apply-actions #cwApplyBack[hidden],
.cw-apply-actions #cwApplyNext[hidden],
.cw-apply-actions #cwApplySubmit[hidden]{
  display:none !important;
}

.cw-apply-submit-status{
  grid-column:1/-1;
  min-width:0;
  margin:0;
  color:#93A0AF;
  font-size:9.5px;
  line-height:1.5;
  text-align:right;
}

.cw-apply-submit-status.is-processing{
  color:var(--cw-apply-primary);
}

.cw-apply-footer-note{
  display:flex;
  align-items:flex-start;
  gap:6px;
  margin:11px 2px 0;
  color:#93A0AF;
  font-size:9.5px;
  line-height:1.5;
}

.cw-apply-footer-note svg{
  flex:0 0 auto;
  color:var(--cw-apply-accent);
  margin-top:1px;
}

/* ============================================================================
   10. FILE PREVIEW & SHARED FORM STATES
   ========================================================================== */

/* --------------------------------------------------------------------------
   File preview states used by pages.js.
   -------------------------------------------------------------------------- */
.cw-upload-card.has-file .cw-file-selected{
  color:#31506F;
  font-weight:800;
}

.cw-file-preview-copy{
  min-width:0;
  display:grid;
  gap:2px;
}

.cw-file-preview-name{
  display:block;
  overflow:hidden;
  color:#29405D;
  font-size:9px;
  line-height:1.4;
  font-weight:850;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cw-file-preview-type{
  display:block;
  color:#8492A2;
  font-size:8.5px;
  line-height:1.4;
}

.cw-file-preview-badge{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#EEF8FC;
  color:var(--cw-apply-primary);
  font-size:8.5px;
  font-weight:950;
  letter-spacing:.04em;
}

.cw-upload-card.has-file .cw-upload-action{
  border-color:#A8DDEB;
  background:#F5FCFE;
}

/* ==========================================================================
   Application-specific shared states used by pages.js
   ========================================================================== */

.cw-apply-panel.is-active{
  display:block;
}

.cw-apply-step[aria-current="step"]{
  cursor:default;
}

/* ============================================================================
   11. SUCCESS / SUBMISSION CONFIRMATION
   ========================================================================== */

/* --------------------------------------------------------------------------
   Success confirmation shown after the successful POST/redirect cycle.
   -------------------------------------------------------------------------- */
.cw-apply-success{
  margin-top:18px;
  padding:32px 34px;
  border:1px solid #D6E7EE;
  border-radius:20px;
  background:linear-gradient(145deg,#FBFEFF,#F7FBFD);
  text-align:center;
  box-shadow:0 12px 30px rgba(8,32,78,.05);
}

.cw-apply-success-icon{
  width:60px;
  height:60px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border:1px solid rgba(0,180,230,.22);
  border-radius:18px;
  background:#EEF8FC;
  color:var(--cw-apply-accent);
}

.cw-apply-success-kicker{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 10px;
  border:1px solid #CBEAF3;
  border-radius:999px;
  background:#F4FCFE;
  color:var(--cw-apply-primary);
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.cw-apply-success h2{
  max-width:780px;
  margin:14px auto 8px;
  color:var(--cw-apply-primary);
  font-size:24px;
  line-height:1.25;
  letter-spacing:-.02em;
}

.cw-apply-success>p{
  max-width:760px;
  margin:0 auto;
  color:#65778D;
  font-size:12px;
  line-height:1.75;
}

.cw-apply-success-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  max-width:720px;
  margin:20px auto 0;
}

.cw-apply-success-meta span{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:9px 12px;
  border:1px solid #DCE6EE;
  border-radius:12px;
  background:#fff;
}

.cw-apply-success-meta strong{
  color:#7B8A9B;
  font-size:9.5px;
  font-weight:800;
}

.cw-apply-success-meta b{
  color:var(--cw-apply-primary);
  font-size:11px;
  font-weight:900;
}

.cw-apply-success-meta b.is-review{
  color:#087443;
}

.cw-apply-success-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
  margin-top:20px;
}

.cw-apply-success-actions .cw-apply-btn{
  min-width:180px;
}

.cw-apply-success-next{
  display:grid;
  gap:4px;
  max-width:760px;
  margin:20px auto 0;
  padding:13px 16px;
  border:1px solid #DCE7EF;
  border-radius:14px;
  background:#fff;
}

.cw-apply-success-next strong{
  color:var(--cw-apply-primary);
  font-size:10px;
}

.cw-apply-success-next span{
  color:#718096;
  font-size:10px;
  line-height:1.6;
}

/* ============================================================================
   12. RESPONSIVE LAYOUT
   ========================================================================== */

@media (max-width:1000px){
  .cw-apply-form-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cw-plan-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cw-apply-stepper{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:760px){
  .cw-apply-guide-head{
    grid-template-columns:1fr;
    gap:8px;
  }

  .cw-apply-guide-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cw-apply-shell{
    width:calc(100% - 20px);
  }

  .cw-apply-hero{
    grid-template-columns:1fr;
  }

  .cw-apply-brand-card{
    min-height:auto;
    flex-direction:row;
    justify-content:flex-start;
    gap:7px 11px;
    flex-wrap:wrap;
    padding:14px 16px;
    text-align:left;
  }

  .cw-apply-brand-card strong{
    font-size:20px;
  }

  .cw-apply-brand-card small,
  .cw-apply-brand-card em{
    margin-top:0;
  }

  .cw-apply-form-grid{
    grid-template-columns:1fr;
    padding:16px;
  }

  .cw-field-full{
    grid-column:auto;
  }

  .cw-apply-doc-grid,
  .cw-review-summary{
    grid-template-columns:1fr;
    padding:16px;
  }

  .cw-consent-box{
    margin:0 16px 16px;
  }

  .cw-apply-stepper{
    grid-template-columns:1fr 1fr;
  }

  .cw-apply-step{
    min-height:62px;
  }

  .cw-apply-step:nth-child(5){
    grid-column:1/-1;
  }

  .cw-apply-actions{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
  }

  .cw-apply-actions-right{
    justify-content:flex-end;
    flex-wrap:nowrap;
  }

  .cw-apply-btn{
    min-height:42px;
    padding:0 16px;
  }
}


@media (max-width:520px){
  .cw-apply-guide{
    padding:12px;
  }

  .cw-apply-guide-grid{
    grid-template-columns:1fr;
  }

  .cw-apply-guide-btn{
    min-height:60px;
  }

  .cw-apply-guide-copy strong{
    font-size:10.5px;
  }

  .cw-apply-guide-copy small{
    font-size:8.8px;
  }

  .cw-apply-actions{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }

  .cw-apply-actions-right{
    width:100%;
  }

  .cw-apply-actions-right .cw-apply-btn{
    width:100%;
  }

  #cwApplyBack{
    width:100%;
  }

  .cw-apply-page{
    padding:18px 0 38px;
  }

  .cw-apply-shell{
    width:calc(100% - 14px);
  }

  .cw-apply-hero-copy{
    padding:21px 18px;
  }

  .cw-apply-hero h1{
    font-size:28px;
  }

  .cw-apply-hero-copy>p{
    font-size:12px;
    line-height:1.65;
  }

  .cw-apply-panel-head{
    align-items:flex-start;
    padding:16px;
  }

  .cw-apply-panel-head h2{
    font-size:18px;
  }

  .cw-apply-panel-head p{
    font-size:10.5px;
  }

  .cw-apply-stepper{
    grid-template-columns:1fr;
  }

  .cw-apply-step:nth-child(5){
    grid-column:auto;
  }

  .cw-apply-actions-right{
    width:100%;
    display:grid;
    grid-template-columns:auto 1fr;
  }

  .cw-apply-actions-right .cw-apply-btn{
    width:100%;
  }

  .cw-plan-grid{
    grid-template-columns:1fr;
    padding:16px;
  }

  .cw-upload-card{
    padding:12px;
  }

  .cw-apply-btn{
    min-height:42px;
  }
}

@media (max-width:760px){
  .cw-apply-submit-status{
    width:100%;
    margin-left:0;
    text-align:right;
  }

  .cw-apply-success{
    padding:26px 18px;
  }

  .cw-apply-success h2{
    font-size:21px;
  }

  .cw-apply-success-meta{
    grid-template-columns:1fr;
  }
}

@media (max-width:520px){
  .cw-apply-success h2{
    font-size:19px;
  }

  .cw-apply-success>p{
    font-size:12px;
  }

  .cw-apply-success-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .cw-apply-success-actions .cw-apply-btn{
    width:100%;
    min-width:0;
  }
}



/* v11: accessible franchise application success styling and clean button links */
.cw-apply-success{border-color:#b9e8cc;background:linear-gradient(145deg,#f4fff7 0%,#fbfffc 58%,#f7fcff 100%)}
.cw-apply-success-icon{border-color:#b8e8c8;background:#e7f9ed;color:#16834a}
.cw-apply-success-kicker{border-color:#b8e8c8;background:#eafaf0;color:#147a43}
.cw-apply-success-meta span{border-color:#d5e9dc}
.cw-apply-success-meta strong{font-size:11px}
.cw-apply-success-meta strong::after{content:":";margin-left:2px}
.cw-apply-success-meta b.is-review{color:#087443;background:#e8f8ee;border:1px solid #bce7ca;border-radius:999px;padding:5px 9px}
.cw-apply-success-actions .cw-apply-btn{min-width:180px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none!important;line-height:1.2;box-sizing:border-box}
.cw-apply-success-actions .cw-apply-btn:hover,.cw-apply-success-actions .cw-apply-btn:focus{text-decoration:none!important}
@media(max-width:640px){.cw-apply-success{padding:24px 16px}.cw-apply-success-meta{grid-template-columns:1fr}.cw-apply-success-meta span{flex-wrap:wrap}.cw-apply-success-actions{width:100%}.cw-apply-success-actions .cw-apply-btn{width:100%;min-width:0}}
