/* EAC Partner Portal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a5276;
  --blue2:   #2980b9;
  --blue-lt: #d6eaf8;
  --green:   #1e8449;
  --red:     #c0392b;
  --gray1:   #f4f6f9;
  --gray2:   #e8ecf0;
  --gray3:   #b0bec5;
  --text:    #1c2833;
  --text2:   #566573;
  --sidebar: 220px;
  --radius:  10px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--gray1); }
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Login ──────────────────────────────────────────────────── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: linear-gradient(135deg, #0d2b45 0%, #1a5276 60%, #2980b9 100%); }

.login-wrap { width: 100%; max-width: 420px; padding: 24px; }

.login-box { background: #fff; border-radius: var(--radius); padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25); }

.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--blue); font-weight: 700; font-size: 14px; }
.login-box h1 { font-size: 22px; color: var(--blue); margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--text2); margin-bottom: 24px; }
.login-help { text-align: center; font-size: 12px; color: var(--text2); margin-top: 20px; }

/* ── App layout ─────────────────────────────────────────────── */
.app-page { display: flex; min-height: 100vh; }

.sidebar { width: var(--sidebar); background: var(--blue); color: #fff; display: flex; flex-direction: column;
  padding: 24px 0; position: fixed; top: 0; left: 0; height: 100vh; }

.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 0 20px 24px;
  font-weight: 700; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.15); }

.sidebar-nav { list-style: none; padding: 16px 0; flex: 1; }
.sidebar-nav li a { display: block; padding: 9px 20px; font-size: 14px; color: rgba(255,255,255,.8);
  border-left: 3px solid transparent; transition: all .15s; }
.sidebar-nav li a:hover, .sidebar-nav li.active a { color: #fff; background: rgba(255,255,255,.1);
  border-left-color: #aed6f1; text-decoration: none; }
.sidebar-sep { height: 1px; background: rgba(255,255,255,.15); margin: 8px 20px; }

.sidebar-user { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.15); }
.sidebar-user__name { font-weight: 700; font-size: 13px; }
.sidebar-user__company { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }

.main-content { margin-left: var(--sidebar); flex: 1; padding: 32px 40px; max-width: 900px; }

.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 24px; color: var(--blue); }
.page-sub { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* ── Stats ──────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

.stat-card { background: #fff; border-radius: var(--radius); padding: 24px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); border: 1px solid var(--gray2); }
.stat-card--highlight { border-top: 3px solid var(--blue2); }
.stat-card__value { font-size: 36px; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-card__label { font-size: 12px; color: var(--text2); margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; }

/* ── Info card ──────────────────────────────────────────────── */
.info-card { background: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); border: 1px solid var(--gray2); }
.info-card h2 { font-size: 15px; color: var(--blue); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--gray2); }

.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table tr td { padding: 8px 0; vertical-align: top; }
.info-table tr td:first-child { color: var(--text2); width: 160px; }
.info-table tr + tr td { border-top: 1px solid var(--gray2); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-active { background: #d5f5e3; color: var(--green); }

.how-it-works { padding-left: 20px; font-size: 14px; line-height: 1.8; color: var(--text2); }
.how-it-works li + li { margin-top: 6px; }

/* ── Form card ──────────────────────────────────────────────── */
.form-card { background: #fff; border-radius: var(--radius); padding: 28px 32px; max-width: 480px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); border: 1px solid var(--gray2); }

/* ── Shared form elements ───────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--text2); }
.field input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray2); border-radius: 6px;
  font-size: 14px; color: var(--text); transition: border-color .15s; }
.field input:focus { outline: none; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(41,128,185,.15); }

.btn { display: inline-block; padding: 11px 22px; border-radius: 6px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; transition: all .15s; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue2); color: #fff; text-decoration: none; }
.btn-ghost { color: var(--text2); background: transparent; margin-left: 8px; }
.btn-ghost:hover { color: var(--text); text-decoration: none; }
.btn-block { display: block; width: 100%; margin-top: 8px; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; }
.alert-error   { background: #fdf2f2; color: var(--red);   border: 1px solid #f5c6cb; }
.alert-success { background: #d5f5e3; color: var(--green); border: 1px solid #a9dfbf; }

/* ── Apply page ─────────────────────────────────────────────── */
.apply-page { align-items: flex-start; padding: 32px 24px; }
.apply-wrap { width: 100%; max-width: 640px; margin: 0 auto; }
.apply-box { background: #fff; border-radius: var(--radius); padding: 36px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2); }
.apply-box h1 { font-size: 22px; color: var(--blue); margin-bottom: 4px; }
.apply-pitch { background: var(--blue-lt); border-radius: 6px; padding: 12px 16px;
  font-size: 13px; color: var(--blue); margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--multicheck .checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 5px; font-size: 13px;
  font-weight: 400; color: var(--text); cursor: pointer; }
.check input { margin: 0; }
.eac-consent { margin-bottom: 16px; font-size: 13px; }
.eac-consent label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-weight: 400; }
.eac-consent input { margin-top: 2px; flex-shrink: 0; }

@media (max-width: 768px) {
  .app-page { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .sidebar-nav { display: flex; padding: 0; }
  .sidebar-nav li a { padding: 8px 12px; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar-nav li.active a { border-left-color: transparent; border-bottom-color: #aed6f1; }
  .main-content { margin-left: 0; padding: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
}
