/*
 * (c) Optible AI. All Rights Reserved.
 *
 * This file contains proprietary and confidential source code.
 * Unauthorised copying of this file, via any medium is strictly prohibited.
 *
 * Copyright (c) 2021 - Present
 */

:root {
  --primary-cta-complementary: #ffa800;
  --secondary-cta-complementary: #ff9800;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: white;
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: #111;
}

/* ── Center pages (welcome, 404) ── */

.center-align-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}

/* ── Nav ── */

.form-nav {
  border-bottom: 1px solid #e5e7eb;
}

.form-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 3rem;
}

.form-nav__left {
  display: flex;
  align-items: center;
}

.form-nav-logo {
  height: 40px;
  object-fit: contain;
}

.form-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-nav__btn {
  width: 160px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.form-nav__btn--outline {
  background: white;
  color: #155dfc;
  border: 1px solid #155dfc;
}

.form-nav__btn--outline:hover {
  background: #f0f4ff;
}

.form-nav__btn--primary {
  background: #155dfc;
  color: white;
  border: none;
}

.form-nav__btn--primary:hover {
  background: #1250d4;
}

/* ── Form page container ── */

.form-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.form-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.form-body {
  margin-top: 2rem;
}

/* ── Program details ── */

.program-details {
  background: #f8fafc;
}

.program-details__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
}

.program-details__heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}

.program-details__content {
  color: #374151;
  line-height: 1.8;
  font-size: 0.975rem;
}

.program-details__content p {
  margin-bottom: 0.75rem;
}

.program-details__content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.program-details__content li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}

.program-details__content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
}

.program-details__checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.program-details__checklist-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #374151;
  font-size: 0.975rem;
  line-height: 1.6;
}

.program-details__check-icon {
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Buttons ── */

.submit-btn {
  padding: 0.6rem 1.4rem;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.submit-btn:hover {
  background: #1557b0;
}

.btn-secondary {
  padding: 0.6rem 1.4rem;
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* ── Draft detected ── */

.draft-detected h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.draft-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ── Closed + error ── */

.form-closed-message {
  color: #6b7280;
  font-size: 1rem;
}

.form-error {
  color: #dc2626;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ── Application Timeline ── */

.application-timeline {
  background: #f8fafc;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  padding: 25px 25px 25px 24px;
  width: 100%;
}

.application-timeline-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.application-timeline-header-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.application-timeline-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  color: #192a3e;
  margin: 0;
}

.timeline-items {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.timeline-item-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
}

.timeline-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-icon--completed {
  background: #28a745;
}

.timeline-icon--active {
  background: #0057ff;
}

.timeline-icon--upcoming {
  background: #e2e2e2;
}

.timeline-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.timeline-icon-dot--white {
  background: white;
}

.timeline-icon-dot--gray {
  background: #6c757d;
}

.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  border-left: 2px dashed #0057ff;
}

.timeline-item-content {
  padding-bottom: 20px;
}

.timeline-item:last-child .timeline-item-content {
  padding-bottom: 0;
}

.timeline-item-label {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #192a3e;
  margin: 0;
}

.timeline-item-label--muted {
  color: #6c757d;
}

.timeline-item-date {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #6c757d;
  margin: 0;
}

/* ── Active Program Hero ── */

.active-program-hero {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.active-program-hero__main {
  flex: 1;
  min-width: 0;
}

.active-program-hero__sidebar {
  flex-shrink: 0;
  width: 364px;
}

.active-program-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 16px;
}

.active-program-hero__badge--open {
  background: #d4edda;
  color: #28a745;
}

.active-program-hero__badge--closed {
  background: #f8d7da;
  color: #dc3545;
}

.active-program-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.51;
}

.active-program-hero__title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  color: #192a3e;
  margin: 0 0 16px;
}

.active-program-hero__description {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #6c757d;
  margin: 0 0 24px;
}

.active-program-hero__info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.active-program-hero__info-card {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-program-hero__info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.active-program-hero__info-text {
  display: flex;
  flex-direction: column;
}

.active-program-hero__info-label {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6c757d;
}

.active-program-hero__info-value {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: #192a3e;
}

.active-program-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--primary-cta-complementary);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  cursor: pointer;
  margin-bottom: 12px;
}

.active-program-hero__cta:hover {
  background: var(--secondary-cta-complementary);
}

.active-program-hero__helper {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  color: #9ca3af;
  margin: 0;
}

.active-program-hero__helper a {
  color: #6b7280;
  text-decoration: underline;
}

.active-program-hero__helper a:hover {
  color: #111827;
}

/* ── Footer ── */

.form-footer {
  border-top: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 0.8125rem;
}

.form-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-footer__brand span {
  line-height: 1;
}

.form-footer__logo {
  height: 20px;
  vertical-align: middle;
}

.form-footer__divider {
  height: 1px;
  background: #e5e7eb;
}

.form-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.form-footer a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8125rem;
}

.form-footer a:hover {
  color: #111827;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .form-nav__inner {
    padding: 1rem 1.5rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .active-program-hero {
    flex-direction: column;
  }

  .active-program-hero__sidebar {
    width: 100%;
  }
}
