/* Hero section */
.hero {
  width: 100%;
  height: 961px;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 0 24px;
}

.hero-text {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  font-size: 84px;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  line-height: 92px;
  width: 100%;
}

/* Math section */
.math-section {
  background: #f8faf7;
  padding: 60px 40px;
  margin: 0 auto;
  text-align: center;
}

.math-header {
  margin-bottom: 50px;
}

.math-subtitle {
  color: #1b5035;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 48px;
  letter-spacing: 0.5px;
}

.math-title {
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  font-size: 48px;
  color: #1b5035;
  line-height: normal;
  margin-bottom: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.math-calculation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.math-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.math-label {
  font-size: 18px;
  color: #7f775b;
  margin-top: 15px;
  font-weight: 500;
}

.math-value {
  font-size: 36px;
  font-weight: 700;
  color: #1b5035;
  white-space: nowrap;
  font-family: 'Times New Roman', 'sans-serif';
}

.math-operator {
  font-family: 'Times New Roman', serif;
  font-weight: 700;
  font-size: 48px;
  color: #1b5035;
  margin: 0 20px;
}

.math-description {
  font-size: 24px;
  color: #1b5035;
  font-family: 'Heebo', sans-serif;
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.sponsor-btn {
  background: #ef7047;
  color: white;
  padding: 16px 32px;
  border-radius: 100px;
  border: none;
  font-size: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: block;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.sponsor-btn:hover {
  background: #d65a38;
}

.payment-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 19px;
}

.payment-text {
  font-size: 16px;
  font-weight: 500;
  color: #000;
}

.payment-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* FAQ Section */
.faq-section {
  width: 100%;
  padding: 72px;
  background: #f8faf7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 52px;
}

.faq-header {
  align-self: stretch;
  color: #1b5035;
  font-size: 36px;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  text-align: center;
}

.faq-item {
  align-self: stretch;
  padding-bottom: 24px;
  border-bottom: 1px #b2ab93 solid;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.question-text {
  color: #1b5035;
  font-size: 28px;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
}

.chevron-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.faq-answer {
  color: #1b5035;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 24px;
  word-wrap: break-word;
  overflow: hidden;
  height: 0;
  transition:
    height 0.3s ease-out,
    padding-top 0.3s ease-out;
}

.faq-answer.open {
  height: auto;
  padding-top: 28px;
}

/* Gift Subscription Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  font-size: 16px;
  color: #1b5035;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-group input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #1b5035;
  margin-right: 6px;
}

/* Recipient Section */
.recipient-section {
  background: #f0f7f3;
  border: 1px solid #b2ab93;
  border-radius: 8px;
  padding: 20px 16px 10px 16px;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(27, 80, 53, 0.06);
  transition: background 0.3s;
}

.recipient-header {
  font-size: 20px;
  color: #1b5035;
  font-family: 'Heebo', sans-serif;
  font-weight: 600;
  margin: 18px 0 10px 0;
}

/* Radio group for subscription length */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.subscription-length-label {
  font-size: 15px;
  color: #1b5035;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  margin-bottom: 4px;
}

.radio-options {
  display: flex;
  gap: 18px;
  margin-top: 2px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-label {
  font-size: 15px;
  color: #1b5035;
  font-family: 'Heebo', sans-serif;
  font-weight: 400;
  cursor: pointer;
}

.radio-option input[type='radio'] {
  accent-color: #1b5035;
  width: 18px;
  height: 18px;
}

/* Recipient input fields */
.recipient-section .input-group {
  margin-bottom: 0.8rem;
}

.recipient-section .input-field {
  background: #fff;
  border: 1px solid #b2ab93;
}

.recipient-section .input-label {
  color: #739281;
}

@media (max-width: 1225px) {
  .math-section {
    padding: 48px;
  }

  .math-title {
    font-size: 32px;
  }

  .math-calculation {
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
  }

  .math-item {
    width: 100%;
  }

  .math-label {
    margin-top: 10px;
  }

  .math-operator {
    transform: rotate(0deg);
  }

  .math-description {
    margin-top: 40px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 0 24px;
    height: 600px;
  }

  .hero-text {
    font-size: 32px;
    line-height: 56px;
    padding: 0 24px;
  }

  .sponsor-btn {
    font-size: 20px;
    padding: 14px 28px;
  }

  .payment-header {
    flex-direction: column;
  }

  .payment-text {
    margin-bottom: 5px;
  }

  .faq-section {
    padding: 72px 24px;
  }

  .faq-item {
    padding: 16px 24px;
  }

  .chevron-icon {
    width: 20px;
    height: 20px;
  }
}
