@font-face {
  font-family: "yekanbakh-extrablack";
  src: url("../assets/fonts/YekanBakhFaNum-ExtraBlack.woff") format("woff"),
    url("../assets/fonts/YekanBakhFaNum-ExtraBlack.woff") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "yekanbakh-black";
  src: url("../assets/fonts/YekanBakhFaNum-Black.woff") format("woff"),
    url("../assets/fonts/YekanBakhFaNum-Black.woff") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "yekanbakh-bold";
  src: url("../assets/fonts/YekanBakhFaNum-Bold.woff") format("woff"),
    url("../assets/fonts/YekanBakhFaNum-Bold.woff") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "yekanbakh-semibold";
  src: url("../assets/fonts/YekanBakhFaNum-SemiBold.woff") format("woff"),
    url("../assets/fonts/YekanBakhFaNum-SemiBold.woff") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "yekanbakh-regular";
  src: url("../assets/fonts/YekanBakhFaNum-Regular.woff") format("woff"),
    url("../assets/fonts/YekanBakhFaNum-Regular.woff") format("woff2");
  font-display: swap;
}

:root {
  --bg: white;
  --card: #ffffff;
  --muted: #606a78;
  --primary: #ee8051;
  --primary-2: #f26b31;
  --secondary: #1e7fa1;
  --secondary-3: #1d365c;
  --secondary-2: #1a6c89;
  --neutral: #d8dde6;
  --radius: 14px;
  --max-width: 1200px;
}

body {
  font-family: "yekanbakh-regular";
  direction: rtl;
}

body.first-state {
  margin: 0;
  background: var(--bg);
  color: #20242a;
  min-height: 100vh;
}

body.second-state {
  background-image: url("../assets/images/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
  &.black {
    font-family: "YekanBakh-black";
    font-size: 25px;
  }
  &.bold {
    font-family: "YekanBakh-bold";
    font-size: 25px;
  }
}

.headline-1 {
  &.bold {
    font-family: "YekanBakh-bold";
    font-size: 23px;
  }
  &.semibold {
    font-family: "YekanBakh-semibold";
    font-size: 23px;
  }
  &.regular {
    font-family: "YekanBakh-regular";
    font-size: 23px;
  }
}

.headline-3 {
  &.bold {
    font-family: "YekanBakh-bold";
    font-size: 17px;
  }
  &.semibold {
    font-family: "YekanBakh-semibold";
    font-size: 17px;
  }
  &.regular {
    font-family: "YekanBakh-regular";
    font-size: 17px;
  }
}

.body-1 {
  &.regular {
    font-family: "YekanBakh-regular";
    font-size: 15px;
  }
  &.semibold {
    font-family: "YekanBakh-semibold";
    font-size: 15px;
  }
  &.bold {
    font-family: "YekanBakh-bold";
    font-size: 15px;
  }
}

.body-2 {
  &.regular {
    font-family: "YekanBakh-regular";
    font-size: 13px;
  }
}

.body-3 {
  &.regular {
    font-family: "YekanBakh-regular";
    font-size: 11px;
  }
}

.text-primary {
  color: #1d1f21;
}

.text-secondary {
  color: var(--muted);
}

.btn {
  background: transparent;
  border: 1px solid #d1d5dc;
  padding: 10px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-family: "yekanbakh-regular";
  font-size: 11px;
  line-height: 1.5;
  color: #2b2f33;
  transition: all 0.2s;
  display: inline-block;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn.primary:hover {
  background: var(--primary-2);
}

.btn.secondary {
  background: var(--secondary-2);
  color: #fff;
  border: none;
}

.btn.secondary:hover {
  background: #0d1d35;
}

.btn.ghost:hover {
  background: #eef3ff;
}

ul {
  margin-top: 0;
}

.cover-card {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}

/* Layout of hero content */
.cover-page {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  height: 100%;
  width: 100%;
  gap: 1rem;
}

/* Hero text */
.hero-text {
  text-align: right;
  width: 90%;
  margin-inline: auto;
  margin-top: 25px;
}

.hero-text h1 {
  margin-bottom: 8px;
  color: var(--secondary-3);
}

.hero-text span {
  color: var(--secondary-3);
}

.hero-text p {
  margin-top: 28px;
}

#startBtn {
  min-width: 150px;
  background-color: var(--secondary-2);
}

/* Hero image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 20px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}

/* Info box */
.info-box {
  background-color: var(--secondary-2);
  color: #fff;
  border-radius: 14px 0 0 0;
  padding: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
  width: fit-content;
}

.start-btn-container {
  display: flex;
  justify-content: start;
  margin-block: 20px;
  /*justify-content: center;*/
}

.birthday-logo-container {
  max-width: 120px;
  margin-top: 25px;
  margin-right: 5%;
}

.birthday-logo-container img {
  width: 100%;
}


#main-pages {
  margin-top: 5%;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  margin-inline: auto;
  width: 300px;
  max-width: 300px;
}

