/* BYTC REAL REGISTRATION PREVIEW */

.rr-shell{
  min-height:100vh;
  padding-bottom:94px;
  background:#F4F7FB;
}

.rr-header{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 18px 17px;
  color:#fff;
  background:
    linear-gradient(
      135deg,
      #062B59,
      #0E4EA3 62%,
      #2861AD
    );
  border-bottom:3px solid #ED2226;
}

.rr-header button{
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:12px;
  color:#fff;
  background:rgba(255,255,255,.08);
  font-size:27px;
  line-height:1;
}

.rr-header div{
  flex:1;
  min-width:0;
}

.rr-header small{
  display:block;
  margin-bottom:3px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  color:#DCEBFA;
}

.rr-header h2{
  margin:0;
  font-size:17px;
  line-height:1.25;
}

.rr-header img{
  width:46px;
  height:46px;
  object-fit:contain;
  background:#fff;
  border-radius:50%;
  padding:3px;
}

.rr-progress{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  padding:14px 12px 10px;
  background:#fff;
  border-bottom:1px solid #D6D6DF;
}

.rr-step{
  position:relative;
  text-align:center;
  color:#7B8795;
  font-size:9px;
  font-weight:700;
}

.rr-step b{
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  margin:0 auto 5px;
  border-radius:50%;
  background:#E8EDF3;
  color:#657487;
}

.rr-step.current b{
  color:#fff;
  background:#0E4EA3;
  box-shadow:
    0 0 0 3px rgba(237,34,38,.15);
}

.rr-step.current{
  color:#0E4EA3;
}

.rr-step.done b{
  color:#fff;
  background:#13885D;
}

.rr-main{
  padding:15px 12px;
}

.rr-card{
  background:#fff;
  border:1px solid #D6D6DF;
  border-radius:18px;
  padding:17px;
  box-shadow:
    0 8px 24px rgba(14,78,163,.055);
}

.rr-section-title{
  margin-bottom:17px;
}

.rr-section-title > span{
  display:inline-block;
  margin-bottom:5px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  color:#ED2226;
}

.rr-section-title h3{
  margin:0 0 4px;
  font-size:19px;
  color:#1C1D1E;
}

.rr-section-title p{
  margin:0;
  color:#667789;
  font-size:11px;
  line-height:1.5;
}

.rr-grid{
  display:grid;
  gap:13px;
}

.rr-field{
  display:block;
}

.rr-field > span{
  display:block;
  margin-bottom:6px;
  font-size:11px;
  font-weight:700;
  color:#33455A;
}

.rr-field small{
  margin-left:5px;
  color:#8793A2;
  font-size:9px;
  font-weight:500;
}

.rr-required{
  color:#ED2226;
}

.rr-field input,
.rr-field select{
  box-sizing:border-box;
  width:100%;
  min-height:46px;
  border:1px solid #D6D6DF;
  border-radius:13px;
  padding:0 13px;
  color:#1C1D1E;
  background:#FDFDFE;
  font-size:13px;
  outline:none;
}

.rr-field input:focus,
.rr-field select:focus{
  border-color:#0E4EA3;
  box-shadow:
    0 0 0 4px rgba(14,78,163,.08);
}

.rr-fee-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-top:16px;
  padding:13px 14px;
  border:1px solid #CFE0F2;
  border-radius:14px;
  background:#EEF5FC;
}

.rr-fee-card small{
  display:block;
  margin-bottom:2px;
  color:#525D6C;
  font-size:9px;
}

.rr-fee-card strong{
  color:#0E4EA3;
  font-size:21px;
}

.rr-fee-card > span{
  max-width:150px;
  text-align:right;
  color:#667789;
  font-size:9px;
  line-height:1.4;
}

.rr-center{
  margin-top:11px;
  padding:12px 14px;
  border-left:4px solid #ED2226;
  border-radius:12px;
  background:#F7F9FC;
}

.rr-center small,
.rr-center span{
  display:block;
  color:#6E7B8B;
  font-size:9px;
}

.rr-center strong{
  display:block;
  margin:3px 0;
  color:#0E4EA3;
  font-size:12px;
}

.rr-note{
  margin-top:15px;
  padding:12px;
  border-radius:12px;
  background:#FFF8E5;
  color:#795A16;
  font-size:10px;
  line-height:1.5;
}

.rr-review-group{
  margin-bottom:14px;
  overflow:hidden;
  border:1px solid #DEE4EB;
  border-radius:14px;
}

.rr-review-group h4{
  margin:0;
  padding:10px 12px;
  color:#0E4EA3;
  background:#EEF5FC;
  font-size:11px;
}

