@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap");

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

.fh-root {
  font-family: "DM Sans", sans-serif;
  min-height: 600px;
  background: #f5f3ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 40px;
}

.fh-header {
  width: 100%;
  max-width: 620px;
  padding: 28px 0 20px;
}

.fh-logo {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  color: #2c4a3e;
  letter-spacing: -0.3px;
}
.fh-logo span {
  color: #5c9178;
}

.fh-progress-wrap {
  width: 100%;
  max-width: 620px;
  margin-bottom: 10px;
}

.fh-progress-label {
  font-size: 12px;
  color: #7a8c85;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.fh-progress-bar {
  height: 4px;
  background: #ddd9d2;
  border-radius: 99px;
  overflow: hidden;
}

.fh-progress-fill {
  height: 100%;
  background: #2c7a55;
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fh-card {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 40px 32px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.fh-slide {
  display: none;
  flex-direction: column;
  flex: 1;
}
.fh-slide.active {
  display: flex;
  animation: slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.fh-slide.back {
  animation: slideBack 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideBack {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fh-q-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #5c9178;
  margin-bottom: 14px;
}

.fh-q-title {
  font-family: "DM Serif Display", serif;
  font-size: 26px;
  color: #1a2e25;
  line-height: 1.3;
  margin-bottom: 8px;
}

.fh-q-sub {
  font-size: 14px;
  color: #7a8c85;
  margin-bottom: 28px;
  line-height: 1.5;
}

.fh-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fh-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid #e0ddd8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #faf9f7;
  font-size: 15px;
  color: #1a2e25;
  font-weight: 400;
  text-align: left;
  user-select: none;
}
.fh-option:hover {
  border-color: #5c9178;
  background: #f0f7f4;
}
.fh-option.selected {
  border-color: #2c7a55;
  background: #edf7f2;
  font-weight: 500;
}

.fh-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8f4ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.fh-option.selected .fh-option-icon {
  background: #c8e8d8;
}

.fh-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #c5c0b8;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.fh-option.selected .fh-check {
  background: #2c7a55;
  border-color: #2c7a55;
}
.fh-option.selected .fh-check::after {
  content: "";
  display: block;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.fh-multi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.fh-option-multi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1.5px solid #e0ddd8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #faf9f7;
  font-size: 14px;
  color: #1a2e25;
  user-select: none;
}
.fh-option-multi:hover {
  border-color: #5c9178;
  background: #f0f7f4;
}
.fh-option-multi.selected {
  border-color: #2c7a55;
  background: #edf7f2;
  font-weight: 500;
}
.fh-option-multi .fh-option-icon {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.fh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  width: 100%;
  max-width: 620px;
}

.fh-btn-back {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #7a8c85;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fh-btn-back:hover {
  opacity: 1;
}
.fh-btn-back:disabled {
  opacity: 0;
  pointer-events: none;
}

.fh-btn-next {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #2c7a55;
  border: none;
  border-radius: 12px;
  padding: 13px 32px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fh-btn-next:hover {
  background: #236245;
  transform: translateY(-1px);
}
.fh-btn-next:active {
  transform: translateY(0);
}
.fh-btn-next:disabled {
  background: #b0c9bc;
  cursor: default;
  transform: none;
}

.fh-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.fh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5c0b8;
  transition: all 0.3s;
}
.fh-dot.active {
  background: #2c7a55;
  width: 20px;
  border-radius: 3px;
}

.fh-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  gap: 16px;
  padding: 20px 0;
}
.fh-final-icon {
  width: 72px;
  height: 72px;
  background: #edf7f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.fh-final h2 {
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  color: #1a2e25;
}
.fh-final p {
  font-size: 15px;
  color: #7a8c85;
  line-height: 1.6;
  max-width: 360px;
}

.fh-final-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #2c7a55;
  border: none;
  border-radius: 12px;
  padding: 14px 40px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.fh-final-btn:hover {
  background: #236245;
}

.fh-trust {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.fh-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #7a8c85;
}

/* ── Contact info slide ── */
.fh-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.fh-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fh-field-row {
  display: flex;
  gap: 14px;
}
.fh-field-row .fh-field-group {
  flex: 1;
}

.fh-field-label {
  font-size: 12px;
  font-weight: 500;
  color: #4a6358;
  letter-spacing: 0.2px;
}
.fh-field-label span {
  color: #e05a5a;
  margin-left: 2px;
}

.fh-field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0ddd8;
  border-radius: 10px;
  background: #faf9f7;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #1a2e25;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fh-field-input:focus {
  border-color: #2c7a55;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 122, 85, 0.08);
}
.fh-field-input::placeholder {
  color: #b0b8b4;
}
.fh-field-input.error {
  border-color: #e05a5a;
  box-shadow: 0 0 0 3px rgba(224, 90, 90, 0.08);
}

.fh-field-hint {
  font-size: 11px;
  color: #9aaca5;
  margin-top: 2px;
}
.fh-field-error {
  font-size: 11px;
  color: #e05a5a;
  margin-top: 2px;
  display: none;
}
.fh-field-input.error + .fh-field-error {
  display: block;
}

.fh-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: #f0f7f4;
  border-radius: 10px;
  border: 1px solid #c8e8d8;
  font-size: 12px;
  color: #4a6358;
  line-height: 1.5;
  margin-top: 4px;
}
.fh-privacy-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.fh-submit-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #2c7a55;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  width: 100%;
  margin-top: 4px;
}
.fh-submit-btn:hover {
  background: #236245;
  transform: translateY(-1px);
}
.fh-submit-btn:active {
  transform: translateY(0);
}

.fh-form input {
  width: 100%;
}

@media (max-width: 520px) {
  .fh-card {
    padding: 24px 20px 20px;
  }
  .fh-q-title {
    font-size: 22px;
  }
  .fh-multi-grid {
    grid-template-columns: 1fr;
  }
  .fh-field-row {
    flex-direction: column;
    gap: 14px;
  }
}
