/* =========================================================
   REGISTRATION.CSS — only for customer-registration.html
   Safe scope: all rules prefixed with .reg-page
   ========================================================= */

.reg-page .wrap.content-narrow{
  max-width: 980px;
}

/* Title spacing */
.reg-page h1{
  margin: 6px 0 18px;
}
.reg-page h2{
  margin: 26px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Premium panel */
.reg-page .reg-card{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  padding: 18px;
}

.reg-page .reg-declaration{
  margin: 2px 0 14px;
  padding: 14px 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
}

.reg-page .reg-declaration p{
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: 13px;
  color: rgba(255,255,255,.88);
}

.reg-page .reg-declaration p:last-child{
  margin-bottom: 0;
}

/* Form grid */
.reg-page .reg-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.reg-page .reg-check-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.reg-page .reg-check-grid[data-required-group="company_type"]{
  gap: 10px;
}

@media (min-width: 860px){
  .reg-page .reg-grid{
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }
  .reg-page .reg-span-2{ grid-column: span 2; }

  .reg-page .reg-check-grid{
    grid-template-columns: 1fr 1fr;
  }

  .reg-page .reg-check-grid[data-required-group="company_type"]{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Inputs look */
.reg-page .contact-form input:not([type="checkbox"]):not([type="radio"]),
.reg-page .contact-form textarea,
.reg-page .contact-form select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  padding: 12px 12px;
  outline: none;
}

.reg-page .contact-form textarea{
  resize: vertical;
  min-height: 110px;
}

.reg-page .contact-form input:not([type="checkbox"]):not([type="radio"]):focus,
.reg-page .contact-form textarea:focus,
.reg-page .contact-form select:focus{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

/* Checkbox/radio alignment */
.reg-page .form-check label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}
.reg-page .field-subcheck{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
  margin-top: 10px;
}
.reg-page .form-check input[type="checkbox"],
.reg-page .form-check input[type="radio"]{
  width: 18px;
  height: 18px;
  margin: 0;
}
.reg-page .field-subcheck input[type="checkbox"],
.reg-page .field-subcheck input[type="radio"]{
  width: 20px;
  height: 20px;
  margin: 0;
}

.reg-page .reg-check-grid label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}

.reg-page .reg-check-grid input[type="checkbox"],
.reg-page .reg-check-grid input[type="radio"]{
  width: 20px;
  height: 20px;
  margin: 0;
}

.reg-page .form-check input[type="checkbox"],
.reg-page .form-check input[type="radio"],
.reg-page .field-subcheck input[type="checkbox"],
.reg-page .field-subcheck input[type="radio"],
.reg-page .reg-check-grid input[type="checkbox"],
.reg-page .reg-check-grid input[type="radio"]{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(8, 17, 34, .9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.28);
  position: relative;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.reg-page .form-check input[type="radio"],
.reg-page .field-subcheck input[type="radio"],
.reg-page .reg-check-grid input[type="radio"]{
  border-radius: 50%;
}

.reg-page .form-check input[type="checkbox"],
.reg-page .field-subcheck input[type="checkbox"],
.reg-page .reg-check-grid input[type="checkbox"]{
  border-radius: 6px;
}

.reg-page .form-check input[type="radio"]::after,
.reg-page .field-subcheck input[type="radio"]::after,
.reg-page .reg-check-grid input[type="radio"]::after{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #031026;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s ease, transform .15s ease;
}

.reg-page .form-check input[type="checkbox"]::after,
.reg-page .field-subcheck input[type="checkbox"]::after,
.reg-page .reg-check-grid input[type="checkbox"]::after{
  content: "";
  width: 5px;
  height: 9px;
  border: solid #031026;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.9);
  opacity: 0;
  transition: opacity .15s ease;
}

.reg-page .form-check input[type="checkbox"]:checked,
.reg-page .form-check input[type="radio"]:checked,
.reg-page .field-subcheck input[type="checkbox"]:checked,
.reg-page .field-subcheck input[type="radio"]:checked,
.reg-page .reg-check-grid input[type="checkbox"]:checked,
.reg-page .reg-check-grid input[type="radio"]:checked{
  border-color: rgba(228, 237, 255, .96);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(221,233,255,.9));
}

.reg-page .form-check input[type="radio"]:checked::after,
.reg-page .field-subcheck input[type="radio"]:checked::after,
.reg-page .reg-check-grid input[type="radio"]:checked::after{
  opacity: 1;
  transform: scale(1);
}

.reg-page .form-check input[type="checkbox"]:checked::after,
.reg-page .field-subcheck input[type="checkbox"]:checked::after,
.reg-page .reg-check-grid input[type="checkbox"]:checked::after{
  opacity: 1;
}

.reg-page .form-check input[type="checkbox"]:focus-visible,
.reg-page .form-check input[type="radio"]:focus-visible,
.reg-page .field-subcheck input[type="checkbox"]:focus-visible,
.reg-page .field-subcheck input[type="radio"]:focus-visible,
.reg-page .reg-check-grid input[type="checkbox"]:focus-visible,
.reg-page .reg-check-grid input[type="radio"]:focus-visible{
  outline: 2px solid rgba(214, 229, 255, .65);
  outline-offset: 2px;
}

.reg-page .reg-check-grid[data-required-group="company_type"] label{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
}

.reg-page .form-check{
  align-self: end;
}

/* Signature box */
.reg-page .sig-box{
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}

/* NEW: canvas responsive (so we can remove inline style in HTML safely) */
.reg-page #sig-canvas{
  width: 100%;
  height: 220px;
  display: block;
}