.rr-review-row{
  display:grid;
  grid-template-columns:42% 1fr;
  gap:10px;
  padding:9px 12px;
  border-top:1px solid #EEF1F5;
  font-size:10px;
}

.rr-review-row span{
  color:#697889;
}

.rr-review-row strong{
  color:#1C1D1E;
  overflow-wrap:anywhere;
}

.rr-preview-warning{
  padding:13px;
  border:1px solid #F0C6C8;
  border-radius:13px;
  background:#FFF3F4;
}

.rr-preview-warning strong{
  display:block;
  margin-bottom:4px;
  color:#ED2226;
  font-size:11px;
}

.rr-preview-warning span{
  color:#6A5960;
  font-size:10px;
  line-height:1.5;
}

.rr-actions{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  display:flex;
  gap:10px;
  padding:12px max(14px,env(safe-area-inset-left))
    calc(12px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97);
  border-top:1px solid #D6D6DF;
  box-shadow:
    0 -8px 24px rgba(14,78,163,.07);
}

.rr-actions button{
  min-height:47px;
  border-radius:13px;
  font-weight:750;
  font-size:12px;
}

.rr-secondary{
  flex:.8;
  color:#33455A;
  border:1px solid #D6D6DF;
  background:#F4F7FB;
}

.rr-secondary:disabled{
  opacity:.4;
}

.rr-primary{
  flex:1.4;
  border:0;
  color:#fff;
  background:
    linear-gradient(
      135deg,
      #082E63,
      #0E4EA3
    );
  box-shadow:
    0 9px 20px rgba(14,78,163,.20);
}

.rr-loading,
.rr-error{
  min-height:75vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:25px;
  text-align:center;
  background:#F4F7FB;
}

.rr-loading img{
  width:78px;
  height:78px;
}

.rr-loading strong,
.rr-error strong{
  color:#0E4EA3;
}

.rr-error p{
  margin:0;
  color:#667789;
  font-size:12px;
}

.rr-error button{
  border:0;
  border-radius:12px;
  padding:12px 18px;
  color:#fff;
  background:#0E4EA3;
}

@media (min-width:700px){
  .rr-main{
    max-width:660px;
    margin:auto;
  }

  .rr-actions{
    left:50%;
    width:636px;
    transform:translateX(-50%);
  }
}

/* =====================================================
   STEP 11E.1 - MOBILE REGISTRATION FOOTER CONTAINMENT
   Keep actions inside app/phone frame
   ===================================================== */

.rr-shell{
  min-height:100%;
  height:auto;
  display:flex;
  flex-direction:column;
  padding-bottom:0;
}

.rr-main{
  flex:1 1 auto;
}

.rr-actions{
  position:sticky !important;
  left:auto !important;
  right:auto !important;
  bottom:0 !important;

  width:auto !important;
  max-width:none !important;

  margin-top:auto;

  transform:none !important;

  padding:
    12px 14px
    calc(12px + env(safe-area-inset-bottom));

  border-radius:0;

  background:rgba(255,255,255,.98);
  backdrop-filter:blur(12px);

  box-shadow:
    0 -7px 22px rgba(14,78,163,.08);
}

@media (min-width:700px){
  .rr-actions{
    left:auto !important;
    width:auto !important;
    transform:none !important;
  }
}

/* =====================================================
   STEP 11I - LIVE REGISTRATION
   ===================================================== */

.rr-live-warning{
  padding:13px;
  border:1px solid #BCD6EF;
  border-radius:13px;
  background:#EEF5FC;
}

.rr-live-warning strong{
  display:block;
  margin-bottom:4px;
  color:#0E4EA3;
  font-size:11px;
}

.rr-live-warning span{
  display:block;
  color:#55687B;
  font-size:10px;
  line-height:1.5;
}


/* Modal */

.rr-modal-overlay{
  position:fixed;
  inset:0;
  z-index:99999;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;

  background:
    rgba(6,27,55,.62);

  backdrop-filter:
    blur(6px);
}

.rr-modal{
  box-sizing:border-box;

  width:min(360px,100%);

  padding:23px;

  border:
    1px solid rgba(255,255,255,.75);

  border-radius:22px;

  background:#fff;

  text-align:center;

  box-shadow:
    0 30px 80px rgba(0,0,0,.28);
}

.rr-modal-icon{
  display:flex;
  align-items:center;
  justify-content:center;

  width:52px;
  height:52px;

  margin:0 auto 13px;

  border-radius:50%;

  color:#fff;

  background:#0E4EA3;

  font-size:24px;
  font-weight:800;
}

.rr-modal-error .rr-modal-icon{
  background:#ED2226;
}

.rr-modal h3{
  margin:
    0 0 8px;

  color:#1C1D1E;

  font-size:18px;
}

