/**
 * IMCOHAMS Admissions App - Modern Design System
 * Matches portal.imcohams.edu.ng color pattern and layout
 * Primary: Navy, Accent: Red, Secondary: Green
 */

/* ============================================
   Color Palette (same as portal)
   ============================================ */
:root {
  --app-primary: #1a237e;
  --app-primary-dark: #0d1554;
  --app-primary-light: #283593;
  --app-primary-subtle: rgba(26, 35, 126, 0.08);
  --app-secondary: #166534;
  --app-secondary-dark: #14532d;
  --app-accent: #b71c1c;
  --app-accent-dark: #7f1d1d;
  --app-accent-light: #dc2626;
  --app-white: #ffffff;
  --app-gray-50: #f8fafc;
  --app-gray-100: #f1f5f9;
  --app-gray-200: #e2e8f0;
  --app-gray-300: #cbd5e1;
  --app-gray-400: #94a3b8;
  --app-gray-500: #64748b;
  --app-gray-600: #475569;
  --app-gray-700: #334155;
  --app-gray-800: #1e293b;
  --app-gray-900: #0f172a;
  --app-success: #166534;
  --app-warning: #d97706;
  --app-error: #b91c1c;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 6px 12px -2px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Base - full viewport
   ============================================ */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
  box-sizing: border-box;
}

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

body.app-modern {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--app-gray-800);
  background: linear-gradient(165deg, var(--app-gray-50) 0%, #eef4fc 50%, var(--app-gray-100) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Header - full width
   ============================================ */
.app-header {
  width: 100%;
  background: var(--app-white);
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--app-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.app-header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.app-logo a {
  display: block;
  line-height: 0;
}

.app-logo img {
  height: 88px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
}

.app-header-contact {
  font-size: 1.5625rem;
  font-weight: 600;
  color: var(--app-gray-700);
}

.app-header-contact a {
  color: var(--app-primary);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.app-header-contact a:hover {
  background: var(--app-primary-subtle);
  color: var(--app-primary-dark);
}

/* ============================================
   Sliding news ticker (below logo, above menu)
   ============================================ */
.app-news-ticker-wrap {
  width: 100%;
  background: #fef2f2;
  color: #7f1d1d;
  overflow: hidden;
  border-bottom: 1px solid #fecaca;
}

.app-news-ticker {
  overflow: hidden;
  padding: 0.5rem 0;
}

.app-news-ticker__content {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 100%;
  white-space: nowrap;
  animation: app-ticker-scroll 45s linear infinite;
}

.app-news-ticker__content:hover {
  animation-play-state: paused;
}

.app-news-ticker__label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #7f1d1d;
  flex-shrink: 0;
}

.app-news-ticker__item {
  font-size: 1.25rem;
  font-weight: 500;
  color: #991b1b;
}

.app-news-ticker__sep {
  font-size: 0.75rem;
  color: #b91c1c;
  opacity: 0.8;
}

@keyframes app-ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   Navigation - full width
   ============================================ */
.app-nav-wrap {
  width: 100%;
  background: var(--app-primary);
  box-shadow: var(--shadow-md);
}

.app-nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.app-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.app-nav > li {
  position: relative;
}

.app-nav > li > a {
  display: block;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.98);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  transition: background 0.2s, color 0.2s;
}

.app-nav > li > a:hover,
.app-nav > li.active > a {
  background: var(--app-accent);
  color: var(--app-white);
}

/* Dropdown */
.app-nav .dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--app-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--app-gray-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1001;
}

.app-nav > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.app-nav .dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--app-gray-800);
  text-decoration: none;
  font-size: 1.4375rem;
  font-weight: 600;
  border-bottom: 1px solid var(--app-gray-100);
  transition: background 0.15s, color 0.15s;
}

