*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:#fff;
  color:#111;
}

button,
input,
select{
  font-family:'Inter',sans-serif;
}

.register-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
}

/* LEFT */

.register-content{
  padding:40px 60px;
  display:flex;
  flex-direction:column;
}

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

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  font-size:1.1rem;
  color:#111;
  text-decoration:none;
}

.logo-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:#ffe600;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.login-link{
  color:#666;
  text-decoration:none;
}

.progress-wrapper{
  margin-bottom:50px;
}

.progress-bar{
  width:100%;
  height:10px;
  background:#f1f1f1;
  border-radius:999px;
  overflow:hidden;
}

.progress-fill{
  width:25%;
  height:100%;
  background:#ffe600;
  border-radius:999px;
  transition:0.4s ease;
}

.step-text{
  margin-top:14px;
  color:#666;
}

/* FORM */

form{
  position:relative;
  overflow:hidden;
}

.form-step{
  display:none;
  animation:slideIn 0.45s ease;
}

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

/* =========================================
   INPUTS
========================================= */

.input-group{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:24px;
}

.input-group label{
  font-size:0.95rem;
  font-weight:600;
  color:#111;
}

.input-group input,
.input-group select{
  width:100%;
  height:58px;
  border-radius:18px;
  border:1px solid #e5e7eb;
  padding:0 18px;
  font-size:1rem;
  background:#fff;
  transition:0.25s ease;
}

.input-group input:focus,
.input-group select:focus{
  outline:none;
  border-color:#ffe600;
  box-shadow:0 0 0 4px rgba(255,230,0,0.18);
}

.helper-text{
  font-size:0.85rem;
  color:#777;
  line-height:1.5;
}

/* =========================================
   INPUT GRID
========================================= */

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

/* =========================================
   VEHICLES
========================================= */

.vehicle-types{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
  margin-bottom:36px;
}

.vehicle-card{
  position:relative;
  cursor:pointer;
}

.vehicle-card input{
  position:absolute;
  opacity:0;
}

.vehicle-content{
  border:1px solid #ececec;
  border-radius:24px;
  padding:24px;
  min-height:120px;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:14px;

  transition:0.3s ease;
  background:#fff;
}

.vehicle-content i{
  font-size:2rem;
}

.vehicle-content span{
  font-weight:600;
}

.vehicle-card input:checked + .vehicle-content{
  border-color:#ffe600;
  background:#fffce1;
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(255,230,0,0.15);
}

/* =========================================
   BUTTONS
========================================= */

.buttons-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:24px;
}

.btn{
  height:56px;
  border:none;
  border-radius:18px;
  padding:0 26px;
  font-size:0.96rem;
  font-weight:600;
  cursor:pointer;
  transition:0.25s ease;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.btn-primary{
  background:#111;
  color:#fff;
}

.btn-primary:hover{
  transform:translateY(-2px);
  background:#000;
}

.btn-secondary{
  background:#f5f5f5;
  color:#111;
}

.btn-secondary:hover{
  background:#ececec;
}

/* =========================================
   SUMMARY
========================================= */

.summary-card{
  border:1px solid #ececec;
  border-radius:28px;
  padding:30px;
  margin-bottom:28px;
  background:#fafafa;
}

.summary-item{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid #eee;
}

.summary-item:last-child{
  border-bottom:none;
}

.summary-item span{
  color:#666;
}

.summary-item strong{
  color:#111;
}

/* =========================================
   TERMS
========================================= */

.terms{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:30px;
}

.terms input{
  margin-top:4px;
  width:18px;
  height:18px;
}

.terms p{
  color:#666;
  line-height:1.7;
  font-size:0.95rem;
}

/* =========================================
   PREVIEW PANEL
========================================= */

.preview-panel{
  background:#111;
  padding:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:sticky;
  top:0;
  height:100vh;
}

.preview-card{
  width:100%;
  max-width:520px;
  background:#fff;
  border-radius:34px;
  overflow:hidden;
  box-shadow:0 30px 60px rgba(0,0,0,0.25);
}

.preview-banner{
  height:180px;
  background:
    linear-gradient(
      135deg,
      #ffe600 0%,
      #fff17a 100%
    );
}

.preview-body{
  padding:30px;
}

.preview-logo{
  width:82px;
  height:82px;
  border-radius:24px;
  background:#111;
  color:#fff;

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

  font-size:2rem;
  font-weight:800;

  margin-top:-70px;
  border:6px solid #fff;
}

.preview-heading{
  margin-top:20px;
}

.preview-heading h2{
  font-size:2rem;
  margin-bottom:10px;
}

.preview-heading span{
  color:#666;
}

.preview-tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:10px 16px;
  border-radius:999px;

  background:#f5f5f5;
  font-size:0.9rem;
}

.preview-section{
  margin-top:34px;
}

.preview-section h3{
  margin-bottom:16px;
  font-size:1rem;
}

.preview-section p{
  color:#666;
  line-height:1.8;
}

.preview-vehicles{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.preview-vehicles span{
  background:#fff7b2;
  padding:10px 14px;
  border-radius:999px;
  font-size:0.9rem;
  font-weight:600;
}

/* =========================================
   LOADING DIALOG
========================================= */

#loadingDialog{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);

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

  z-index:9999;
}

.loading-card{
  width:90%;
  max-width:340px;
  background:#fff;
  border-radius:28px;
  padding:34px;
  text-align:center;
}

.loader{
  width:48px;
  height:48px;
  border:4px solid #eee;
  border-top-color:#111;
  border-radius:50%;
  margin:auto auto 20px;
  animation:spin 1s linear infinite;
}

.form-tag{
  display:inline-flex;
  padding:10px 18px;
  border-radius:999px;
  background:#fff7b2;
  font-size:0.9rem;
  font-weight:600;
  margin-bottom:24px;
}

.form-step h1{
  font-size:3.2rem;
  line-height:1;
  margin-bottom:18px;
  letter-spacing:-2px;
  max-width: 500px;
}

.form-description{
  color:#666;
  line-height:1.8;
  margin-bottom:40px;
  max-width:600px
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px){

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

  .preview-panel{
    display:none;
  }

  .register-content{
    padding:30px;
  }
}

@media(max-width:700px){

  .form-step h1{
    font-size:2rem;
  }

  .input-grid,
  .vehicle-types{
    grid-template-columns:1fr;
  }

  .buttons-row{
    flex-direction:column;
  }

  .btn{
    width:100%;
  }

  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
  }

  .register-content{
    padding:24px;
  }
}

@keyframes slideIn{

  from{
    opacity:0;
    transform:translateX(30px);
  }

  to{
    opacity:1;
    transform:translateX(0);
  }
}

