/* ============================================================
   Parris Image — Intake System Stylesheet
   Brand: Orange #FF5C45, Pure Black, Pure White
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&f[]=plus-jakarta-sans@400,500,600,700&display=swap');

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:       #FF5C45;
  --orange-dk:    #E04030;
  --orange-lt:    #FFF2F0;
  --charcoal:     #000000;
  --slate:        #222222;
  --mid:          #666666;
  --light:        #F7F7F7;
  --border:       #E4E4E4;
  --white:        #FFFFFF;
  --success:      #2D7D46;
  --error:        #C0392B;
  --warning:      #D4860A;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.18);
  --radius:       8px;
  --radius-lg:    16px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Satoshi', system-ui, sans-serif;
  --max-width:    860px;
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }

p { color: var(--slate); }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dk); text-decoration: underline; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.site-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.header-right {
  font-size: 0.8rem;
  color: var(--mid);
  text-align: right;
}
.header-right a { color: var(--orange); font-weight: 500; }

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  color: var(--white);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,98,26,0.18) 0%, transparent 60%);
}
.page-hero h1 { color: var(--white); position: relative; }
.page-hero h1 span { color: var(--orange); }
.page-hero p {
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 1rem auto 0;
  font-size: 0.95rem;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(232,98,26,0.2);
  border: 1px solid rgba(232,98,26,0.4);
  color: #F5A87A;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
  position: relative;
}

/* ── Progress Bar ──────────────────────────────────────────── */
.progress-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 70px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.progress-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.progress-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(14px + 2rem);
  right: calc(14px + 2rem);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mid);
  transition: all var(--transition);
  margin-bottom: 4px;
}
.step-item.active .step-dot {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
  box-shadow: 0 0 0 4px rgba(232,98,26,0.15);
}
.step-item.done .step-dot {
  border-color: var(--success);
  background: var(--success);
  color: white;
}
.step-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
  font-weight: 500;
  text-align: center;
}
.step-item.active .step-label { color: var(--orange); }
.step-item.done .step-label { color: var(--success); }

/* ── Form Container ────────────────────────────────────────── */
.form-container {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem 4rem;
}

.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: none;
}
.form-section.active { display: block; }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.section-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.section-header p {
  font-size: 0.85rem;
  color: var(--mid);
  margin: 0;
}

/* ── Form Fields ───────────────────────────────────────────── */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}
.field-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.field-grid.full  { grid-template-columns: 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field.span-2 { grid-column: span 2; }
.field.span-3 { grid-column: span 3; }

label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-top: 0.25rem;
}
label .req { color: var(--orange); margin-left: 2px; }
label .opt {
  color: var(--mid);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  margin-left: 4px;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=password],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,98,26,0.12);
}
input::placeholder, textarea::placeholder { color: #AAAAAA; }

textarea { resize: vertical; min-height: 100px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }

.field-hint {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 3px;
}
.field-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 3px;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}
.field.has-error .field-error { display: block; }

/* ── Checkbox / Radio Groups ───────────────────────────────── */
.check-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.check-pill, .radio-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--slate);
  transition: all var(--transition);
  user-select: none;
  background: var(--white);
}
.check-pill:hover, .radio-pill:hover { border-color: var(--orange); color: var(--orange); }
.check-pill input, .radio-pill input { display: none; }
.check-pill.selected, .radio-pill.selected {
  border-color: var(--orange);
  background: var(--orange-lt);
  color: var(--orange-dk);
  font-weight: 500;
}

/* ── Password Field Toggle ─────────────────────────────────── */
.password-wrap {
  position: relative;
}
.password-wrap input { padding-right: 40px; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid);
  padding: 4px;
  font-size: 0.9rem;
}

