/* ========================================
   Questionnaire Page (New Project)
   ======================================== */

html, body {
  background-color: #eeeeee;
  margin: 0;
  padding: 0;
}

.questionnaire {
  background-color: #eeeeee;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 40px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
}

.questionnaire__container {
  width: 100%;
  max-width: 898px;
  margin: 0 auto;
}

/* Logo */
.questionnaire__logo {
  text-align: center;
  margin-bottom: 20px;
}

.questionnaire__logo img {
  height: 36px;
  width: auto;
}

/* Progress Bar */
.questionnaire__progress {
  margin-bottom: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.questionnaire__progress-track {
  width: 100%;
  height: 5px;
  background-color: #d3d3d3;
  border-radius: 3px;
  overflow: hidden;
}

.questionnaire__progress-fill {
  height: 100%;
  width: 0%;
  background-color: #da982c;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Steps Stack */
.questionnaire__steps {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Steps */
.questionnaire__step {
  display: none;
  flex-direction: column;
  min-height: calc(100vh - 40px);
  animation: fadeIn 0.35s ease;
}

.questionnaire__step.is-visible {
  display: flex;
}

.questionnaire__step .questionnaire__btn {
  margin-top: auto;
}

.questionnaire__step.is-visible {
  display: flex;
}

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

/* Opening Screen */
.questionnaire__heading {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -5.1px;
  line-height: 0.9;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.questionnaire__sub {
  font-size: 24px;
  font-weight: 200;
  line-height: 1.4;
  color: #000000;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.questionnaire__benefits {
  max-width: 500px;
  margin: 0 auto 40px;
}

.questionnaire__benefits-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #000000;
  display: block;
  margin-bottom: 20px;
}

.questionnaire__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 200;
  line-height: 1.3;
  color: #000000;
  margin-bottom: 14px;
}

.questionnaire__benefit svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  stroke: #000;
}

/* Button */
.questionnaire__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 765px;
  height: 64px;
  margin: 0 auto;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 27px;
  font-weight: 600;
  color: #ffffff;
  background-color: #da982c;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.questionnaire__btn:hover {
  background-color: #c4881e;
}

.questionnaire__btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.questionnaire__step .questionnaire__btn {
}

.questionnaire__footer-text {
  font-size: 18px;
  font-weight: 200;
  color: #000000;
  text-align: center;
}

/* Questions */
.questionnaire__question {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -5.1px;
  line-height: 0.9;
  color: #000000;
  text-align: center;
  margin-bottom: 4px;
}

.questionnaire__hint {
  font-size: 18px;
  font-weight: 200;
  line-height: 1.3;
  color: #000000;
  text-align: center;
  margin-bottom: 80px;
}

/* Options Grid */
.questionnaire__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.questionnaire__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #000000;
  background-color: #eeeeee;
  border: 1px solid #000000;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  outline: none;
}

.questionnaire__opt:hover {
  background-color: #e0e0e0;
}

.questionnaire__opt.is-selected {
  background-color: #da982c;
  color: #ffffff;
  border-color: #da982c;
}

.questionnaire__opt--other {
  border-style: dashed;
}

/* Textarea */
.questionnaire__text-input {
  width: 100%;
  height: 180px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 200;
  color: #000000;
  background-color: #eeeeee;
  border: 1px solid #000000;
  border-radius: 16px;
  padding: 16px 24px;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 0;
}

.questionnaire__text-input:focus {
  border-color: #da982c;
}
.questionnaire__other-box {
  text-align: center;
  margin-bottom: 24px;
}

.questionnaire__other-input,
.questionnaire__field {
  width: 100%;
  max-width: 500px;
  height: 61px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 200;
  color: #000000;
  background-color: #eeeeee;
  border: 1px solid #000000;
  border-radius: 16px;
  padding: 16px 24px;
  outline: none;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}

.questionnaire__char-count {
  text-align: right;
  font-size: 14px;
  font-weight: 200;
  color: #999999;
  margin-top: 4px;
  margin-bottom: 8px;
}

.questionnaire__char-count span {
  font-weight: 600;
  color: #666666;
}

/* Contact Fields */
.questionnaire__fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.questionnaire__fields .questionnaire__field {
  max-width: 500px;
}

/* Phone Row */
.questionnaire__phone-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Custom Select */
.questionnaire__custom-select {
  position: relative;
  width: 130px;
  flex-shrink: 0;
}

