@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --orange:#f2531e;
  --dark:#111827;
  --muted:#667085;
  --line:#e5e7eb;
  --soft:#f6f7f9;
  --blue:#0b3b75;
  --white:#ffffff;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:'Poppins',Arial,sans-serif;
  background:#f3f4f6;
  color:var(--dark);
}

.page-shell{
  max-width:1080px;
  margin:0 auto;
  padding:22px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.brand{
  font-size:20px;
  font-weight:700;
  color:#111827;
}

.tagline{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.help-btn{
  border:1px solid var(--line);
  background:#fff;
  color:#111827;
  padding:9px 14px;
  border-radius:6px;
  font-weight:600;
  cursor:pointer;
}

.help-btn:hover{
  border-color:var(--orange);
  color:var(--orange);
}

.hero-card{
  background:linear-gradient(135deg,#111827,#1f2937);
  color:#fff;
  border-radius:10px;
  padding:24px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  box-shadow:0 16px 34px rgba(17,24,39,.16);
}

.eyebrow{
  display:inline-block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#ffd4c6;
  font-weight:700;
  margin-bottom:6px;
}

.hero-card h1{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.15;
}

.hero-card p{
  margin:0;
  max-width:740px;
  font-size:14px;
  line-height:1.55;
  color:#e5e7eb;
}

.hero-badge{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  border-radius:6px;
  padding:8px 10px;
  font-size:12px;
  white-space:nowrap;
}

.progress-wrap{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:14px;
  margin:18px 0;
}

.progress-bar{
  height:6px;
  background:#edf0f3;
  border-radius:999px;
  overflow:hidden;
}

.progress-fill{
  height:100%;
  width:14%;
  background:var(--orange);
  border-radius:999px;
  transition:.25s ease;
}

.progress-steps{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:8px;
  margin-top:12px;
}

.progress-step{
  font-size:12px;
  color:#98a2b3;
  font-weight:600;
  cursor:pointer;
}

.progress-step.active{
  color:var(--orange);
}

.progress-step.completed{
  color:#15803d;
}

.progress-step.completed::after{
  content:" ✓";
}

.form-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:24px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.form-step{
  display:none;
}

.form-step.active{
  display:block;
}

.section-head{
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
  margin-bottom:18px;
}

.section-head h2{
  margin:0 0 5px;
  font-size:20px;
}

.section-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

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

.field{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.field span,
.signature-label{
  font-size:12px;
  font-weight:700;
  color:#344054;
}

input,
select,
textarea{
  width:100%;
  min-height:38px;
  border:1px solid #cfd4dc;
  border-radius:6px;
  padding:8px 10px;
  font-family:inherit;
  font-size:13px;
  color:#111827;
  background:#fff;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(242,83,30,.12);
}

.business-only{
  display:none;
}

.actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  margin-top:20px;
}

.actions.split{
  justify-content:space-between;
}

button{
  font-family:inherit;
  border:0;
  border-radius:6px;
  padding:10px 15px;
  font-weight:700;
  cursor:pointer;
}

.primary{
  background:var(--orange);
  color:#fff;
}

.primary:hover{
  background:#d94718;
}

.secondary{
  background:#f3f4f6;
  color:#111827;
  border:1px solid var(--line);
}

.secondary:hover{
  background:#e9ecef;
}

.danger{
  background:#fee2e2;
  color:#b42318;
  border:1px solid #fecaca;
}

.danger:hover{
  background:#fecaca;
}

.info-box{
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-left:4px solid var(--orange);
  color:#7c2d12;
  padding:10px 12px;
  border-radius:6px;
  font-size:12px;
  line-height:1.45;
  margin-bottom:14px;
}

.meter-group{
  border:1px solid var(--line);
  border-left:4px solid var(--orange);
  border-radius:8px;
  padding:14px;
  margin-bottom:12px;
  background:#fff;
}

.meter-title{
  font-size:13px;
  font-weight:800;
  color:#111827;
  margin-bottom:10px;
}

.meter-remove-wrap{
  justify-content:flex-end;
}

.meter-limit-text{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}

.declarations{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}

.declarations label{
  display:flex;
  gap:9px;
  align-items:flex-start;
  font-size:13px;
  color:#344054;
  line-height:1.45;
}

.declarations input{
  width:auto;
  min-height:auto;
  margin-top:3px;
}

.signature-panel{
  margin-top:16px;
}

#signature-pad{
  display:block;
  width:100%;
  height:220px;
  border:1px solid #cfd4dc;
  border-radius:8px;
  background:#fff;
  margin-top:8px;
  touch-action:none;
}

.review-box{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fafafa;
  padding:14px;
}

.review-section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  margin-bottom:12px;
}

.review-section h3{
  margin:0 0 8px;
  font-size:14px;
  color:#111827;
}

.review-section table{
  width:100%;
  border-collapse:collapse;
}

.review-section td{
  padding:7px 8px;
  border-bottom:1px solid #eef0f2;
  font-size:12px;
  vertical-align:top;
}

.review-section td:first-child{
  width:36%;
  color:#667085;
  font-weight:700;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,.65);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}