.app-nav .dropdown-menu li:last-child a {
  border-bottom: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.app-nav .dropdown-menu li a:hover {
  background: var(--app-gray-50);
  color: var(--app-primary);
}

/* ============================================
   Main content - full width with constrained content
   ============================================ */
.app-main {
  flex: 1;
  width: 100%;
  padding: 0 0 3rem;
  overflow-x: hidden;
}

.app-container {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

/* ============================================
   Hero - full viewport width, content centered
   ============================================ */
.app-hero {
  width: 100%;
  margin: 0 0 2.5rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
  color: var(--app-white);
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.app-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.app-hero p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  opacity: 0.98;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.app-hero .app-btn {
  margin-top: 1.75rem;
}

/* ============================================
   Cards (portal-style) - unified styling
   ============================================ */
.app-card {
  background: var(--app-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.75rem 2.5rem;
  margin-bottom: 2.5rem;
  border-top: 5px solid var(--app-primary);
}

.app-card-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--app-gray-200);
}

.app-card-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--app-primary);
}

.app-card-header .subtitle {
  margin: 0.4rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--app-gray-600);
}

/* Registration / process list - better readability */
.app-card .content {
  padding: 0.25rem 0;
}

.app-process-list {
  margin: 0;
  padding-left: 1.75rem;
  color: var(--app-gray-800);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 2;
}

.app-process-list li {
  margin-bottom: 0.5rem;
}

.app-process-list li:last-child {
  margin-bottom: 0;
}

.app-process-list a {
  color: var(--app-primary);
  font-weight: 700;
}

.app-process-list a:hover {
  color: var(--app-accent);
  text-decoration: underline;
}

/* Feature cards grid */
.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.app-feature-card {
  background: var(--app-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  border-top: 5px solid var(--app-primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.app-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
  color: inherit;
}

.app-feature-card.app-feature-card--secondary {
  border-top-color: var(--app-secondary);
}

.app-feature-card.app-feature-card--accent {
  border-top-color: var(--app-accent);
}

.app-feature-card h3,
.app-feature-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--app-primary);
  line-height: 1.3;
}

.app-feature-card p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--app-gray-700);
  line-height: 1.65;
  flex: 1;
}

.app-feature-card .app-btn {
  margin-top: 1.25rem;
  align-self: flex-start;
}

/* ============================================
   Buttons
   ============================================ */
.app-btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-sans);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.app-btn--primary {
  background: var(--app-primary);
  color: var(--app-white);
  box-shadow: 0 2px 8px rgba(26, 35, 126, 0.3);
}

.app-btn--primary:hover {
  background: var(--app-primary-dark);
  color: var(--app-white);
  box-shadow: 0 4px 12px rgba(26, 35, 126, 0.4);
}

.app-btn--secondary {
  background: var(--app-secondary);
  color: var(--app-white);
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.3);
}

.app-btn--secondary:hover {
  background: var(--app-secondary-dark);
  color: var(--app-white);
}

.app-btn--accent {
  background: var(--app-accent);
  color: var(--app-white);
}

.app-btn--accent:hover {
  background: var(--app-accent-dark);
  color: var(--app-white);
}

.app-btn:active {
  transform: scale(0.98);
}

/* ============================================
   Intro / Home intro block - unified with cards
   ============================================ */
.app-intro {
  background: var(--app-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  border-left: 5px solid var(--app-primary);
}

.app-intro p {
  margin: 0;
  font-size: 1.6875rem;
  font-weight: 600;
  color: var(--app-gray-800);
  line-height: 1.65;
}

/* ============================================
   Content sections (legacy compatibility)
   ============================================ */
.app-main .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.app-main .page-top,
.app-main .breadcrumb-wrap {
  background: var(--app-primary);
  color: var(--app-white);
  padding: 1.25rem 1.5rem;
  margin: -2rem -1.5rem 2rem -1.5rem;
}

.app-main .page-top h1,
.app-main .breadcrumb-wrap h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.app-main .featured-box {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--app-primary);
  transition: transform 0.2s;
}

