/* ===== Background ===== */
body{
  user-select: none;
  -webkit-user-select: none;
  margin:0;
  font-family: 'Segoe UI', sans-serif;
  height: 100%;
background:
  repeating-radial-gradient(
    circle,
    transparent,
    transparent 3.5em,
    tomato 3.5em,
    tomato 4.5em
  ),
  repeating-radial-gradient(
    circle,
    transparent,
    transparent 3.5em,
    dodgerblue 3.5em,
    dodgerblue 4.5em
  ),
  repeating-radial-gradient(
    circle,
    transparent,
    transparent 2.5em,
    gold 2.5em,
    gold 2.75em
  ), floralwhite;

background-blend-mode: multiply;
background-size: 10em 10em;
background-position:
  0 0,
  5em 5em,
  10em 5em;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
}
img {
    pointer-events: none;
}

/* ===== Main Card ===== */
.container{
  background:#f8f9fc;
  width:95%;
  max-width:1000px;
  padding:35px;
  border-radius:10px;
  box-shadow:0 15px 35px rgba(0,0,0,0.2);
}

/* ===== Titles ===== */
h1{
  margin-bottom:5px;
  text-align:center;
  font-size:24px;
  font-weight:600;
  color:#222;
}

h2{
  margin-top:25px;
  margin-bottom:15px;
  font-size:20px;
  color:#444;
}
h3{
  font-size:18px;
  font-weight:600;
  color:#1f2d3d;

  padding:12px 16px;
  margin-top:30px;
  margin-bottom:14px;

  background:linear-gradient(90deg,#f8f9fc,#ffffff);

  border-left:5px solid #4e73df;
  border-radius:6px;

  box-shadow:0 3px 10px rgba(0,0,0,0.08);

  letter-spacing:0.4px;
}
/* Identity section – 2 columns only */
.form-grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:20px;
}

/* ===== Grid Layout (3 Columns) ===== */
.form-grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
}

/* ===== Form Group ===== */
.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.form-group label{
  font-size:14px;
  font-weight:500;
  line-height:1.4;
  min-height:38px;
}

.form-group input,
.form-group select{
  padding:12px;
  border-radius:6px;
  border:1px solid #d1d3e2;
  background:#fff;
  font-size:14px;
  transition:0.3s ease;
  box-shadow:0 3px 6px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus{
  border-color:#4e73df;
  outline:none;
  box-shadow:0 0 0 3px rgba(78,115,223,0.2);
}

/* ===== Button ===== */
button{
  margin-top:30px;
  padding:12px 30px;
  border:none;
  border-radius:6px;
  background:#4e73df;
  color:white;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
  transition:0.3s ease;
}

button:hover{
  background:#2e59d9;
  transform:translateY(-2px);
}

/* ===== Responsive ===== */
@media(max-width:992px){
  .form-grid-3{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px){
  .form-grid-3{
    grid-template-columns: 1fr;
  }
}
.subtitle{
  font-size:16px;
  text-align:center;
  color:#666;
  margin-bottom:20px;
}
#loading{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  justify-content:center;
  align-items:center;
  color:white;
  font-size:20px;
  z-index:999;
}
.qr-box{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:25px 0;
}

#qrImage{
  width:260px;
  height:260px;
  display:none;
  margin:20px auto;   /* ⭐ MAIN FIX */
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
  background:white;
  padding:8px;
}
.form-section{
  grid-column:1/-1;
  font-size:18px;
  font-weight:600;
  margin-top:15px;
  margin-bottom:10px;
  border-bottom:2px solid #eee;
  padding-bottom:5px;
}
.required-label::after{
  content:" * ";
  color:#e74a3b;
  font-weight:bold;
}
h3{
  position:relative;
}

.info-icon{
  display:inline-block;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#4e73df;
  color:white;
  text-align:center;
  font-size:12px;
  line-height:18px;
  margin-left:6px;
  cursor:pointer;
  font-weight:bold;
}

.tooltip-text{
  visibility:hidden;
  opacity:0;

  position:absolute;
  left:0;
  top:35px;

  background:#2c3e50;
  color:white;

  padding:8px 10px;
  border-radius:5px;

  font-size:13px;
  width:250px;

  transition:0.3s;
}

.info-icon:hover + .tooltip-text{
  visibility:visible;
  opacity:1;
}