.questionnaire__select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 61px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 200;
  color: #000000;
  background-color: #eeeeee;
  border: 1px solid #000000;
  border-radius: 16px;
  padding: 0 36px 0 20px;
  outline: none;
  cursor: pointer;
  text-align: left;
  position: relative;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.questionnaire__select-trigger::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px;
  background-position: center;
}

.questionnaire__select-trigger:focus {
  border-color: #da982c;
}

.questionnaire__select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  z-index: 100;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 12px;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.questionnaire__select-dropdown.is-open {
  display: block;
}

.questionnaire__select-dropdown.is-up {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.questionnaire__select-opt {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.questionnaire__select-opt:hover {
  background-color: #f0f0f0;
}

.questionnaire__select-opt:first-child {
  border-radius: 12px 12px 0 0;
}

.questionnaire__select-opt:last-child {
  border-radius: 0 0 12px 12px;
}

.questionnaire__phone-input {
  flex: 1;
  height: 61px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 200;
  color: #000000;
  background-color: #eeeeee;
  border: 1px solid #000000;
  border-radius: 16px;
  padding: 16px 24px;
  outline: none;
  box-sizing: border-box;
}

.questionnaire__phone-input:focus {
  border-color: #da982c;
}

/* Thank you email link */
.questionnaire__email-link {
  display: block;
  text-align: center;
  font-size: 48px;
  font-weight: 200;
  color: #da982c;
  text-decoration: none;
  margin-top: 10px;
}

.questionnaire__email-link:hover {
  text-decoration: underline;
}

.questionnaire__continue-link {
  display: block;
  text-align: center;
  font-size: 27px;
  font-weight: 600;
  color: #ffffff;
  background-color: #da982c;
  text-decoration: none;
  max-width: 400px;
  height: 56px;
  line-height: 56px;
  border-radius: 14px;
  margin: 40px auto 0;
  transition: background-color 0.2s;
}

.questionnaire__continue-link:hover {
  background-color: #c4881e;
}

/* Custom Modal */
.questionnaire__modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.questionnaire__modal.is-open {
  display: flex;
}

.questionnaire__modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.questionnaire__modal-box {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  z-index: 1001;
}

.questionnaire__modal-logo {
  margin-bottom: 24px;
}

.questionnaire__modal-logo img {
  height: 32px;
  width: auto;
}

.questionnaire__modal-msg {
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 24px;
}

.questionnaire__modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  background-color: #da982c;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 120px;
}

.questionnaire__modal-btn:hover {
  background-color: #c4881e;
}

/* ========================================
   Mobile
   ======================================== */

@media (max-width: 768px) {
  .questionnaire {
    padding: 6px 20px;
    align-items: flex-start;
  }

  .questionnaire__steps,
  .questionnaire__step {
    min-height: auto;
  }

  .questionnaire__step .questionnaire__btn {
    margin-top: 40px;
  }

  .questionnaire__logo {
    margin-top: 6px;
    margin-bottom: 24px;
  }

  .questionnaire__progress {
    margin-bottom: 0;
  }

  .questionnaire__heading {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .questionnaire__sub {
    font-size: 16px;
  }

  .questionnaire__benefits-title {
    font-size: 18px;
  }

  .questionnaire__benefit {
    font-size: 15px;
  }

  .questionnaire__question {
    font-size: 40px;
    letter-spacing: -2px;
    margin-bottom: 12px;
  }

  .questionnaire__hint {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .questionnaire__opt {
    font-size: 14px;
    height: 36px;
    padding: 0 12px;
  }

  .questionnaire__other-input,
  .questionnaire__field {
    font-size: 18px;
    padding: 12px 16px;
  }

  .questionnaire__text-input {
    font-size: 18px;
    padding: 12px 16px;
  }

  .questionnaire__btn {
    font-size: 20px;
    height: 56px;
    margin-bottom: 10px;
  }

  .questionnaire__email-link {
    font-size: 28px;
  }

  .questionnaire__footer-text {
    margin-top: 0;
  }

  .questionnaire__phone-row {
    max-width: 100%;
  }

  .questionnaire__custom-select {
    width: 90px;
  }

  .questionnaire__select-trigger {
    height: 50px;
    font-size: 15px;
    padding: 0 28px 0 12px;
  }

  .questionnaire__select-trigger::after {
    right: 10px;
  }

  .questionnaire__phone-input {
    height: 50px;
    font-size: 16px;
    padding: 0 12px;
  }
}
