:root {
  /* Light theme colors */
  --bg-body: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #f3f4f6;
  --accent: #1BA1E2;
  --accent-soft: rgba(27, 161, 226, 0.1);
  --accent-strong: #0078d4;
  --text-main: #323130;
  --text-muted: #605e5c;
  --border-subtle: #edebe9;
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.07);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  color: var(--text-main);
}

/* Layout helpers */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* NEW: optional wider container for specific sections (ex: onboarding form) */
.container-wide {
  width: min(1240px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* When using container-wide, allow the intro to be a bit wider */
.container-wide .section-intro {
  max-width: 980px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.7),
    transparent
  );
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Replace the "E" mark with the ECS logo */
.brand-logo {
  height: 32px;          /* matches old mark height */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Optional: if the logo feels a touch small/big, tweak this */
@media (min-width: 900px) {
  .brand-logo {
    height: 34px;
  }
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: conic-gradient(
    from 220deg,
    #3b82f6,
    #22c55e,
    #a855f7,
    #3b82f6
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.nav a:hover {
  color: var(--text-main);
  background: rgba(27, 161, 226, 0.08);
}

.nav-cta {
  background: var(--accent);
  color: white;
  padding-inline: 1rem;
  box-shadow: 0 4px 12px rgba(27, 161, 226, 0.3);
}

.nav-cta:hover {
  background: var(--accent-strong);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.hero-note {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* Hero right card */

.hero-panel {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 26px;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.hero-card h2 {
  font-size: 1.15rem;
  margin-top: 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.9rem 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  transform: translateY(2px);
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.hero-card-foot {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(27, 161, 226, 0.3);
}

.btn.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn.ghost {
  background: #ffffff;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: var(--bg-alt);
}

/* Generic text */

h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

p {
  line-height: 1.55;
}

/* Two-column layout */

.two-column {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .two-column {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

/* Cards & panels */

.highlight-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.bullet-list {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.bullet-list li + li {
  margin-top: 0.3rem;
}

/* Card grids */

.card-grid {
  display: grid;
  gap: 1.7rem;
  margin-top: 2rem;
}

.card-grid.three-up {
  margin-top: 2.2rem;
}

@media (min-width: 750px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 749px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   NEW: Onboarding / Form styles (matches current site theme)
   - Makes the "External Access Request" card wider & taller
   ========================================================= */

.form-card {
  max-width: 1100px;            /* wider card (matches your target screenshot) */
  margin: 0 auto;
  padding: 2.2rem 2.4rem;       /* more breathing room */
  min-height: 560px;            /* taller overall card */
}

.form-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}

.form {
  display: grid;
  gap: 1.15rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-main);
  padding: 0.85rem 0.95rem;          /* slightly more comfortable */
  font-family: var(--font-sans);     /* force sans-serif */
  font-size: 0.95rem;                /* larger input text */
  line-height: 1.5;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8a8886;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 161, 226, 0.15);
}

.form-textarea {
  min-height: 170px;                 /* slightly taller */
  font-size: 1rem;                   /* ideal for paragraph input */
  resize: vertical;
}

.helper-text {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.status-message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-support {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
}

.form-support p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-support a {
  color: var(--accent);
}

.form-support a:hover {
  color: var(--accent-strong);
}

/* Steps */

.steps-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 750px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

.step p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.small {
  font-size: 0.85rem;
}

/* Callout */

.callout {
  margin-top: 2.6rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
  background: var(--bg-alt);
}

.callout p {
  color: var(--text-main);
}

/* Pill groups */

.pill-grid {
  display: grid;
  gap: 1.8rem;
  margin-top: 2rem;
}

@media (min-width: 850px) {
  .pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pill-group {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border-subtle);
}

.pill-group h3 {
  margin-bottom: 0.4rem;
}

.pill-group ul {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

.pill-group li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pill-group li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* FAQs */

.faq-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

@media (min-width: 850px) {
  .faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.15rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2.5rem;
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.2fr);
    align-items: center;
  }
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.footer-meta {
  text-align: left;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.footer-brand {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.footer-small {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive tweaks */

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  /* Keep form comfortable on mobile */
  .form-card {
    padding: 1.6rem 1.2rem;
    min-height: auto;
  }
}

/* --- Modal (success popup) --- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: min(560px, calc(100% - 2.5rem));
  margin: 10vh auto 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.modal-dialog h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.modal-dialog p {
  margin: 0;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Custom scrollbar for webkit browsers (light theme) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: rgba(96, 94, 92, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 94, 92, 0.5);
}
