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

body {
  font-family: Arial, sans-serif;
  background-color: #f9fafb;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  min-height: 100vh;
}

.container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  padding: 2rem;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

iframe {
  width: 100%;
  height: 300px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}

input:not([type="checkbox"]), textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
}

input::placeholder {
  color: #9ca3af;
  font-size: 0.9rem;
}

button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  margin-top: 1.5rem;
}

#thankYouMessage {
  text-align: center;
  padding: 3rem 1rem;
}

#thankYouMessage h1 {
  color: #2563eb;
  margin-bottom: 1.5rem;
}

#thankYouMessage p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #4b5563;
}

#thankYouMessage button {
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

button:hover {
  background-color: #1e40af;
}

button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.success {
  color: green;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
}

.error {
  color: red;
  text-align: center;
  margin-top: 1rem;
}

.form-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.form-notice {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
}

.medical-question {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin: 0.5rem 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.conditional-textarea {
  width: 100%;
  height: 60px;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: none;
  resize: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.conditional-textarea.visible {
  display: block;
}

.medical-confirmations {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
}

.media-consent {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.consent-header {
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #1f2937;
}

.media-consent .checkbox-label {
  margin: 0.75rem 0;
  padding-left: 1rem;
}

.document-section {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.document-section.disabled {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.document-section.disabled::after {
  content: "Complete previous step first";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #4b5563;
  border-radius: 8px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.acceptance-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acceptance-box button {
  margin: 0;
  width: auto;
  padding: 0.5rem 1rem;
}

.completed {
  background-color: #f0fdf4;
  border-color: #86efac;
}

.completed .step-number {
  background-color: #16a34a;
}

.submission-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.submission-status.error {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.submission-status.success {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
