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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #1a3a52;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  text-align: center;
  padding: 15px 0 10px;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a3a52;
  line-height: 1.3;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 10px 0 20px;
}

.intro-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #1a3a52;
  margin-bottom: 20px;
  line-height: 1.4;
  padding: 0 10px;
}

/* Info Box */
.info-box {
  background-color: #ffffff;
  border: 3px solid #1e5a94;
  border-radius: 16px;
  padding: 20px 20px;
  box-shadow: 0 4px 12px rgba(30, 90, 148, 0.15);
  margin-bottom: 40px;
}

.info-section {
  margin-bottom: 15px;
}

.info-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a52;
  margin-bottom: 8px;
}

.benefits-list,
.requirements-list {
  list-style: none;
  padding-left: 0;
}

.benefits-list li,
.requirements-list li {
  font-size: 17px;
  color: #2a4a62;
  padding: 4px 0 4px 25px;
  position: relative;
  line-height: 1.5;
}

.benefits-list li::before,
.requirements-list li::before {
  content: "•";
  color: #1e5a94;
  font-weight: bold;
  font-size: 24px;
  position: absolute;
  left: 0;
  top: 4px;
}

.time-text {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #1a3a52;
  margin: 15px 0 20px;
}

/* Start Button */
.start-button {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 16px 32px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background-color: #1e5a94;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(30, 90, 148, 0.3);
}

.start-button:hover {
  background-color: #164a7d;
  box-shadow: 0 6px 12px rgba(30, 90, 148, 0.4);
  transform: translateY(-2px);
}

.start-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(30, 90, 148, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
  color: #666;
}

.footer a {
  color: #1e5a94;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #164a7d;
  text-decoration: underline;
}

.separator {
  margin: 0 10px;
  color: #999;
}

.copyright {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
}

/* Progress bar styles */
.progress-container {
  margin-bottom: 30px;
  padding: 0 10px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background-color: #1e5a94;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #1a3a52;
  font-weight: 600;
}

/* Form step styles */
.form-step {
  background-color: #ffffff;
  border: 3px solid #1e5a94;
  border-radius: 16px;
  padding: 35px 30px;
  box-shadow: 0 4px 12px rgba(30, 90, 148, 0.15);
  margin-bottom: 30px;
}

.question-group {
  margin-bottom: 30px;
}

.question-group:last-of-type {
  margin-bottom: 35px;
}

.question-label {
  font-size: 18px;
  font-weight: 600;
  color: #1a3a52;
  margin-bottom: 15px;
  display: block;
  line-height: 1.4;
}

.question-description {
  font-size: 15px;
  color: #2a4a62;
  margin-top: 8px;
  line-height: 1.5;
}

/* Button select styles */
.button-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.option-button {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #1a3a52;
  background-color: #f0f7ff;
  border: 2px solid #1e5a94;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  flex: 0 1 auto;
  min-width: fit-content;
}

.button-options.stack {
  flex-direction: column;
}

.button-options.stack .option-button {
  flex: 1;
  text-align: left;
}

.option-button:hover {
  background-color: #e0f0ff;
  border-color: #164a7d;
}

.option-button.selected {
  background-color: #1e5a94;
  color: #ffffff;
  border-color: #1e5a94;
}

/* Radio button styles */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #1e5a94;
}

.radio-option label {
  font-size: 16px;
  color: #1a3a52;
  cursor: pointer;
  flex: 1;
}

/* Checkbox styles */
.checkbox-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-option:hover {
  border-color: #1e5a94;
  background-color: #f0f7ff;
}

.checkbox-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #1e5a94;
}

.checkbox-option label {
  font-size: 16px;
  color: #1a3a52;
  cursor: pointer;
  flex: 1;
}

/* Text input and textarea styles */
.text-input,
.textarea-input,
.date-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  color: #1a3a52;
  background-color: #ffffff;
  border: 2px solid #1e5a94;
  border-radius: 10px;
  margin-top: 10px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.text-input:focus,
