*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #F0F4F8;
  min-height: 100vh;
  color: #1E293B
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeDown .5s ease both
}

.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px
}

.logo-img {
  height: 45px;
  object-fit: contain
}

.logo-sep {
  width: 1.5px;
  height: 36px;
  background: linear-gradient(to bottom, #1E7FD9, #8B2FC9);
  border-radius: 2px;
  opacity: .45
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF8FF;
  color: #1E7FD9;
  border: 1px solid #BAE0FE;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 12px
}

.hero-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  color: #1E293B;
  line-height: 1.2;
  margin-bottom: 6px
}

.hero-grad {
  background: linear-gradient(135deg, #1E7FD9, #8B2FC9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.tagline {
  font-size: 13.5px;
  color: #64748B
}

/* Progress */
.progress-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px 14px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
  margin-bottom: 18px;
  animation: fadeDown .5s .05s ease both
}

.step-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px
}

.step-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #CBD5E1;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
  transition: color .3s
}

.step-lbl.active {
  color: #1E7FD9
}

.step-lbl.done {
  color: #22C55E
}

.step-track {
  height: 5px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden
}

.step-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(to right, #1E7FD9, #8B2FC9);
  transition: width .45s cubic-bezier(.4, 0, .2, 1)
}

.step-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 8px
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #E2E8F0;
  background: #fff;
  color: #CBD5E1;
  transition: all .3s
}

.step-dot.active {
  border-color: #1E7FD9;
  color: #1E7FD9;
  background: #EFF8FF
}

.step-dot.done {
  border-color: #22C55E;
  background: #22C55E;
  color: #fff
}

/* Card */
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  padding: clamp(20px, 5vw, 30px);
  animation: fadeUp .45s .1s ease both
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #F1F5F9
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0
}

.ci-blue {
  background: #EFF8FF
}

.ci-purple {
  background: #F5F3FF
}

.ci-rose {
  background: #FFF1F2
}

.ci-green {
  background: #F0FDF4
}

/* Fields */
.field {
  margin-bottom: 16px
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px
}

label .req {
  color: #EF4444;
  margin-left: 2px
}

input[type=text],
input[type=tel],
input[type=date],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #1E293B;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none
}

input::placeholder,
textarea::placeholder {
  color: #CBD5E1
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1E7FD9;
  box-shadow: 0 0 0 3px rgba(30, 127, 217, .12)
}

.field-err input,
.field-err select,
.field-err textarea {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
  animation: shake .35s ease
}

.field-ok input,
.field-ok select,
.field-ok textarea {
  border-color: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .1)
}

select option {
  color: #1E293B
}

textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.65
}

.fmsg {
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 4px
}

.fmsg.err {
  color: #EF4444
}

.fmsg.ok {
  color: #22C55E
}

.fmsg.hint {
  color: #94A3B8
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.grid-2 .field {
  margin-bottom: 0px
}

@media(max-width:460px) {
  .grid-2 {
    grid-template-columns: 1fr
  }
}

/* Social Media */
.grid-social {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
  margin-bottom: 16px;
}

.grid-social .field {
  margin-bottom: 0px
}

@media(max-width:460px) {
  .grid-social {
    grid-template-columns: 1fr
  }
}

/* Radio */
.radio-row {
  display: flex;
  gap: 10px
}

.radio-opt {
  flex: 1;
  cursor: pointer
}

.radio-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.radio-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 11px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  background: #FAFAFA;
  transition: all .2s;
  user-select: none
}

.radio-opt input:checked+.radio-face {
  border-color: #1E7FD9;
  color: #1E7FD9;
  background: #EFF8FF;
  box-shadow: 0 0 0 3px rgba(30, 127, 217, .1)
}

/* Char counter */
.char-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px
}

.char-count {
  font-size: 11.5px;
  color: #CBD5E1;
  transition: color .2s
}

/* Nav buttons */
.nav-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  border-top: 1.5px solid #F1F5F9;
  padding-top: 20px
}

.btn-back {
  flex: 1;
  padding: 12px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all .2s
}

.btn-back:hover {
  background: #F1F5F9
}

.btn-next {
  flex: 2;
  padding: 12px;
  background: linear-gradient(135deg, #1E7FD9, #8B2FC9);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 3px 12px rgba(30, 127, 217, .28)
}

.btn-next:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 127, 217, .34)
}

