.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 3rem;
}

.site-header {
  width: 100%;
  background: var(--color-primary);
  background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 1.75rem 1.25rem 2.75rem;
  text-align: center;
  position: relative;
}

.site-header .site-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.75rem;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}

.site-header .college-name {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
}

.site-header h1 {
  color: #fff;
  font-size: 1.35rem;
  max-width: 26rem;
  margin: 0 auto;
  line-height: 1.3;
}

.site-header p.tagline {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

@media (min-width: 480px) {
  .site-header {
    padding: 2.25rem 1.5rem 3.25rem;
  }
  .site-header .site-logo {
    width: 64px;
    height: 64px;
  }
  .site-header h1 {
    font-size: 1.6rem;
  }
  .site-header p.tagline {
    font-size: 0.95rem;
  }
}

.form-wrap {
  width: 100%;
  max-width: 600px;
  padding: 0 1.1rem;
  margin-top: -1.75rem;
}

.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.25rem 1.75rem;
}

@media (min-width: 480px) {
  .form-card {
    padding: 1.85rem 2rem 2.1rem;
  }
}

/* Step progress */

.step-progress {
  margin-bottom: 1.4rem;
}

.step-progress .track {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.step-progress .segment {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}

.step-progress .segment .fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.step-progress .segment.done .fill {
  width: 100%;
}

.step-progress .segment.current .fill {
  width: 100%;
}

.step-progress .label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.step-progress .step-count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.step-progress .step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

/* Steps */

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fade-in 0.25s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.step-actions .btn {
  flex: 1;
}

.step-actions.single {
  justify-content: flex-end;
}

.step-actions.single .btn {
  flex: none;
  min-width: 140px;
}

/* Review step */

.review-section {
  margin-bottom: 1.4rem;
}

.review-section h3 {
  font-size: 0.98rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--color-border);
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
}

@media (max-width: 480px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

.review-item .k {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-bottom: 0.1rem;
}

.review-item .v {
  font-size: 0.93rem;
  color: var(--color-text);
  word-break: break-word;
}

.review-photos {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.review-photos img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* Success screen */

.success-screen {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
}

.success-screen.active {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

.success-screen h2 {
  margin-bottom: 0.6rem;
}

.success-screen p {
  color: var(--color-text-muted);
  max-width: 26rem;
  margin: 0 auto;
}

.form-shell.hidden {
  display: none;
}

.submit-error {
  background: var(--color-danger-light);
  color: var(--color-danger);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  display: none;
}

.submit-error.active {
  display: block;
}

footer.site-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  padding: 0 1rem;
}