.app-main .featured-box:hover {
  transform: translateY(-2px);
}

.app-main .featured-box-tertiary {
  border-top-color: var(--app-secondary);
}

.app-main .featured-box-primary {
  border-top-color: var(--app-primary);
}

.app-main .featured-box-secundary {
  border-top-color: var(--app-accent);
}

.app-main .featured-box h4 a {
  color: var(--app-primary);
  text-decoration: none;
}

.app-main .featured-box h4 a:hover {
  color: var(--app-primary-dark);
}

/* ============================================
   Page header (inner pages e.g. PTS result)
   ============================================ */
.app-page-header {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.app-page-header h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--app-primary);
}

.app-page-header__sub {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--app-gray-600);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Alerts / validation messages */
.app-alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 500;
}

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

/* Form card and form elements */
.app-card--form .app-card-body {
  padding-top: 0.5rem;
}

.app-form-group {
  margin-bottom: 1.5rem;
}

.app-label {
  display: block;
  font-size: 1.4375rem;
  font-weight: 600;
  color: var(--app-gray-800);
  margin-bottom: 0.5rem;
}

.app-required {
  color: var(--app-accent);
}

.app-input {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 0.875rem 1.25rem;
  font-size: 1.3125rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--app-gray-800);
  background: var(--app-white);
  border: 2px solid var(--app-gray-200);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-input:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-subtle);
}

.app-input::placeholder {
  color: var(--app-gray-400);
}

.app-select {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 0.875rem 1.25rem;
  font-size: 1.3125rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--app-gray-800);
  background: var(--app-white);
  border: 2px solid var(--app-gray-200);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-select:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-subtle);
}

/* Ensure dynamically loaded selects (e.g. Department) match other fields */
.app-form .app-select,
.app-form select,
.app-card--form .app-select,
.app-card--form select {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 0.875rem 1.25rem;
  font-size: 1.3125rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--app-gray-800);
  background: var(--app-white);
  border: 2px solid var(--app-gray-200);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-form select:focus,
.app-card--form select:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-subtle);
}

.app-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 2.5rem;
}

.app-form-col {
  min-width: 0;
}

/* Step progress indicator (e.g. Step 1 of 3) */
.app-step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  max-width: 600px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(26, 35, 126, 0.07), 0 1px 3px rgba(0,0,0,0.04);
  gap: 0;
  counter-reset: step-counter;
}
.app-step-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
  min-width: 80px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-gray-400);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  counter-increment: step-counter;
}
.app-step-bar__item::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--app-gray-100);
  color: var(--app-gray-400);
  border: 2.5px solid var(--app-gray-200);
  transition: all 0.25s;
}
.app-step-bar__item--done {
  color: var(--app-primary);
}
.app-step-bar__item--done::before {
  content: "\2713";
  background: var(--app-primary);
  color: #fff;
  border-color: var(--app-primary);
  font-size: 1.05rem;
}
.app-step-bar__item--current {
  color: var(--app-primary);
}
.app-step-bar__item--current::before {
  background: #fff;
  color: var(--app-primary);
  border-color: var(--app-primary);
  box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.12);
}
.app-step-bar__connector {
  flex: 1;
  height: 3px;
  min-width: 30px;
  max-width: 80px;
  background: var(--app-gray-200);
  border-radius: 2px;
  margin: 0 2px;
  margin-bottom: 22px;
  transition: background 0.25s;
}
.app-step-bar__connector--done {
  background: var(--app-primary);
}
.app-step-bar__sep { display: none; }
@media (max-width: 480px) {
  .app-step-bar { padding: 1rem 0.75rem; gap: 0; }
  .app-step-bar__item { min-width: 60px; font-size: 0.7rem; }
  .app-step-bar__item::before { width: 32px; height: 32px; font-size: 0.85rem; }
  .app-step-bar__connector { min-width: 18px; margin-bottom: 18px; }
}

