:root {
  --bg-color: #f4f5f7;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent: #2563eb; /* Modern Blue */
  --border-radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

h4 {
  margin: 5px 0px;
  padding: 0px;
}

.form-container {
  background: var(--card-bg);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-container-w-pdf {
  background: var(--card-bg);
  width: 85vw;
  height: fit-content;
  padding: 40px;
  gap: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-container-w-pdf iframe {
  width: 100%;
  max-width: 100%;
  height: 85vh;
  margin: 20px 0px;
  display: block;
}

.form-header h1 {
  font-size: 24px;
  margin: 8px 0px;
  font-weight: 700;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 32px;
}

.section-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
}

.sub-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: -8px;
  margin-bottom: 12px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  gap: 10px;
}

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

.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  gap: 0.25rem;
}

input[type="radio"], input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

.text-input, select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus {
  border-color: var(--accent);
}

.submit-btn {
  background-color: var(--text-primary);
  color: white;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
  .form-container {
    padding: 24px;
  }
}

#session-loading-screen {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(100, 100, 100, 0.5);
  top: 0;
  left: 0;
}

#session-loading {
  position: fixed; 
  left: 0; 
  right: 0; 
  top: 0;
  bottom: 0;
  margin-left: auto; 
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
}