/* ── Upload Zone ───────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--light);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--orange);
  background: var(--orange-lt);
}
.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.upload-zone p { font-size: 0.85rem; margin: 0; color: var(--mid); }
.upload-zone strong { color: var(--orange); }

.file-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.82rem;
}
.file-item .file-icon { font-size: 1.1rem; }
.file-item .file-name { flex: 1; color: var(--slate); }
.file-item .file-size { color: var(--mid); font-size: 0.75rem; }
.file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--error);
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
}

/* ── Account Access Section ────────────────────────────────── */
.account-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.add-row-btn {
  background: none;
  border: 1.5px dashed var(--orange);
  color: var(--orange);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  margin-top: 8px;
}
.add-row-btn:hover { background: var(--orange-lt); }
.remove-row-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--error);
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Callout / Info Boxes ──────────────────────────────────── */
.callout {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.callout-info  { background: #EFF6FF; border-left: 3px solid #3B82F6; color: #1E40AF; }
.callout-warn  { background: #FFFBEB; border-left: 3px solid var(--warning); color: #92400E; }
.callout-secure { background: #F0FDF4; border-left: 3px solid var(--success); color: #14532D; }
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Navigation Buttons ────────────────────────────────────── */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--orange);
  color: white;
  text-decoration: none;
}
.btn-primary:hover { background: var(--orange-dk); color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,92,69,0.3); text-decoration: none; }
.btn-secondary {
  background: var(--white);
  color: var(--slate);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost {
  background: transparent;
  color: var(--mid);
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--charcoal); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #A93226; }

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

/* ── Save Indicator ────────────────────────────────────────── */
.autosave-badge {
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.4s;
}
.autosave-badge.show { opacity: 1; }

/* ── Thank You / Confirmation ──────────────────────────────── */
.confirm-card {
  max-width: 600px;
  margin: 4rem auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.confirm-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.confirm-card h2 { margin-bottom: 0.75rem; }
.confirm-card p { color: var(--mid); margin-bottom: 1.5rem; }

/* ── Admin Styles ──────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: #000000;
  color: white;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 1.5rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.admin-nav a:hover { color: white; background: rgba(255,255,255,0.06); }
.admin-nav a.active { color: white; background: rgba(232,98,26,0.25); border-right: 3px solid var(--orange); }
.admin-nav .nav-group-label {
  padding: 12px 1.5rem 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
}
.admin-main { background: var(--light); overflow-y: auto; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.admin-content { padding: 2rem; }

/* ── Dashboard Cards ───────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-card .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  font-weight: 600;
  margin-bottom: 6px;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1;
}
.stat-card .stat-sub {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 4px;
}
.stat-card.accent { border-left: 4px solid var(--orange); }

/* ── Data Table ────────────────────────────────────────────── */
.data-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.table-toolbar input[type=search] {
  width: 260px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
}
.table-toolbar input[type=search]:focus { border-color: var(--orange); outline: none; }

table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead { background: var(--light); }
th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 16px;
  color: var(--slate);
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--light); }
td a { color: var(--orange); font-weight: 500; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-new     { background: #DBEAFE; color: #1D4ED8; }
.badge-active  { background: #D1FAE5; color: #065F46; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-done    { background: #E9D5FF; color: #5B21B6; }

/* ── Login Page ────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  background-image: radial-gradient(ellipse at 30% 70%, rgba(255,92,69,0.10) 0%, transparent 55%);
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.login-card .logo { margin-bottom: 2rem; display: flex; align-items: center; gap: 12px; }
.login-card h2 { margin-bottom: 0.3rem; font-size: 1.5rem; }
.login-card p { font-size: 0.85rem; color: var(--mid); margin-bottom: 1.5rem; }

/* ── Submission Detail ─────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.detail-section h4 {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.detail-row { display: flex; gap: 8px; margin-bottom: 8px; font-size: 0.875rem; }
.detail-label { color: var(--mid); min-width: 140px; flex-shrink: 0; }
.detail-value { color: var(--charcoal); }
.detail-value a { color: var(--orange); word-break: break-all; }

/* ── Alert Messages ────────────────────────────────────────── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .field-grid { grid-template-columns: 1fr; }
  .field-grid.three { grid-template-columns: 1fr; }
  .field.span-2, .field.span-3 { grid-column: span 1; }
  .form-section { padding: 1.5rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .progress-steps { gap: 0; }
  .step-label { display: none; }
  .account-row { grid-template-columns: 1fr 1fr; }
  /* Stack upload zones vertically on mobile */
  .upload-grid-3 { grid-template-columns: 1fr !important; }
}