.app-form-actions {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--app-gray-200);
}
.app-form-actions .app-btn--submit {
  min-width: 12rem;
}

.app-form-actions--with-back {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.app-btn--submit {
  padding: 0.875rem 2rem;
  font-size: 1.25rem;
}

.app-help-text {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--app-gray-200);
}

.app-help-text p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--app-gray-600);
}

.app-help-text a {
  color: var(--app-primary);
  font-weight: 700;
}

/* Two-column layout: main content + sidebar (e.g. start application) */
.app-layout-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.app-layout-two-col__main {
  min-width: 0;
}

.app-layout-two-col__aside {
  min-width: 0;
}

.app-card__intro {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--app-gray-700);
}

.app-photo-preview {
  margin-top: 0.75rem;
}
.app-photo-preview__img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--app-gray-200);
}

.app-card--nested {
  margin-top: 1.25rem;
  border: 1px solid var(--app-gray-200);
}

.app-olevel-fieldset {
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--app-gray-200);
}

.app-olevel-legend {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--app-gray-800);
  margin-bottom: 0.75rem;
  display: block;
}

.app-olevel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.app-olevel-table th,
.app-olevel-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--app-gray-200);
  vertical-align: middle;
}

.app-olevel-table th {
  background: var(--app-gray-100);
  font-weight: 600;
  color: var(--app-gray-800);
}

.app-select--inline {
  min-width: 0;
  width: 100%;
  max-width: 180px;
}

/* Support page – contact info (larger text) */
.app-support-contact__intro {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--app-gray-800);
}

.app-support-contact__phone {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--app-primary);
}