.textarea-input:focus,
.date-input:focus {
  outline: none;
  border-color: #164a7d;
  box-shadow: 0 0 0 3px rgba(30, 90, 148, 0.1);
}

/* Date of birth dropdown styles */
.dob-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.dob-select {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  font-size: 16px;
  color: #1a3a52;
  background-color: #ffffff;
  border: 2px solid #1e5a94;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.dob-select:focus {
  outline: none;
  border-color: #164a7d;
  box-shadow: 0 0 0 3px rgba(30, 90, 148, 0.1);
}

/* Height-weight input styles */
.height-weight-container {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.height-section,
.weight-section {
  flex: 1;
  min-width: 200px;
}

.sub-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a3a52;
  margin-bottom: 8px;
}

.height-inputs {
  display: flex;
  gap: 10px;
}

.styled-select {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  color: #1a3a52;
  background-color: #ffffff;
  border: 2px solid #1e5a94;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.styled-select:focus {
  outline: none;
  border-color: #164a7d;
  box-shadow: 0 0 0 3px rgba(30, 90, 148, 0.1);
}

.textarea-input {
  min-height: 100px;
  resize: vertical;
}

.input-error {
  border-color: #dc2626 !important;
}

.error-message {
  color: #dc2626;
  font-size: 14px;
  margin-top: 6px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Navigation buttons */
.form-navigation {
  display: flex;
  flex-direction: column-reverse;
  gap: 15px;
  justify-content: space-between;
  margin-top: 30px;
}

.nav-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 200px;
}

.back-button {
  background-color: #ffffff;
  color: #1e5a94;
  border: 2px solid #1e5a94;
}

.back-button:hover {
  background-color: #f0f7ff;
}

.next-button,
.submit-button {
  background-color: #1e5a94;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(30, 90, 148, 0.3);
  font-size: 17px;
  padding: 16px 32px;
}

.next-button:hover,
.submit-button:hover {
  background-color: #164a7d;
  box-shadow: 0 6px 12px rgba(30, 90, 148, 0.4);
}

.next-button:disabled,
.submit-button:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.submit-button.loading .spinner {
  display: block;
}

.submit-button.loading {
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Thank you screen styles */
.thank-you-box {
  text-align: center;
  padding: 50px 40px;
}

.thank-you-text {
  font-size: 20px;
  line-height: 1.6;
  color: #1a3a52;
  font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .header {
    padding: 12px 0 8px;
  }

  .header h1 {
    font-size: 24px;
  }

  .intro-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .info-box {
    padding: 18px 16px;
  }

  .info-section {
    margin-bottom: 12px;
  }

  .info-section h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .benefits-list li,
  .requirements-list li {
    font-size: 16px;
    padding: 3px 0 3px 25px;
  }

  .time-text {
    font-size: 17px;
    margin: 12px 0 18px;
  }

  .start-button {
    font-size: 18px;
    padding: 14px 28px;
  }

  .form-step {
    padding: 25px 20px;
  }

  .question-label {
    font-size: 17px;
  }

  .option-button {
    padding: 12px 16px;
    font-size: 15px;
  }

  .nav-button {
    padding: 12px 20px;
    font-size: 15px;
  }

  .thank-you-text {
    font-size: 18px;
  }

  .thank-you-box {
    padding: 40px 25px;
  }

  .checkbox-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .progress-container {
    margin-bottom: 20px;
  }

  .form-step {
    padding: 20px 15px;
  }

  .question-label {
    font-size: 16px;
  }

  .question-group {
    margin-bottom: 25px;
  }

  .nav-button {
    max-width: 100%;
  }

  .thank-you-text {
    font-size: 17px;
  }

  .thank-you-box {
    padding: 30px 20px;
  }

  .dob-container {
    flex-direction: column;
  }

  .dob-select {
    min-width: 100%;
  }

  .height-weight-container {
    flex-direction: column;
    gap: 15px;
  }

  .height-section,
  .weight-section {
    min-width: 100%;
  }
}
