/* Step progress */

.step-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.overall-progress {
  position: relative;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  height: 26px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.overall-progress-bar {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.overall-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 0 5px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  font: inherit;
  font-family: inherit;
  border-radius: 8px;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.step-dot:hover,
.step-dot:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.step-dot.is-active,
.step-dot.is-done {
  opacity: 1;
}

.dot-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg-muted);
}

.step-dot.is-active .dot-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-dot.is-done .dot-num {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}

.dot-label {
  font-size: 0.95rem;
  color: var(--fg-muted);
  display: none;
}

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

/* Form */

.apply-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.apply-form h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.step-count {
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin: 0 0 1.75rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-family: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

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

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
}

.radio-option input {
  margin-top: 0.2rem;
}

.form-error {
  color: #e5484d;
  background: color-mix(in srgb, #e5484d 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, #e5484d 40%, transparent);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 0.8rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

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

.btn-secondary {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}

/* Confirmation */

.confirmation {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.confirmation h1 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}

.confirmation p {
  text-align: left;
  line-height: 1.7;
  color: var(--fg);
}

.confirmation .signoff {
  font-style: italic;
  color: var(--fg-muted);
}

.confirmation .apply-button {
  margin-top: 1rem;
}

/* Request-form additions: intro card, checkbox groups, "Other" free text. */

.request-intro {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.request-intro h1 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

.request-intro p,
.request-intro li {
  line-height: 1.6;
}

.request-intro ul {
  padding-left: 1.25rem;
}

.request-intro li {
  margin-bottom: 0.6rem;
}

.request-intro .btn-primary {
  margin-top: 1rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-option input,
.checkbox-option input {
  margin-top: 0.2rem;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
}

.other-option {
  flex-wrap: wrap;
}

.other-option .other-text {
  flex: 1;
  min-width: 10rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.form-field .required-mark {
  color: #e5484d;
}

.form-error ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin: 0 auto 1.5rem;
  max-width: 640px;
  width: 100%;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.confirmation .apply-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
}

.confirmation .apply-button:hover,
.confirmation .apply-button:focus-visible {
  background: var(--accent-hover);
}