.modal-backdrop.active{
  display:flex;
}

.modal-card{
  width:min(720px,100%);
  max-height:86vh;
  overflow:auto;
  background:#fff;
  border-radius:10px;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
}

.modal-head h2{
  margin:0;
  font-size:18px;
}

.modal-head button{
  width:34px;
  height:34px;
  padding:0;
  border-radius:6px;
  background:#f3f4f6;
  color:#111827;
  font-size:24px;
  line-height:1;
}

.modal-body{
  padding:18px;
}

.modal-body h3{
  margin:14px 0 4px;
  font-size:14px;
  color:#111827;
}

.modal-body h3:first-child{
  margin-top:0;
}

.modal-body p{
  margin:0;
  color:#667085;
  font-size:13px;
  line-height:1.55;
}

@media (max-width:768px){
  .page-shell{
    padding:14px;
  }

  .topbar,
  .hero-card{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-card h1{
    font-size:24px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .full{
    grid-column:auto;
  }

  .actions,
  .actions.split{
    flex-direction:column;
    align-items:stretch;
  }

  button{
    width:100%;
  }

  .form-card{
    padding:16px;
  }

  .progress-steps{
    justify-content:flex-start;
  }

  .progress-step{
    padding:5px 8px;
    border:1px solid var(--line);
    border-radius:999px;
  }
}

.thank-you-shell{
  max-width:900px;
}

.thank-you-card{
  margin-top:30px;
}

.thank-ref{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-left:4px solid var(--orange);
  border-radius:8px;
  padding:14px 16px;
  margin-top:18px;
  max-width:520px;
}

.thank-ref span{
  display:block;
  font-size:12px;
  color:#d1d5db;
  margin-bottom:4px;
}

.thank-ref strong{
  display:block;
  font-size:22px;
  color:#fff;
}

.thank-note{
  margin-top:16px !important;
}

.thank-actions{
  justify-content:flex-start;
  margin-top:20px;
}

.link-button{
  display:inline-block;
  text-decoration:none;
  border-radius:6px;
  padding:10px 15px;
  font-weight:700;
  font-size:13px;
}

.link-button.secondary{
  color:#111827;
}

@media (max-width:768px){
  .thank-actions{
    align-items:stretch;
  }

  .link-button{
    text-align:center;
  }
}


/* REGISTER DEV CORE HELP WIDGET */
.module-help-button.register-help-button{
  position:fixed;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  z-index:9998;
  background:#f2531e;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:13px 18px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 18px 34px rgba(242,83,30,.30);
  font-weight:800;
  letter-spacing:.03em;
}

.module-help-button.register-help-button:hover{
  background:#d94718;
  transform:translateY(-50%) scale(1.03);
}

.module-help-button .help-icon{
  width:20px;
  height:20px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
}

.module-help-overlay{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,.68);
  z-index:10000;
  display:none;
  align-items:stretch;
  justify-content:center;
  padding:0;
}

.module-help-overlay.active{
  display:flex;
}

.module-help-panel{
  width:min(920px,100%);
  max-height:100vh;
  overflow:auto;
  background:#fff;
  border-radius:0;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
}

.module-help-header{
  background:#111827;
  color:#fff;
  padding:28px 34px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  position:sticky;
  top:0;
  z-index:2;
}

.module-help-header h2{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.2;
}

.module-help-header p{
  margin:0;
  color:#d1d5db;
  font-size:15px;
  line-height:1.5;
}

.module-help-close{
  width:54px;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:26px;
  line-height:1;
  flex:0 0 auto;
}

.module-help-close:hover{
  background:rgba(255,255,255,.12);
}

.module-help-body{
  padding:26px 34px 36px;
  background:#f7f8fa;
}

.module-help-section{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  margin-bottom:18px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}

.module-help-section summary{
  cursor:pointer;
  padding:22px 24px;
  font-size:20px;
  font-weight:800;
  color:#111827;
  list-style:none;
}

.module-help-section summary::-webkit-details-marker{
  display:none;
}

.module-help-section summary::before{
  content:"▶";
  display:inline-block;
  margin-right:10px;
  font-size:14px;
  transform:translateY(-1px);
}

.module-help-section[open] summary::before{
  content:"▼";
}

.module-help-section div{
  padding:0 24px 22px;
  color:#4b5563;
  font-size:15px;
  line-height:1.65;
}

.module-help-section p{
  margin:0 0 10px;
}

.module-help-section ul{
  margin:8px 0 0;
  padding-left:22px;
}

.module-help-section li{
  margin-bottom:8px;
}

@media (max-width:768px){
  .module-help-button.register-help-button{
    right:14px;
    top:52%;
    padding:12px 14px;
  }

  .module-help-header{
    padding:24px 20px;
  }

  .module-help-header h2{
    font-size:22px;
  }

  .module-help-body{
    padding:20px 16px 28px;
  }

  .module-help-section summary{
    font-size:17px;
    padding:18px;
  }

  .module-help-section div{
    padding:0 18px 18px;
    font-size:14px;
  }
}

/* FIX: keep register help button small on mobile and desktop */
.module-help-button.register-help-button,
.module-help-button.register-help-button button {
  width: auto !important;
}

.register-help-button {
  position: fixed !important;
  right: 18px !important;
  top: 50% !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: auto !important;
  min-width: 96px !important;
  max-width: 130px !important;
  height: 52px !important;
  padding: 12px 16px !important;
  border-radius: 999px !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.register-help-button:hover {
  transform: translateY(-50%) scale(1.03) !important;
}

@media (max-width:768px) {
  .register-help-button {
    right: 12px !important;
    top: 50% !important;
    width: auto !important;
    min-width: 86px !important;
    max-width: 118px !important;
    height: 48px !important;
    padding: 10px 13px !important;
  }
}



/* REGISTER DEV FOOTER AND HERO SUPPORT */
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.hero-support-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 22px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.02em;
}

.hero-support-btn:hover{
  background:#f2531e;
  border-color:#f2531e;
}

.hero-support-secondary{
  background:transparent;
}

.register-footer{
  margin:34px 0 10px;
  padding:34px 24px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  text-align:center;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.register-footer strong{
  display:block;
  font-size:22px;
  color:#111827;
  margin-bottom:12px;
}

.register-footer p{
  margin:0 0 18px;
  color:#667085;
  font-size:18px;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px 24px;
}

.footer-links a{
  color:#0b3b75;
  text-decoration:none;
  font-size:16px;
  font-weight:500;
}

.footer-links a:hover{
  color:#f2531e;
  text-decoration:underline;
}

@media (max-width:768px){
  .hero-actions{
    flex-direction:column;
  }

  .hero-support-btn{
    width:100%;
  }

  .register-footer{
    padding:28px 18px;
    margin-top:28px;
  }

  .register-footer p{
    font-size:15px;
    line-height:1.5;
  }

  .footer-links{
    flex-direction:column;
    gap:10px;
  }

  .footer-links a{
    font-size:15px;
  }
}


/* FINAL FOOTER CARD FIX */
.register-footer{
  margin:36px 0 18px !important;
  padding:36px 24px !important;
  background:#ffffff !important;
  border:1px solid #e5e7eb !important;
  border-radius:18px !important;
  text-align:center !important;
  box-shadow:0 14px 32px rgba(15,23,42,.06) !important;
}

.register-footer strong{
  display:block !important;
  font-size:22px !important;
  font-weight:800 !important;
  color:#111827 !important;
  margin-bottom:12px !important;
}

.register-footer p{
  margin:0 0 22px !important;
  color:#667085 !important;
  font-size:20px !important;
  line-height:1.45 !important;
}

.footer-contact{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:8px !important;
  color:#667085 !important;
  font-size:18px !important;
}

.footer-contact a{
  color:#0b5cab !important;
  text-decoration:none !important;
  font-weight:500 !important;
}

.footer-contact a:hover{
  color:#f2531e !important;
  text-decoration:underline !important;
}

/* Keep hero call button as single full-width support action */
.hero-actions{
  display:block !important;
}

.hero-support-btn{
  width:100% !important;
  min-height:54px !important;
  margin-top:4px !important;
}

@media (max-width:768px){
  .register-footer{
    padding:30px 18px !important;
    margin-top:30px !important;
  }

  .register-footer p{
    font-size:17px !important;
  }

  .footer-contact{
    font-size:16px !important;
  }
}


/* CORPORATE FOOTER WORDING REFINEMENT */
.footer-message{
  max-width:680px !important;
  margin:0 auto 22px !important;
  color:#667085 !important;
  font-size:15px !important;
  line-height:1.6 !important;
}

.register-footer p{
  font-weight:500 !important;
  letter-spacing:.01em !important;
}


/* CONSENT REQUIRED NOTICE */
.consent-notice{
  display:none;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-left:4px solid #f2531e;
  color:#7c2d12;
  padding:12px 14px;
  border-radius:8px;
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}

.consent-notice.show{
  display:block;
}


/* DOCUMENT HELPER TEXT */
.field-help{
  display:block;
  margin:2px 0 7px;
  color:#667085;
  font-size:12px;
  line-height:1.45;
  font-style:italic;
  font-weight:400;
}

/* FINAL FIX: Call Registration Support button EDM orange */
.hero-card .hero-support-btn,
.hero-card a.hero-support-btn {
  background: #f2531e !important;
  border-color: #f2531e !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(242, 83, 30, 0.28) !important;
}

.hero-card .hero-support-btn:hover,
.hero-card a.hero-support-btn:hover {
  background: #d94718 !important;
  border-color: #d94718 !important;
  color: #ffffff !important;
}



/* PORTAL MATCH REFINEMENT */
.hero-card{
  background:
    radial-gradient(circle at 82% 20%, rgba(242,83,30,.42), transparent 32%),
    linear-gradient(135deg,#0f172a 0%,#111827 48%,#991b1b 120%) !important;
  padding:42px 44px !important;
}

.hero-card h1{
  font-size:42px !important;
  letter-spacing:-.03em !important;
}

.hero-card p{
  max-width:760px !important;
  font-size:16px !important;
}

.hero-actions-inline{
  display:flex !important;
  gap:12px !important;
  align-items:center !important;
  flex-wrap:wrap !important;
}

.hero-actions-inline .hero-support-btn{
  width:auto !important;
  min-width:145px !important;
  min-height:48px !important;
  padding:12px 18px !important;
  border-radius:8px !important;
}

.hero-help-trigger{
  background:#f2531e !important;
  border-color:#f2531e !important;
  color:#ffffff !important;
}

.hero-call-btn{
  background:rgba(255,255,255,.04) !important;
  border-color:rgba(255,255,255,.22) !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

.application-intro{
  padding-bottom:22px;
  border-bottom:1px solid #e5e7eb;
  margin-bottom:28px;
}

.app-badge{
  display:inline-flex;
  background:#fff4ef;
  color:#b93815;
  border:1px solid #ffd7c2;
  border-radius:8px;
  padding:8px 13px;
  font-size:12px;
  font-weight:800;
  margin-bottom:12px;
}

.application-intro h2{
  margin:0 0 8px;
  font-size:30px;
  color:#111827;
  letter-spacing:-.02em;
}

.application-intro p{
  margin:0 0 20px;
  color:#667085;
  font-size:14px;
}

.document-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.doc-summary-card{
  border:1px solid #e5e7eb;
  border-left:4px solid #f2531e;
  border-radius:10px;
  padding:14px 16px;
  background:#f8fafc;
}

.doc-summary-card strong{
  display:block;
  font-size:14px;
  color:#111827;
  margin-bottom:4px;
}

.doc-summary-card span{
  display:block;
  font-size:12px;
  color:#667085;
  line-height:1.4;
}

.step-label{
  display:inline-flex;
  font-size:12px;
  font-weight:800;
  color:#111827;
  margin-bottom:8px;
}

@media (max-width:768px){
  .hero-card{
    padding:28px 24px !important;
  }

  .hero-card h1{
    font-size:31px !important;
  }

  .hero-actions-inline{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .hero-actions-inline .hero-support-btn{
    width:100% !important;
  }

  .document-summary{
    grid-template-columns:1fr;
  }

  .application-intro h2{
    font-size:24px;
  }
}