/* NEW: make Clear button row look premium without inline styles */
.reg-page .form-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-page .form-actions--sig{
  margin-top: 10px;
}

.reg-page .form-actions--submit{
  margin-top: 14px;
}

.reg-page .reg-grid--internal input[disabled]{
  opacity: .75;
  cursor: not-allowed;
}

.reg-page .reg-check-grid--internal{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.2);
}

.reg-page .sig-hint{
  font-size: 12.5px;
  opacity: .75;
  margin-top: 8px;
}

.reg-page .form-note{
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Status */
.reg-page .form-status{
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}
.reg-page .form-status.is-error{ color: #ff5a5f; }
.reg-page .form-status.is-success{ color: rgba(255,255,255,.92); }

/* Modal (local to reg page) */
.reg-page .modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  z-index: 3000;
}
.reg-page .modal[hidden]{ display:none; }
.reg-page .modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.reg-page .modal__panel{
  position: relative;
  width: min(520px, calc(100% - 28px));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  padding: 22px 20px 18px;
}
.reg-page .modal__title{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.reg-page .modal__text{
  margin: 0;
  font-size: 13.5px;
  opacity: .86;
  line-height: 1.6;
}
.reg-page .modal__actions{
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== Hero cleanup for registration page (remove stripe/animated overlays) =====
   Keeps base premium background, removes moving line/bokeh layers.
   ========================================================= */
.reg-page .hero__bg--flow,
.reg-page .hero__bg--bokeh,
.reg-page .hero__grain,
.reg-page .hero__wave{
  display: none;
}

.reg-page .hero.hero--page{
  border-bottom-color: rgba(255,255,255,.04);
}

/* ===== Global sheen disable for registration page =====
   Removes diagonal stripe overlay coming from html::before in core.css.
   ========================================================= */
html.reg-page-html{
  background:
    radial-gradient(1300px 640px at 50% 14%, rgba(146,204,255,.14), transparent 66%),
    radial-gradient(980px 560px at 82% 20%, rgba(110,170,235,.10), transparent 68%),
    radial-gradient(980px 560px at 18% 24%, rgba(110,170,235,.08), transparent 68%),
    linear-gradient(180deg, #040c18 0%, #051429 20%, #072342 46%, #061a33 72%, #050d1b 100%) !important;
}

html.reg-page-html::before{
  display: none !important;
}

html.reg-page-html::after{
  opacity: .52;
}