.app-support-contact__email {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.app-support-contact__email a {
  color: var(--app-primary);
}

/* ============================================
   Footer
   ============================================ */
.app-footer {
  width: 100%;
  background: var(--app-white);
  border-top: 2px solid var(--app-gray-200);
  padding: 1.5rem 1.5rem;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.app-footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.app-footer p {
  margin: 0;
  font-size: 1.4375rem;
  font-weight: 600;
  color: var(--app-gray-700);
}

.app-footer a {
  color: var(--app-primary);
  text-decoration: none;
  font-weight: 600;
}

.app-footer a:hover {
  text-decoration: underline;
}

.app-footer__powered {
  margin-top: 0.5rem !important;
  font-size: 1.0625rem !important;
  font-weight: 500 !important;
  color: var(--app-gray-500) !important;
}

.app-footer__powered a {
  color: var(--app-primary);
}

/* ============================================
   Utility & overrides
   ============================================ */
.app-main h2.short,
.app-main h2 {
  color: var(--app-primary);
  font-weight: 800;
}

.app-main a:not(.app-btn):not(.app-feature-card) {
  color: var(--app-primary);
  font-weight: 700;
}

.app-main a:not(.app-btn):not(.app-feature-card):hover {
  color: var(--app-accent);
}

.app-main hr.tall {
  border: none;
  border-top: 2px solid var(--app-gray-200);
  margin: 2rem 0;
}

.app-main .lead {
  font-size: 1.5rem;
  color: var(--app-gray-700);
}

/* Homepage PTS button - use accent */
.app-main .btn-pts-result,
.app-btn--success {
  background: var(--app-secondary);
  color: var(--app-white);
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
}

.app-main .btn-pts-result:hover,
.app-btn--success:hover {
  background: var(--app-secondary-dark);
  color: var(--app-white);
  transform: scale(1.02);
}

/* ============================================
   Responsive - tablet
   ============================================ */
@media (max-width: 992px) {
  .app-header-inner,
  .app-nav-inner,
  .app-container,
  .app-footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .app-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .app-hero {
    padding: 3rem 1.25rem;
  }
  .app-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
  }
  .app-cards-grid {
    gap: 1.5rem;
  }
  .app-layout-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   Responsive - mobile
   ============================================ */
@media (max-width: 768px) {
  .app-news-ticker__label,
  .app-news-ticker__item {
    font-size: 1.0625rem;
  }
  .app-news-ticker__content {
    gap: 1rem;
    animation-duration: 35s;
  }
  .app-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  .app-logo img {
    height: 56px;
    max-width: 200px;
  }
  .app-header-contact a {
    padding: 0.5rem 0.65rem;
    font-size: 1.25rem;
    font-weight: 700;
  }
  .app-nav-wrap {
    padding: 0;
  }
  .app-nav-inner {
    padding: 0;
  }
  .app-nav {
    flex-direction: column;
    width: 100%;
  }
  .app-nav > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .app-nav > li:last-child {
    border-bottom: none;
  }
  .app-nav > li > a {
    padding: 0.875rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .app-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--app-gray-200);
    display: none;
    background: rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  .app-nav .dropdown-menu li a {
    padding: 0.75rem 1rem 0.75rem 2rem;
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .app-nav .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--app-white);
  }
  .app-nav > li:hover .dropdown-menu,
  .app-nav > li:focus-within .dropdown-menu {
    display: block;
  }
  .app-main {
    padding: 0 1rem 2rem;
  }
  .app-container {
    padding: 0;
  }
  .app-hero {
    padding: 2.5rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .app-hero__inner {
    max-width: 100%;
  }
  .app-hero h1 {
    font-size: 1.65rem;
    font-weight: 800;
  }
  .app-hero p {
    font-size: 1.1rem;
    font-weight: 600;
  }
  .app-hero .app-btn {
    margin-top: 1.25rem;
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .app-intro {
    padding: 1.25rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
  }
  .app-intro p {
    font-size: 1.375rem;
    font-weight: 600;
  }
  .app-card {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
  }
  .app-card-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
  }
  .app-card-header .subtitle {
    font-size: 1.25rem;
    font-weight: 600;
  }
  .app-process-list {
    padding-left: 1.25rem;
    font-size: 1.3125rem;
    font-weight: 500;
    line-height: 1.85;
  }
  .app-page-header h1 {
    font-size: 1.5rem;
  }
  .app-page-header__sub {
    font-size: 1.125rem;
  }
  .app-input,
  .app-select {
    max-width: 100%;
  }
  .app-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .app-layout-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .app-label {
    font-size: 1.25rem;
  }
  .app-btn--submit {
    width: 100%;
  }
  .app-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0;
  }
  .app-feature-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
    min-height: auto;
  }
  .app-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
  }
  .app-feature-card p {
    font-size: 1.3125rem;
    font-weight: 500;
  }
  .app-feature-card .app-btn {
    margin-top: 1rem;
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }
  .app-btn {
    min-height: 44px;
    min-width: 44px;
  }
  .app-footer {
    padding: 1.25rem 1rem;
  }
  .app-footer p {
    font-size: 1.1875rem;
    font-weight: 600;
  }
}

/* ============================================
   Responsive - small phones
   ============================================ */
@media (max-width: 480px) {
  .app-header-inner {
    padding: 0.6rem 0.75rem;
  }
  .app-logo img {
    height: 48px;
    max-width: 180px;
  }
  .app-main {
    padding: 0 0.75rem 1.5rem;
  }
  .app-hero {
    padding: 2rem 0.75rem;
    margin-bottom: 1.25rem;
  }
  .app-hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
  }
  .app-intro,
  .app-card {
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
  }
  .app-feature-card {
    padding: 1.25rem 1rem;
  }
  .app-feature-card .app-btn {
    padding: 0.75rem 1rem;
  }
}

/* Inline field validation errors */
.app-field-error {
  display: block;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.3;
}
.app-input--error,
select.app-input--error,
input.app-input--error,
.app-select.app-input--error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,.12) !important;
}
#js-validation-errors {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
#js-validation-errors strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
#js-validation-errors ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
#js-validation-errors li {
  margin-bottom: 2px;
}
