/* ==========================================================
   Registration Form Styles
   Scoped under .page so nothing here touches the rest of the
   site (header, nav, footer, other sections).
   ========================================================== */

.page{
  --reg-red:#c0392b;
  --reg-red-dark:#a93226;
  --reg-green:#5aa02c;
  --reg-green-border:#8bc34a;
  --reg-text:#2b2b2b;
  --reg-label:#333333;
  --reg-muted:#8a8a8a;
  --reg-note-green:#4a8f29;
  --reg-border:#d9d9d9;
  --reg-max-width:1520px;
}

.page{
  max-width:var(--reg-max-width);
  margin:0 auto;
  padding:28px 80px 60px;
  font-family:'Poppins';
  color:var(--reg-text);
  box-sizing:border-box;
}
.page *{box-sizing:border-box;}

/* ---------- Title ---------- */
.page h1.step-title{
  text-align:center;
  color:var(--reg-red);
  font-size:clamp(22px,3vw,34px);
  font-weight:700;
  margin:0 0 22px;
  font-family:'Philosopher';
}

/* ---------- Step tabs ---------- */
.page .tabs{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.page .tab-btn{
  border:none;
  cursor:pointer;
  color:#fff;
  font-weight:600;
  font-size:18px;
  padding:12px 26px;
  border-radius:22px;
  background:var(--reg-red);
  transition:transform .15s ease, background .2s ease;
  white-space:nowrap;
  font-family:'Philosopher';
}
.page .tab-btn:hover{transform:translateY(-1px);}
.page .tab-btn.active{
  background:var(--reg-green);
}
.page .tab-arrow{
  display:none;
  width:0; height:0;
  border-left:9px solid transparent;
  border-right:9px solid transparent;
  border-top:10px solid var(--reg-green);
  margin:2px auto 18px;
}
.page .tab-arrow.show{display:block;}

@media (max-width:800px){
  .page .tabs{flex-direction:column; gap:10px;}
  .page .tab-btn{width:100%; max-width:340px; text-align:center;}
}

/* ---------- Section card ---------- */
.page .section{
  border:1.5px solid var(--reg-green-border);
  border-radius:6px;
  padding:26px 32px 32px;
  margin:26px auto 0;
  max-width:1480px;
  display:none;
}


.page .section.active{display:block;}

.page .section h2{
  color:var(--reg-red);
  font-size:22px;
  font-weight:700;
  margin:0 0 8px;
  font-family:Georgia, "Times New Roman", serif;
}
.page .section > .rule{
  border:none;
  border-top:2px solid var(--reg-green-border);
  margin:0 0 24px;
  width: auto;
}

/* ---------- Form grid ---------- */
.page .grid3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px 28px;
  margin-bottom:22px;
}
.page .grid3:last-child{margin-bottom:0;}

@media (max-width:900px){
  .page .grid3{grid-template-columns:1fr;}
}

.page .field{display:flex; flex-direction:column;}
.page .field label{
  font-size:15px;
  color:var(--reg-label);
  margin-bottom:8px;
}
.page .req{color:var(--reg-red); margin-left:2px;}

.page input[type=text],
.page input[type=email],
.page input[type=number],
.page select,
.page textarea{
  border:1px solid var(--reg-border);
  border-radius:3px;
  padding:11px 12px;
  font-size:14px;
  color:#555;
  font-family:inherit;
  width:100%;
  background:#fff;
}
.page select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:18px;
  padding-right:34px;
}
.page textarea{resize:vertical; min-height:96px;}
.page input::placeholder, .page textarea::placeholder{color:#a3a3a3;}

.page .hint{
  color:var(--reg-note-green);
  font-size:13px;
  font-style:italic;
  margin-top:8px;
  line-height:1.4;
}

/* combo rows: DOB, mobile numbers, income range */
.page .combo{display:flex; gap:8px;}
.page .combo select, .page .combo input{flex:1; min-width:0;}
.page .combo-sep{
  display:flex;
  align-items:center;
  color:#555;
  font-size:14px;
  padding:0 2px;
}
.page .combo-small{width:96px; flex:0 0 96px;}

.page .sub-row{display:flex; gap:8px;}
.page .sub-row select:first-child{flex:2;}
.page .sub-row select:last-child{flex:1;}

/* ---------- checkbox multi-select boxes (step 3) ---------- */
.page .checklist{
  border:1px solid var(--reg-border);
  border-radius:3px;
  max-height:170px;
  overflow-y:auto;
  padding:10px 12px;
  background:#fff;
}
.page .checklist label{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:14px;
  color:#444;
  margin-bottom:9px;
  cursor:pointer;
  line-height:1.35;
}
.page .checklist label:last-child{margin-bottom:0;}
.page .checklist input[type=checkbox]{
  margin-top:3px;
  accent-color:var(--reg-green);
  width:15px;height:15px;
  flex:0 0 auto;
}

.page .range-row{display:flex; align-items:center; gap:10px;}
.page .range-row select{flex:1;}
.page .range-row span{color:#555; font-size:14px;}

/* ---------- footer note + submit ---------- */
.page .legal-note{
  text-align:center;
  color:var(--reg-note-green);
  font-size:14px;
  margin:26px 0 20px;
  font-style:italic;
}

.page .submit-btn{
  display:block;
  width:100%;
  max-width:1480px;
  margin:0 auto;
  background:var(--reg-red);
  color:#fff;
  border:none;
  border-radius:4px;
  padding:18px;
  font-size:17px;
  font-weight:700;
  letter-spacing:.5px;
  cursor:pointer;
  text-align:center;
  transition:background .2s ease;
}
.page .submit-btn:hover{background:var(--reg-red-dark);}

.page .terms-note{
  text-align:center;
  color:#555;
  font-size:13px;
  margin-top:14px;
}
.page .terms-note a{color:var(--reg-red); text-decoration:underline;}

@media (max-width:600px){
  .page{padding:18px 14px 40px;}
  .page .section{padding:18px 18px 24px;}
  .page .combo-small{width:80px; flex:0 0 80px;}
}



  /* ===== Boxed sections for Registration Step 1 ===== */
  #step1 .info-box{
    background:#ffffff;
    border:1px solid #7fb93f;
    border-radius:10px;
    padding:26px 32px 32px;
    margin:0 0 26px;
    box-shadow:0 2px 6px rgba(0,0,0,0.04);
  }
  #step1 .info-box h2{
    color:#c0392b;
    font-family:'Poppins', sans-serif;
    font-weight:700;
    font-size:1.5rem;
    margin:0 0 10px 0;
  }
  #step1 .info-box .rule{
    border:none;
    border-top:2px solid #7fb93f;
    margin:0 0 26px 0;
  }
  #step1 .info-box:last-of-type{
    margin-bottom:0;
  }
  @media (max-width: 600px){
    #step1 .info-box{
      padding:18px 18px 24px;
    }
    #step1 .info-box h2{
      font-size:1.25rem;
    }
  }

  /* Remove the outer section border/shadow for Step 1 only (Step 2 & 3 keep their original outer border).
     Padding is set to 0 here because each .info-box now supplies its own padding
     (matching .page .section's 26px 32px 32px), keeping overall spacing identical
     to Step 2 / Step 3. Margin stays the same as .page .section so vertical
     spacing above the content is equal across all steps. */
  #step1.section{
    border:none !important;
    box-shadow:none !important;
    background:transparent !important;
    padding:0 !important;
    margin:26px auto 0 !important;
  }