/* TypeForm-style CSS for the patient-reported form */

:root {
  --primary-color: #3CB44A; /* ICHOM Green */
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #F5F5F0; /* Light Beige/Cream */
  --dark-color: #34495e;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --border-radius: 4px;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--light-color);
  text-decoration: underline;
}

main {
  flex: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typeform-container {
  width: 100%;
  max-width: 800px;
  min-height: 600px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #eee;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  transition: width 0.3s ease;
}

.question-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.question-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.question-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.question-content {
  width: 100%;
  max-width: 600px;
}

.question-number {
  display: block;
  color: #888;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.question-content h2 {
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-size: 1.8rem;
}

.question-description {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 2rem;
}

.typeform-input, .typeform-select, .typeform-textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border: 2px solid #eee;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.typeform-input:focus, .typeform-select:focus, .typeform-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(60, 180, 74, 0.2);
}

.typeform-textarea {
  min-height: 120px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.typeform-radio {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.typeform-radio:hover {
  background-color: #f9f9f9;
}

.typeform-radio input {
  margin-right: 1rem;
  margin-top: 0.3rem;
}

.radio-label {
  flex: 1;
}

.typeform-radio input:checked + .radio-label {
  font-weight: 600;
}

.typeform-radio:has(input:checked) {
  border-color: var(--primary-color);
  background-color: rgba(60, 180, 74, 0.05);
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  color: white;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #35a041;
  border-color: #35a041;
}

.btn-secondary {
  color: var(--dark-color);
  background-color: #eee;
  border-color: #ddd;
}

.btn-secondary:hover {
  background-color: #ddd;
  border-color: #ccc;
}

.btn i {
  margin-left: 0.5rem;
}

.btn-prev i {
  margin-left: 0;
  margin-right: 0.5rem;
}

.slider-container {
  width: 100%;
  margin-bottom: 1rem;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #eee;
  outline: none;
  margin-bottom: 1rem;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-value {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 0.9rem;
}

.thank-you-container {
  text-align: center;
  padding: 2rem;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.thank-you-container h2 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.thank-you-container p {
  margin-bottom: 1.5rem;
  color: #666;
}

footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    margin-top: 1rem;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .typeform-container {
    min-height: 500px;
    margin: 1rem;
  }
  
  .question-slide {
    padding: 1.5rem;
  }
  
  .question-content h2 {
    font-size: 1.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
}
