/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 32px;
  background: #1a3a5c;
  padding: 24px 20px;
  border-radius: 8px 8px 0 0;
  margin: -24px -20px 32px -20px;
}

.header-logo {
  max-height: 60px;
  margin-bottom: 12px;
}

header h1 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 4px;
}

header .subtitle {
  font-size: 1rem;
  color: #a0b8d0;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.progress-bar .step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}

.progress-bar .step.active {
  background: #1a3a5c;
  color: #fff;
}

.progress-bar .step.completed {
  background: #2d8659;
  color: #fff;
}

.step-number {
  font-weight: 700;
}

.step-label {
  display: none;
}

@media (min-width: 520px) {
  .step-label {
    display: inline;
  }
}

/* Screens */
.screen {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.screen.hidden {
  display: none;
}

.screen h2 {
  font-size: 1.35rem;
  color: #1a3a5c;
  margin-bottom: 12px;
}

.screen > p {
  margin-bottom: 20px;
  color: #555;
}

/* Questions */
.question-group {
  margin-bottom: 16px;
}

.question {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fafbfc;
}

.question > label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1e293b;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 400;
  color: #334155;
}

.radio-label input[type="radio"] {
  accent-color: #1a3a5c;
}

/* Rubric Sections */
.rubric-section {
  margin-bottom: 24px;
}

.rubric-section h3 {
  font-size: 1.05rem;
  color: #1a3a5c;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: #e0edff;
  color: #1a3a5c;
  padding: 2px 10px;
  border-radius: 12px;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  color: #1e293b;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  color: #1e293b;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #1a3a5c;
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.12);
}

.form-group input.invalid {
  border-color: #dc2626;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-row .form-group-small {
  flex: 0 0 100px;
}

@media (max-width: 520px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group-small {
    flex: 1;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
  background: #1a3a5c;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #15304d;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error Message */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}

.error-message.hidden {
  display: none;
}

/* Confirmation */
.confirmation-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 20px;
  border-radius: 6px;
  line-height: 1.7;
}

.confirmation-message p + p {
  margin-top: 12px;
}

.confirmation-message a {
  color: #166534;
  font-weight: 600;
}

/* Upload Section */
.upload-section {
  margin-bottom: 20px;
}

.upload-group {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fafbfc;
}

.upload-group > label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
  color: #1e293b;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.file-input-wrapper input[type="file"] {
  font-size: 0.9rem;
}

.file-name {
  font-size: 0.85rem;
  color: #64748b;
}

.upload-status {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.upload-status.hidden {
  display: none;
}

.upload-status.status-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.upload-status.status-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.upload-status.status-uploading {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 32px;
  color: #94a3b8;
  font-size: 0.85rem;
}
