




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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
textarea { -webkit-user-select: text; user-select: text; }

* { -webkit-user-select: none; user-select: none; }





html { background: #00427A; overflow-x: hidden; }





body {
  font-family: Arial, sans-serif;
  color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.3s ease;
}





#hexCanvas { position: fixed; inset: 0; will-change: transform; }





.bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #00427A 0%, #0079B8 55%, #003666 100%);
  background-size: 300% 300%;
  animation: bgPulse 16s ease-in-out infinite;
  z-index: 0;
}

@keyframes bgPulse {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}





.logo-wrap { text-align: center; margin-bottom: 24px; }
.logo-wrap img { max-width: 380px; height: auto; }





.card { background: #fff; padding: 44px 48px; }







.step-title {
  color: #fff;
  font-size: 2rem;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
}





.step        { display: none; }
.step.active { display: block; }

@keyframes stepEnterForward {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepExitForward {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-28px); }
}




.form-group { margin-bottom: 28px; }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 28px;
}
.row-2 .form-group { margin-bottom: 0; }




label.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.required { color: #B50909; margin-left: 2px; }





input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #c8d0da;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #0079B8;
  box-shadow: 0 0 0 3px rgba(0, 121, 184, 0.12);
}

input.field-error-highlight,
select.field-error-highlight { border-color: #B50909; }




@keyframes errorIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes errorOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

.field-err {
  color: #B50909;
  font-size: 0.8rem;
  margin-top: 7px;
  display: none;
}
.field-err.visible { display: block; animation: errorIn  0.35s ease forwards; }
.field-err.hiding  { display: block; animation: errorOut 0.35s ease forwards; }

.global-error {
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 11px 16px;
  color: #B50909;
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}
.global-error.visible { display: block; animation: errorIn  0.35s ease forwards; }
.global-error.hiding  { display: block; animation: errorOut 0.35s ease forwards; }





.radio-group        { display: flex; flex-direction: column; gap: 9px; }
.radio-group.inline { flex-direction: row; }
.radio-group.inline .radio-opt { flex: 1; justify-content: center; text-align: center; }

.radio-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid #c8d0da;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.95rem;
  color: #1a1a1a;
}
.radio-opt:hover    { border-color: #0079B8; background: #f0f6ff; }
.radio-opt.selected { border-color: #0079B8; background: #0079B8; color: #fff; }
.radio-opt input[type="radio"] { display: none; }




.section-sep {
  font-size: 0.95rem;
  font-weight: 700;
  color: #00427A;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 40px 0 20px;
  padding-bottom: 6px;
  border-bottom: 2px solid #dde8f5;
}





.btn {
  display: inline-block;
  padding: 14px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-align: center;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary       { background: #00427A; color: #fff; }
.btn-primary:hover { background: #003666; }

.btn-full { width: 100%; }




.confirm-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #00427A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.confirm-circle svg { width: 38px; height: 38px; }

.card-center    { text-align: center; }
.card-center h2 { margin-bottom: 14px; }





@media (max-width: 480px) {
  .row-2 { grid-template-columns: 1fr; gap: 28px; }
  .card  { padding: 28px 20px; }
}





#rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(145deg, #00427A 0%, #0079B8 55%, #003666 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 40px 32px;
}

#rotate-overlay svg  { width: 72px; height: 72px; opacity: 0.92; }
#rotate-overlay p    { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0; line-height: 1.5; }
#rotate-overlay span { color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 400; }

@media (orientation: landscape) and (max-height: 480px) {
  #rotate-overlay { display: flex; }
}