.rr-modal p{
  margin:
    0 0 15px;

  color:#5D6D7E;

  font-size:12px;
  line-height:1.55;
}

.rr-modal small{
  display:block;

  margin:
    10px 0 17px;

  color:#708092;

  font-size:10px;
  line-height:1.5;
}

.rr-modal-ok{
  width:100%;

  min-height:45px;

  border:0;
  border-radius:13px;

  color:#fff;

  background:
    linear-gradient(
      135deg,
      #082E63,
      #0E4EA3
    );

  font-weight:750;
}

.rr-confirm-fee{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:12px 14px;

  border-radius:12px;

  background:#EEF5FC;

  color:#52657A;

  font-size:11px;
}

.rr-confirm-fee strong{
  color:#0E4EA3;
  font-size:18px;
}

.rr-modal-actions{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:9px;
}

.rr-modal-actions button{
  min-height:45px;

  border-radius:12px;

  font-size:11px;
  font-weight:750;
}

.rr-modal-cancel{
  border:1px solid #D6D6DF;

  color:#415267;

  background:#F4F7FB;
}

.rr-modal-confirm-btn{
  border:0;

  color:#fff;

  background:
    linear-gradient(
      135deg,
      #082E63,
      #0E4EA3
    );
}


/* Success */

.rr-success-card{
  padding:22px 17px;

  border:1px solid #D6D6DF;
  border-radius:20px;

  background:#fff;

  text-align:center;

  box-shadow:
    0 10px 30px
    rgba(14,78,163,.07);
}

.rr-success-check{
  display:flex;
  align-items:center;
  justify-content:center;

  width:64px;
  height:64px;

  margin:
    2px auto 13px;

  border-radius:50%;

  color:#fff;

  background:#13885D;

  box-shadow:
    0 0 0 7px
    rgba(19,136,93,.10);

  font-size:30px;
  font-weight:800;
}

.rr-success-card > small{
  color:#13885D;

  font-size:9px;
  font-weight:850;

  letter-spacing:.10em;
}

.rr-success-card h2{
  margin:
    6px 0 5px;

  color:#0E4EA3;

  font-size:20px;
}

.rr-success-card > p{
  margin:
    0 0 18px;

  color:#68798B;

  font-size:11px;
}

.rr-success-grid{
  display:grid;
  grid-template-columns:
    1fr 1fr;

  gap:9px;

  margin-bottom:14px;
}

.rr-success-grid div{
  padding:12px 8px;

  border:
    1px solid #DDE5ED;

  border-radius:13px;

  background:#F7FAFD;
}

.rr-success-grid span{
  display:block;

  margin-bottom:4px;

  color:#738194;

  font-size:9px;
}

.rr-success-grid strong{
  color:#1C1D1E;

  font-size:13px;

  overflow-wrap:anywhere;
}

.rr-success-note{
  margin-bottom:14px;

  padding:12px;

  border-left:
    4px solid #ED2226;

  border-radius:10px;

  text-align:left;

  background:#F6F8FB;

  color:#657588;

  font-size:10px;
  line-height:1.5;
}

.rr-success-button{
  box-sizing:border-box;

  width:100%;

  min-height:46px;

  margin-top:9px;
}

/* ================================================
   FINAL STUDENT PHOTO MODULE
================================================ */

.rr-photo-card{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:14px;
  padding:14px;
  border:1px solid #D6D6DF;
  border-radius:16px;
  background:#F8FBFE;
}

.rr-photo-preview{
  flex:0 0 82px;
  width:82px;
  height:96px;
  overflow:hidden;
  border:1px solid #D6D6DF;
  border-radius:12px;
  background:#fff;
}

.rr-photo-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.rr-photo-placeholder{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  color:#A0A0A0;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}

.rr-photo-copy{
  min-width:0;
  flex:1;
}

.rr-photo-copy strong,
.rr-photo-copy span,
.rr-photo-copy small{
  display:block;
}

.rr-photo-copy strong{
  color:#1C1D1E;
  font-size:13px;
}

.rr-photo-copy span{
  margin-top:4px;
  color:#6B7788;
  font-size:9px;
  line-height:1.45;
}

.rr-photo-copy small{
  margin-top:7px;
  color:#0E4EA3;
  font-size:9px;
  font-weight:700;
}

.rr-photo-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:9px;
  min-height:34px;
  padding:0 12px;
  border-radius:10px;
  background:#0E4EA3;
  color:#fff;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.rr-photo-result{
  margin-top:11px;
  padding:10px 12px;
  border-radius:11px;
  font-size:10px;
  line-height:1.45;
}

.rr-photo-ok{
  background:#ECF8F0;
  color:#17643A;
}

.rr-photo-warning{
  background:#FFF6E6;
  color:#835A09;
}

