/* ============================================
   PreCheckd Design System
   Dark Navy: #1F363C
   Bright Green: #2ECC71
   ============================================ */

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

/* Typography & Base */
html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: #1F363C;
  color: #F2F4F3;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: #F2F4F3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.625rem; }
h5 { font-size: 1.125rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: #C7D1CF; }
a { color: #2ECC71; text-decoration: none; transition: color 0.2s; }
a:hover { color: #4ADE80; }

/* Header, nav, and footer: the site's actual header/footer markup (see
   views/layouts/main.ejs) uses .header-logo/.nav-btn-outline/.footer-section
   etc., styled by layout's own <style> block, not by a bare `header`,
   `footer`, `.logo`, or `nav a` selector. This file used to also define
   `header`/`footer`/`.header-container`/`.footer-container`/`.footer-section`
   with different values than the layout, which both loaded on every page
   and fought over the same properties — removed in favor of one source of
   truth (the layout) for the chrome that's actually on every page. */

/* Containers & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background: #2A4750;
  padding: 4rem 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: #2ECC71;
  color: #1F363C;
}

.btn-primary:hover {
  background: #4ADE80;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #5C7278;
  color: #B9C7CA;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: #F2F4F3;
  border: 2px solid #4A6F7B;
}

.btn-secondary:hover {
  background: #2A4750;
  color: #F2F4F3;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background: #2A4750;
  border: 1px solid #3B5860;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  transform: translateY(-4px);
}

.card h3, .card h4 {
  color: #F2F4F3;
}

.card p {
  color: #C7D1CF;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #E8EBEA;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #4A6F7B;
  border-radius: 6px;
  background: #24404A;
  color: #F2F4F3;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #7A9096;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2ECC71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.form-error {
  background: #3A2020;
  border-left: 4px solid #E53E3E;
  color: #FF8A8A;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-error.hidden {
  display: none;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #24404A;
  border: 1px solid #3B5860;
  color: #4ADE80;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge::before {
  content: '✓';
  font-weight: bold;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1F363C 0%, #13252A 100%);
  color: white;
  padding: 6rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #3B5860;
}

.hero h1 {
  color: #F2F4F3;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  color: #C7D1CF;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }

/* Icon utility (for inline SVG icons replacing emoji) */
.icon {
  display: inline-flex;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
  color: #4ADE80;
}

.icon svg {
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 2rem 1.5rem; }
  nav a { margin-left: 1rem; font-size: 0.875rem; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in { animation: fadeIn 0.5s ease-out; }
.slide-in-up { animation: slideInUp 0.5s ease-out; }
/* Legal / long-form content pages (terms.ejs, privacy.ejs): both pages
   had this exact layout and typography treatment duplicated byte-for-byte
   in their own <style> blocks. Wrap page content in <div class="legal-page">
   to use it instead of redefining it per page. */
.legal-page {
  padding: 3rem 1.5rem 5rem;
  max-width: 800px;
  margin: 0 auto;
  color: #C7D1CF;
  line-height: 1.7;
}

.legal-page .page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #F2F4F3;
  margin-bottom: 0.5rem;
}

.legal-page .updated-date {
  font-size: 0.9rem;
  color: #8FA6AC;
  margin-bottom: 2.5rem;
}

.legal-page .content-card {
  background: #2A4750;
  border: 1px solid #3B5860;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.2);
}

.legal-page h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #F2F4F3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page h2:first-child {
  margin-top: 0;
}

.legal-page p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-page ul {
  margin: 0 0 1rem 1.25rem;
  font-size: 0.95rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page a {
  color: #4ADE80;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page strong {
  color: #F2F4F3;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 2rem 1rem 3rem;
  }

  .legal-page .content-card {
    padding: 1.5rem;
  }

  .legal-page .page-title {
    font-size: 1.75rem;
  }
}

/* ============================================
   Video Recorder Widget (shared)
   Used by: candidate interview-videos page,
   recruiter intro-video page.
   ============================================ */

.video-recorder {
  width: 100%;
}

.vr-widget {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vr-video {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  background: #0E1B1E;
  border-radius: 8px;
  border: 1px solid #3B5860;
  object-fit: cover;
}

.vr-status {
  font-size: 0.85rem;
  color: #8FA6AC;
  min-height: 1.2em;
}

.vr-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.vr-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: auto;
  transition: background 0.2s;
}

.vr-btn-record,
.vr-btn-upload {
  background: #2ECC71;
  color: #1F363C;
}

.vr-btn-record:hover,
.vr-btn-upload:hover:not(:disabled) {
  background: #4ADE80;
}

.vr-btn-stop {
  background: #E53E3E;
  color: #F2F4F3;
}

.vr-btn-stop:hover {
  background: #FF6B6B;
}

.vr-btn-rerecord {
  background: transparent;
  color: #C7D1CF;
  border: 1px solid #4A6F7B;
}

.vr-btn-rerecord:hover {
  background: #24404A;
  color: #F2F4F3;
}

.vr-btn-upload:disabled {
  background: #5C7278;
  color: #B9C7CA;
  cursor: not-allowed;
}