.btn-next:active {
  transform: translateY(0)
}

/* Review */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 0
}

.review-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #F1F5F9
}

.review-row:last-child {
  border-bottom: none
}

.rv-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: .4px;
  min-width: 120px;
  flex-shrink: 0;
  padding-top: 1px
}

.rv-val {
  font-size: 14px;
  font-weight: 500;
  color: #1E293B;
  line-height: 1.5;
  flex: 1
}

.rv-edit {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #1E7FD9;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background .15s
}

.rv-edit:hover {
  background: #EFF8FF
}

/* Modal */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s
}

.modal-bg.open {
  opacity: 1;
  pointer-events: auto
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 22px;
  max-width: 400px;
  width: 100%;
  transform: translateY(16px) scale(.97);
  opacity: 0;
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), opacity .25s
}

.modal-bg.open .modal {
  transform: none;
  opacity: 1
}

.modal-ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EFF8FF, #F5F3FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #1E293B;
  text-align: center;
  margin-bottom: 8px
}

.modal-desc {
  font-size: 13.5px;
  color: #64748B;
  text-align: center;
  line-height: 1.65;
  margin-bottom: 20px
}

.modal-desc strong {
  color: #1E293B
}

.modal-btns {
  display: flex;
  gap: 10px
}

.btn-mo-cancel {
  flex: 1;
  padding: 11px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: background .15s
}

.btn-mo-cancel:hover {
  background: #F1F5F9
}

.btn-mo-ok {
  flex: 2;
  padding: 11px;
  background: linear-gradient(135deg, #1E7FD9, #8B2FC9);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s
}

.btn-mo-ok:hover {
  opacity: .9
}

.btn-mo-ok:disabled {
  opacity: .6;
  cursor: not-allowed
}

.spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -2px;
  margin-right: 5px
}

/* Toast */
.toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-90px);
  z-index: 200;
  width: min(400px, calc(100vw - 32px));
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
  opacity: 0;
  pointer-events: none
}

.toast-wrap.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto
}

.toast {
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .12)
}

.toast.success {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0
}

.toast.error {
  background: #FEF2F2;
  border: 1.5px solid #FECACA
}

.toast.info {
  background: #EFF8FF;
  border: 1.5px solid #BAE0FE
}

.toast-ico {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px
}

.toast-body {
  flex: 1
}

.toast-ttl {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px
}

.toast.success .toast-ttl {
  color: #15803D
}

.toast.error .toast-ttl {
  color: #B91C1C
}

.toast.info .toast-ttl {
  color: #1D6FB8
}

.toast-msg {
  font-size: 12.5px;
  line-height: 1.5
}

.toast.success .toast-msg {
  color: #16A34A
}

.toast.error .toast-msg {
  color: #DC2626
}

.toast.info .toast-msg {
  color: #2563EB
}

.toast-x {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #94A3B8;
  padding: 0;
  line-height: 1;
  flex-shrink: 0
}

/* Page-level alert (from PHP redirect) */
.pg-alert {
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  animation: fadeDown .4s ease both
}

.pg-alert.s {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0
}

.pg-alert.e {
  background: #FEF2F2;
  border: 1.5px solid #FECACA
}

.pg-ico {
  font-size: 20px;
  flex-shrink: 0
}

.pg-t {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px
}

.pg-m {
  font-size: 13px;
  line-height: 1.5
}

.pg-alert.s .pg-t,
.pg-alert.s .pg-m {
  color: #15803D
}

.pg-alert.e .pg-t,
.pg-alert.e .pg-m {
  color: #B91C1C
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: #94A3B8
}

.footer strong {
  color: #64748B
}

/* Animations */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0)
  }

  25% {
    transform: translateX(-5px)
  }

  75% {
    transform: translateX(5px)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes sIn {
  from {
    opacity: 0;
    transform: translateX(22px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes sInB {
  from {
    opacity: 0;
    transform: translateX(-22px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.anim-f {
  animation: sIn .3s cubic-bezier(.4, 0, .2, 1) both
}

.anim-b {
  animation: sInB .3s cubic-bezier(.4, 0, .2, 1) both
}

.captcha-wrap{
  margin-top:20px;
  display:flex;
  justify-content:center;
}