/* VS Trial Counsel — Intake Stylesheet
   Brand: Deep blue (#1F3A93), accent gold (#C9A14A), clean serif/sans pairing.
*/

:root {
  --vstc-blue: #1F3A93;
  --vstc-blue-dark: #14266B;
  --vstc-blue-light: #E8EDF8;
  --vstc-gold: #C9A14A;
  --vstc-bg: #FAFAFA;
  --vstc-surface: #FFFFFF;
  --vstc-border: #E2E5EC;
  --vstc-text: #1A1F2C;
  --vstc-text-muted: #5A6275;
  --vstc-error: #B3261E;
  --vstc-success: #2E7D32;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(20,38,107,0.05);
  --shadow-md: 0 4px 16px rgba(20,38,107,0.08);
  --shadow-lg: 0 12px 40px rgba(20,38,107,0.12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  background: var(--vstc-bg);
  color: var(--vstc-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--vstc-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---------- Site header ---------- */
.site-header {
  background: var(--vstc-surface);
  border-bottom: 1px solid var(--vstc-border);
  padding: 18px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img.logo {
  height: 38px;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--vstc-blue);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-header nav a {
  color: var(--vstc-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 22px;
}
.site-header nav a:hover { color: var(--vstc-blue); }

.lang-toggle {
  margin-left: 22px;
  background: var(--vstc-blue);
  color: #fff;
  border: 1px solid var(--vstc-blue);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}
.lang-toggle:hover { background: var(--vstc-blue-dark); border-color: var(--vstc-blue-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--vstc-border);
  background: linear-gradient(180deg, #fff 0%, #f5f7fb 100%);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--vstc-blue-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero p {
  color: var(--vstc-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Practice grid ---------- */
.practice-section {
  padding: 56px 0 72px;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--vstc-gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--vstc-blue-dark);
  margin-bottom: 32px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.practice-card {
  background: var(--vstc-surface);
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--vstc-gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}

.practice-card:hover {
  border-color: var(--vstc-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.practice-card:hover::before { transform: scaleY(1); transform-origin: top; }

.practice-card .icon {
  font-size: 1.7rem;
  margin-bottom: 12px;
  line-height: 1;
}

.practice-card .title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--vstc-blue-dark);
  margin-bottom: 6px;
}

.practice-card .description {
  color: var(--vstc-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.practice-card .cta {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vstc-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.practice-card .cta::after { content: '→'; transition: transform 0.18s ease; }
.practice-card:hover .cta::after { transform: translateX(4px); }

/* ---------- Form pages ---------- */
.form-wrapper {
  max-width: 820px;
  margin: 32px auto 60px;
  padding: 0 24px;
}

.form-header {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vstc-text-muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.back-link:hover { color: var(--vstc-blue); }

.form-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--vstc-blue-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-header .form-icon {
  font-size: 2rem;
  vertical-align: middle;
  margin-right: 10px;
}

.form-header p {
  color: var(--vstc-text-muted);
  max-width: 720px;
}

.confidential-banner {
  background: var(--vstc-blue-light);
  border: 1px solid var(--vstc-blue);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0 28px;
  font-size: 0.92rem;
  color: var(--vstc-blue-dark);
}
.confidential-banner strong { color: var(--vstc-blue-dark); }

.form-section {
  background: var(--vstc-surface);
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  padding: 28px 28px 12px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.form-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vstc-blue-dark);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vstc-gold);
  display: inline-block;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--vstc-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.field label .req {
  color: var(--vstc-error);
  margin-left: 3px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--vstc-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--vstc-blue);
  box-shadow: 0 0 0 3px rgba(31,58,147,0.12);
}

.field .radio-group,
.field .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-top: 4px;
}

.field .radio-group label,
.field .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.92rem;
  margin: 0;
  cursor: pointer;
  color: var(--vstc-text);
}

.field .radio-group input,
.field .checkbox-group input { margin: 0; cursor: pointer; }

.field.checkbox-inline {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.field.checkbox-inline label {
  font-weight: 400;
  margin: 0;
  font-size: 0.93rem;
  flex: 1;
  line-height: 1.5;
}
.field.checkbox-inline input { margin-top: 4px; }

.file-input-wrap {
  border: 2px dashed var(--vstc-border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  background: #fafbfd;
  transition: border-color 0.15s;
  cursor: pointer;
}
.file-input-wrap:hover { border-color: var(--vstc-blue); }
.file-input-wrap input[type=file] { display: block; margin: 8px auto 0; }
.file-input-wrap .label-text {
  font-size: 0.9rem;
  color: var(--vstc-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  letter-spacing: 0.005em;
}

.btn-primary {
  background: var(--vstc-blue);
  color: #fff;
  border-color: var(--vstc-blue);
}
.btn-primary:hover { background: var(--vstc-blue-dark); border-color: var(--vstc-blue-dark); }
.btn-primary:disabled { background: #99a3c5; border-color: #99a3c5; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--vstc-blue);
  border-color: var(--vstc-blue);
}
.btn-secondary:hover { background: var(--vstc-blue-light); }

.btn-gold {
  background: var(--vstc-gold);
  color: #fff;
  border-color: var(--vstc-gold);
}
.btn-gold:hover { background: #b08c3d; border-color: #b08c3d; }

.btn-large { font-size: 1.05rem; padding: 15px 32px; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--vstc-border);
}

.form-status {
  font-size: 0.9rem;
  color: var(--vstc-text-muted);
}

/* ---------- Thank you ---------- */
.thank-you-card {
  max-width: 600px;
  margin: 80px auto;
  background: var(--vstc-surface);
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.thank-you-card .checkmark {
  font-size: 3.4rem;
  color: var(--vstc-success);
  margin-bottom: 20px;
}
.thank-you-card h1 {
  font-family: var(--font-display);
  color: var(--vstc-blue-dark);
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.thank-you-card p {
  color: var(--vstc-text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.thank-you-card .ref {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.85rem;
  background: var(--vstc-blue-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  display: inline-block;
  margin: 16px 0 24px;
  color: var(--vstc-blue-dark);
}

/* ---------- Admin ---------- */
.admin-shell { background: #f4f6fa; min-height: 100vh; }

.admin-header {
  background: var(--vstc-blue-dark);
  color: #fff;
  padding: 14px 0;
}
.admin-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header .brand-text { color: #fff; }
.admin-header img.logo { filter: brightness(0) invert(1); }
.admin-header a { color: #c9d3ec; font-size: 0.85rem; }
.admin-header a:hover { color: #fff; }

.admin-content { padding: 28px 0 60px; }

.admin-card {
  background: #fff;
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--vstc-blue-dark);
  font-weight: 600;
}
.stat-card .lbl { font-size: 0.78rem; color: var(--vstc-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-row input,
.filter-row select {
  padding: 8px 10px;
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data-table th {
  background: var(--vstc-blue-light);
  color: var(--vstc-blue-dark);
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--vstc-border);
}
table.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--vstc-border);
  vertical-align: top;
}
table.data-table tr:hover { background: #f7f9fc; }
table.data-table a { font-weight: 500; }

.status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-new { background: #e3eefe; color: #1f3a93; }
.status-in_review { background: #fff4d6; color: #856300; }
.status-retained { background: #d8f0d8; color: #1f6b29; }
.status-declined { background: #f5d8d4; color: #93231a; }
.status-archived { background: #e8e8e8; color: #555; }

/* Submission detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.detail-section {
  background: #fff;
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.detail-section h3 {
  font-family: var(--font-display);
  color: var(--vstc-blue-dark);
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--vstc-border);
}
.detail-section dl {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 6px 18px;
  font-size: 0.9rem;
}
.detail-section dt {
  color: var(--vstc-text-muted);
  font-weight: 500;
}
.detail-section dd {
  color: var(--vstc-text);
  word-break: break-word;
  white-space: pre-wrap;
}

.login-card {
  max-width: 420px;
  margin: 80px auto;
  background: #fff;
  border: 1px solid var(--vstc-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.login-card h1 {
  font-family: var(--font-display);
  color: var(--vstc-blue-dark);
  margin-bottom: 18px;
}
.error-text { color: var(--vstc-error); font-size: 0.9rem; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 1.7rem; }
  .field-grid { grid-template-columns: 1fr; }
  .form-section { padding: 22px 18px 8px; }
  .site-header nav a { margin-left: 12px; font-size: 0.82rem; }
  .practice-section { padding: 40px 0 56px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .detail-section dl { grid-template-columns: 1fr; }
  .detail-section dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
}

footer.site-footer {
  background: #fff;
  border-top: 1px solid var(--vstc-border);
  padding: 28px 0;
  text-align: center;
  color: var(--vstc-text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}
footer.site-footer p { margin: 4px 0; }
