@font-face {
  font-family: 'TT Firs Neue';
  src: url('./font/TT Firs Neue Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Firs Neue';
  src: url('./font/TT Firs Neue Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Firs Neue';
  src: url('./font/TT Firs Neue Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Firs Neue';
  src: url('./font/TT Firs Neue Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary-blue: linear-gradient(0deg, #0057C6 0%, #0072DD 100%);
  --primary-blue-hover: #004494;
  --bg-color: #B2B2B2;
  /* Grey background matching screenshots */
  --text-dark: #222222;
  --yellow-btn: #F5A623;
  --yellow-btn-hover: #e5b63b;
  --light-blue: #0072DD80;
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'TT Firs Neue', sans-serif;
}

body {
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  color: var(--text-dark);
}

.app {
  width: 100%;
  max-width: 500px;
  background: #fff;
  background: #001239;

  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* ---------------- Preloader ---------------- */
.preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  background: #fff;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.preloader img {
  max-width: 100px;
}

/* ---------------- Bonus Popup ---------------- */
.bonus-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 15px;
}

.bonus-popup.active {
  display: flex;
  animation: fadeInBg 0.4s ease-out;
}

@keyframes fadeInBg {
  from {
    background: rgba(0, 0, 0, 0);
  }

  to {
    background: rgba(0, 0, 0, 0.5);
  }
}

.bonus-content {
  background: #003270 url('./img/modal-bg.png') center -20px / 115% no-repeat;
  border-radius: 20px;
  padding: 40px 20px 30px;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 420px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.bonus-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.bonus-close:hover {
  color: #555;
}

.bonus-img {
  width: 220px;
  margin: 0 auto 15px;
  display: block;
  animation: bounceGift 2s infinite ease-in-out;
}

@keyframes bounceGift {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.bonus-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.bonus-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #fff;
}

.bonus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 50px;
  background: #FFFFFF14;
  border: 2.76px solid #FFFFFF26;
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.5px;
  margin-bottom: 25px;
}

.bonus-divider img {
  max-width: 25px;
  height: 25px;
  width: 100%;
}

.bonus-text {
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 25px;
  line-height: 1.4;
}

.bonus-text span {
  color: var(--primary-blue);
  font-weight: 700;
}

/* ---------------- Common Buttons ---------------- */

.mb-20 {
  margin-bottom: 20px;
}

.options-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.btn-toggle.active {
  /* background: var(--primary-blue); */
  background: linear-gradient(90deg, #ff7300 0%, #ff2a54 50%, #ff007f 100%);
}


.btn-toggle {
  background: #7FB0E6;
  color: #fff;
  padding: 14px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}


.btn {
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  padding: 16px 20px;
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn-yellow {
  background: linear-gradient(180deg, #FFD44D 0%, #F5A623 100%);
  background: #fff;
  color: #003A84;

  width: 100%;
  max-width: 300px;
  box-shadow: 0px 15.43px 41.14px 0px #F5A6234D;
  animation: pulseBtn 2s infinite;
}

.btn-yellow:hover {
  background: #00398443;
  color: #fff;
  border: 1px solid #fff;
}

@keyframes pulseBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(253, 203, 69, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(253, 203, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(253, 203, 69, 0);
  }
}

.btn-blue {
  background: var(--primary-blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--primary-blue-hover);
}

.w-100 {
  width: 100%;
}

.mt-20 {
  margin-top: 20px;
}

.mt-10 {
  margin-top: 10px;
}

/* ---------------- Header ---------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-shadow: 0px 0px 16.7px 0px #ffffff40;

}

.header-logo,
.header-gerb {
  height: 70px;
}

/* ---------------- Quiz Container ---------------- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quiz-container {
  padding: 35px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quiz-step {
  display: none;
  flex-direction: column;
  animation: fadeInStep 0.4s ease-out;
}

.quiz-step.active {
  display: flex;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

/* ---------------- Intro (Frame 1) ---------------- */
.intro-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.intro-subtitle {
  font-size: 27px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.blue-banner {
  background: var(--primary-blue);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.intro-subtitle span {
  font-size: 40px;
  font-weight: 800;
}

.blue-border {
  width: 280px;
  height: 3px;
  border: 2px solid #00BCE3;
  margin-bottom: 20px;

}

.info-card {
  box-shadow: 0px 0px 16.7px 0px #00000040;
  border-radius: var(--border-radius);
  padding: 20px;
  background: #FAFAFA;
}

.info-title {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 15px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E8F2FC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------------- Progress Bar ---------------- */
.progress-container {
  display: flex;
  gap: 8px;
  margin: 10px 0 25px;
}

.progress-segment {
  flex: 1;
  height: 4px;
  background: #D9E6F6;
  border-radius: 2px;
  transition: background 0.3s;
}

.progress-segment.active {
  background: var(--primary-blue);
}

/* ---------------- Quiz Questions ---------------- */
.question-text {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.question-subtext {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.btn-option {
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 15px;
  border-radius: var(--border-radius);
  text-align: center;
}

.btn-option:hover {
  background: var(--primary-blue-hover);
}

/* ---------------- Form ---------------- */
.form-text-top {
  font-size: 12px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 20px;
}

.input-label {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  display: block;
  color: #fff;
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-input {
  width: 100%;
  border-radius: var(--border-radius);
  padding: 14px 15px;
  font-size: 17px;
  background: #fff;
  /* background: #087EEF26; */

  outline: none;
  transition: border 0.3s;
}

.text-input:focus {
  border-width: 2px;
}

.phone-input-style {
  background: #EAF2FB;
}

.form-text-small {
  font-size: 12px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.messenger-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.cont__mes {
  background: #0072DD80;
  /* Light blue from screenshot */
  color: white;
  padding: 14px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.cont__mes.active {
  background: var(--primary-blue);
}

.legal-text-bottom {
  font-size: 10px;
  color: #999;
  text-align: center;
  margin-top: 20px;
  line-height: 1.3;
}

/* Original intl-tel-input integration override */
.iti {
  width: 100%;
}

.iti__flag-container {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}