.survey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.progress-text {
  font-size: 10px;
  margin-bottom: 5px;
  padding-inline: 7px;
}

.progress-wrap {
  background: #e0e4ea;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00b894, #00d4aa);
}

.question-card {
  margin-top: 18px;
  background: #f9fbfd;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e8ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hint-text {
  font-size: 10px;
  color: var(--muted);
}

.q-number {
  font-size: 11px;
  color: var(--muted);
}

.q-title {
  font-size: 16px;
  font-family: "yekanbakh-semibold";
  color: #1e2125;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.option {
  background: #fff;
  border: 1px solid var(--neutral);
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  gap: 12px;
  align-items: center;
}

.option:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.option.active {
  border: 1px solid var(--secondary);
}

.badge {
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #1d365c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "yekanbakh-bold";
  color: white;
}

.option-text {
  flex: 1;
  color: #2b2f33;
  font-family: "yekanbakh-regular";
  font-size: 13px;
  text-align: right;
}

.nav {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
}

.styled-input {
  border: 1px solid var(--neutral);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1.1rem;
  text-align: center;
  outline: none;
  width: 220px;
  transition: border-color 0.3s ease;
}

.styled-input:focus {
  border-color: var(--secondary);
}

.code-inputs {
  display: flex;
  justify-content: center;
  direction: ltr;
  gap: 3px;
  margin-top: 16px;
}

.digit-input {
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 20px;
  border: 1px solid var(--neutral);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.digit-input:focus {
  border-color: var(--secondary);
}

#timer,
.error,
#resendLink {
  font-family: "yekanbakh-regular";
  font-size: 10px;
}

#resendLink {
  font-family: "yekanbakh-semibold";
  font-size: 11px;
}

#timer {
  color: var(--muted);
}

.question-card.phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-view {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poster-container {
  max-width: 400px;
}

.poster-container img {
  width: 100%;
}

.result-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  background-color: var(--bg);
}

.avatar-container {
  max-width: 150px;
  margin-top: 20px;
}

.avatar-container img {
  width: 100%;
}

.char-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  gap: 14px;
  width: 65%;
}

.char-name {
  text-align: center;
}

.char-desc {
  text-align: right;
}

.result-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 50%;
  margin-block: 24px;
}

.result-buttons button {
  width: 100%;
}

#promoBtn {
  color: var(--secondary-2);
  /* background-color: #c7c7c7; */
  border: 2px dashed var(--secondary-2);
}

.success-container {
  max-width: 150px;
}
.success-container img {
  width: 100%;
}

@media (min-width: 576px) {
  .question-card {
    padding: 20px;
  }
  .card {
    padding: 28px;
  }
  .digit-input {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 768px) {
  .info-box {
    position: absolute;
    right: 0;
    bottom: 0;
  }
  body.first-state {
    position: relative;
  }
  body.second-state {
    background-image: url("../assets/images/bg.png");
  }
  .cover-page {
    align-items: center;
  }

  .hero-text ul li {
    width: 80%;
  }

  .card {
    padding: 40px 60px;
    width: 600px;
    max-width: 600px;
  }
  .form-area {
    width: 540px;
    max-width: 540px;
  }
}

@media (min-width: 992px) {
  .title {
    &.black {
      font-size: 35px;
    }
  }

  .body-1 {
    &.regular {
      font-size: 17px;
    }
    &.semibold {
      font-size: 17px;
    }
    &.bold {
      font-size: 17px;
    }
  }

  .body-2 {
    &.regular {
      font-size: 14px;
    }
  }
  .btn {
    padding: 15px 25px;
  }
  .cover-page {
    flex-direction: row;
  }
  .hero-image img {
    max-width: 700px;
  }

  .char-details {
    width: 50%;
  }
  .result-view {
    flex-direction: row;
    align-items: stretch;
  }
}

@media (min-width: 1200px) {
  .hero-image img {
    max-width: 800px;
  }
}