/* Survey Form Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 20px;
  color: #222;
}

.container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  padding: 32px 22px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.lang-prompt {
  text-align: left;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.lang-label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.language-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  font-family: inherit;
  color: #444;
}

.lang-btn:hover {
  background: #e0f2f1;
  border-color: #219c8c;
  color: #219c8c;
}

.lang-btn.active {
  background: #219c8c;
  color: white;
  border-color: #219c8c;
  box-shadow: 0 2px 6px rgba(33, 156, 140, 0.2);
}

.lang-btn:active {
  transform: translateY(1px);
}

h1 {
  margin-bottom: 12px;
  color: #219c8c;
  font-size: 1.5rem;
  font-weight: 700;
}

.subheading {
  color: #333;
  font-size: 1.03rem;
  margin-bottom: 20px;
}

.sample-report {
  background: #219c8c;
  color: #fff;
  padding: 10px 20px;
  margin-bottom: 26px;
  margin-top: 0;
  display: inline-block;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1.13rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(33, 156, 140, .16);
}

.sample-report:hover {
  background: #176e61;
}

form {
  text-align: left;
  margin-top: 0;
}

label {
  font-weight: 600;
  margin-top: 15px;
  display: block;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 9px;
  font-size: 1rem;
  margin-bottom: 5px;
  resize: vertical;
  box-sizing: border-box;
}

input[type="radio"] {
  margin-right: 7px;
}

/* Communication Modes Styling */
.communication-modes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 5px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 9px;
  border: 1px solid #e0e0e0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 7px;
  transition: all 0.2s ease;
  font-weight: 500;
  margin-top: 0;
  position: relative;
}

.checkbox-label:hover {
  background: #e8f5e9;
}

.comm-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  margin: 0;
}

.checkbox-custom {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  border: 2px solid #219c8c;
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.comm-checkbox:checked~.checkbox-custom {
  background: #219c8c;
  border-color: #219c8c;
}

.comm-checkbox:checked~.checkbox-custom::after {
  display: block;
}

.comm-checkbox:checked~.checkbox-text {
  color: #219c8c;
  font-weight: 600;
}

.checkbox-text {
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
  user-select: none;
}

.field-hint {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
  margin-bottom: 10px;
  font-style: italic;
}

select[multiple] {
  min-height: 92px;
}

.radio-group {
  margin: 10px 0 0 0;
  display: flex;
  gap: 25px;
  font-weight: normal;
}

.radio-group label {
  font-weight: 500;
  margin-top: 0;
}

.question-section {
  margin: 20px 0 10px 0;
  color: #219c8c;
  font-size: 1.06rem;
  font-weight: 600;
}

button[type="submit"] {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  background: #219c8c;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.17rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background: #176e61;
}

.completion-message {
  background: #e2faef;
  color: #11786a;
  padding: 17px 13px;
  border-radius: 9px;
  margin-top: 30px;
  font-size: 1.09rem;
  text-align: center;
}

/* Consent Modal Styles */
.consent-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.consent-modal-content {
  background-color: #fff;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
}

.consent-modal-content h2 {
  color: #219c8c;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.consent-content {
  text-align: left;
  line-height: 1.6;
  color: #333;
}

.consent-content p {
  margin-bottom: 15px;
}

.consent-section {
  margin-bottom: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #219c8c;
}

.consent-section h3 {
  color: #219c8c;
  font-size: 1.1rem;
  margin-bottom: 10px;
  margin-top: 0;
}

.consent-section ul {
  margin: 10px 0;
  padding-left: 25px;
}

.consent-section li {
  margin-bottom: 8px;
}

.consent-checkboxes {
  margin: 25px 0;
  padding: 20px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  cursor: pointer;
  padding: 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.consent-checkbox-label:hover {
  background-color: #f5f5f5;
}

.consent-checkbox-label:last-child {
  margin-bottom: 0;
}

.consent-checkbox-label input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-checkbox-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.consent-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.consent-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.consent-btn-cancel {
  background-color: #f5f5f5;
  color: #333;
}

.consent-btn-cancel:hover {
  background-color: #e0e0e0;
}

.consent-btn-submit {
  background-color: #219c8c;
  color: #fff;
}

.consent-btn-submit:hover {
  background-color: #176e61;
}

.consent-btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

@media (max-width:500px) {
  .container {
    padding: 13px 3vw;
  }

  h1 {
    font-size: 1.1rem;
  }

  .sample-report,
  button[type="submit"] {
    font-size: 1rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 9px;
  }

  .communication-modes {
    padding: 12px;
    gap: 10px;
  }

  .checkbox-label {
    padding: 8px;
  }

  .checkbox-text {
    font-size: 0.95rem;
  }

  .consent-modal {
    padding: 10px;
  }

  .consent-modal-content {
    padding: 20px;
    margin: 20px auto;
  }

  .consent-modal-content h2 {
    font-size: 1.2rem;
  }

  .consent-modal-buttons {
    flex-direction: column;
  }

  .consent-btn {
    width: 100%;
  }
}