:root {
  /* Logo ranglari */
  --navy: #16233f;
  --navy-deep: #0d1628;
  --navy-soft: #1e2f52;
  --red: #c8102e;
  --red-bright: #e11235;
  --gold: #f4b731;
  --gold-soft: #ffd15c;
  --white: #ffffff;
  --muted: #9fb0cc;

  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

[hidden] {
  display: none !important;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--navy-soft), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 20px;
  overflow-x: hidden;
  position: relative;
}

/* Dekorativ nur effektlari */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.glow--red {
  width: 320px; height: 320px;
  background: var(--red);
  top: -80px; left: -120px;
}
.glow--gold {
  width: 300px; height: 300px;
  background: var(--gold);
  bottom: -100px; right: -110px;
  opacity: 0.22;
}

/* Asosiy karta */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px 28px;
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Qabul ochiq belgisi */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 16, 46, 0.16);
  border: 1px solid rgba(225, 18, 53, 0.5);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.badge__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 0 rgba(225, 18, 53, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 18, 53, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(225, 18, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 18, 53, 0); }
}

/* Sarlavha */
.title {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.title__accent {
  color: var(--gold);
}

.subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 22px;
  max-width: 340px;
}

/* Afzalliklar */
.perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 11px 14px;
  border-radius: 14px;
}
.perk__icon {
  font-size: 18px;
  line-height: 1;
}

/* Forma */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  text-align: left;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  padding-left: 4px;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input::placeholder {
  color: rgba(159, 176, 204, 0.55);
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(244, 183, 49, 0.15);
}
.field input.invalid {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 4px rgba(225, 18, 53, 0.15);
}

/* Yuborish tugmasi */
.submit {
  position: relative;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 16px;
  border-radius: 14px;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  box-shadow: 0 12px 26px rgba(200, 16, 46, 0.4);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  overflow: hidden;
}
.submit:hover { filter: brightness(1.07); }
.submit:active { transform: scale(0.98); }
.submit.loading .submit__text { opacity: 0; }
.submit.loading .submit__loader { opacity: 1; }

.submit__loader {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__note {
  font-size: 12px;
  color: rgba(159, 176, 204, 0.7);
  margin-top: 2px;
}

/* Muvaffaqiyat */
.success {
  animation: rise 0.5s ease both;
  padding: 10px 0;
}
.success__check {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(46, 204, 113, 0.4);
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.success h2 { font-size: 24px; margin-bottom: 8px; }
.success p { color: var(--muted); font-size: 15px; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(159, 176, 204, 0.7);
}
.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s, transform 0.2s;
}
.footer__ig:hover {
  color: var(--white);
  transform: translateY(-1px);
}
.ig-icon {
  width: 18px;
  height: 18px;
}

/* Kichik ekranlar */
@media (max-width: 360px) {
  .title { font-size: 24px; }
  .logo { width: 112px; height: 112px; }
}

/* Kattaroq ekranlarda ham chiroyli */
@media (min-width: 500px) {
  body { padding-top: 48px; }
  .card { padding: 36px 32px 32px; }
  .title { font-size: 30px; }
}
