/* --- VARIABLES --- */
:root {
  --bg-color: #0a0a0a;
  --surface-color: #121212;
  --text-primary: #ededed;
  --text-secondary: #888888;
  --accent-color: #ccff00; /* Acid Lime */
  --border-color: #333333;
  --grid-line: rgba(255, 255, 255, 0.03);

  --font-main: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --gap-md: 20px;
  --header-height: 80px;
  --radius-sm: 4px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  /* Technical Grid Background */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- UTILITIES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.btn:hover {
  color: var(--bg-color);
}

.btn:hover::before {
  left: 0;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}

.header__nav {
  display: none;
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
}

.header__menu {
  display: flex;
  gap: 30px;
}

.header__link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.header__link:hover {
  color: var(--text-primary);
}

.header__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__burger {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* --- MOBILE MENU (Toggle Class) --- */
.header__nav.active {
  display: flex;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-color);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.header__nav.active .header__menu {
  flex-direction: column;
  align-items: center;
  gap: 40px;
  font-size: 1.5rem;
}

/* --- MAIN --- */
.main {
  padding-top: var(--header-height);
  min-height: 60vh; /* Temporary visual placeholder */
}

/* --- FOOTER (Bento Grid Style) --- */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
  padding-top: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1400px;
  margin: 0 auto;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer__col {
  padding: 40px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Vertical borders for desktop grid */
@media (min-width: 768px) {
  .footer__col {
    border-right: 1px solid var(--border-color);
  }
  .footer__col:nth-child(2n) {
    border-right: none;
  }
}

@media (min-width: 1200px) {
  .footer__col {
    border-right: 1px solid var(--border-color);
  }
  .footer__col:last-child {
    border-right: none;
  }
}

/* Tech deco corner */
.footer__col::after {
  content: "+";
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--border-color);
  font-family: var(--font-mono);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer__brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__meta {
  margin-top: auto;
  display: flex;
  gap: 15px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: padding-left 0.2s;
}

.footer__link:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.footer__contact-item i {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__status {
  margin-top: 20px;
  padding: 10px;
  border: 1px dashed var(--border-color);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* --- HERO SECTION --- */
.hero {
  padding: 20px;
  /* Removed min-height to allow content to dictate height on mobile, 
       but added padding-bottom for visual balance */
  display: flex;
  justify-content: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
}

/* Desktop Grid Layout (Bento Style) */
@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.8fr 1fr; /* Main left, Visual right */
    grid-template-rows: auto auto; /* Main/Visual top, Bar bottom */
  }

  .hero__box--main {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .hero__box--visual {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .hero__box--bar {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
}

.hero__box {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  /* Tech corners effect */
  background-image:
    linear-gradient(var(--border-color), var(--border-color)),
    linear-gradient(var(--border-color), var(--border-color)),
    linear-gradient(var(--border-color), var(--border-color)),
    linear-gradient(var(--border-color), var(--border-color));
  background-repeat: no-repeat;
  background-size:
    8px 1px,
    1px 8px,
    8px 1px,
    1px 8px;
  background-position:
    0 0,
    0 0,
    100% 100%,
    100% 100%;
}

/* -- Main Block -- */
.hero__box--main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 400px;
}

.hero__badges {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.badge {
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.badge--accent {
  border-color: var(--accent-color);
  color: var(--bg-color);
  background: var(--accent-color);
  font-weight: 700;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.text-highlight {
  color: var(--accent-color);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.desktop-only {
  display: none;
}
@media (min-width: 768px) {
  .desktop-only {
    display: inline;
  }
}

.btn--xl {
  padding: 16px 32px;
  font-size: 1rem;
  align-self: flex-start;
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.hero__note i {
  width: 14px;
  height: 14px;
}

/* -- Visual Block (Radar) -- */
.hero__box--visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    rgba(204, 255, 0, 0.05) 0%,
    transparent 70%
  );
  min-height: 300px;
}

.radar-container {
  width: 200px;
  height: 200px;
  position: relative;
}

.radar {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: relative;
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar::before {
  width: 60%;
  height: 60%;
}
.radar::after {
  width: 30%;
  height: 30%;
}

.radar-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(
    from 0deg,
    transparent 70%,
    rgba(204, 255, 0, 0.2)
  );
  border-radius: 50%;
  animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.visual-meta {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-color);
  opacity: 0.7;
}

/* -- Benefits Bar -- */
.hero__box--bar {
  display: flex;
  align-items: center;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  width: 100%;
  justify-content: space-around;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.feature-item i {
  color: var(--accent-color);
  width: 18px;
  height: 18px;
}

/* --- SECTION UTILS --- */
.section {
  padding: 100px 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  margin-bottom: 60px;
  border-left: 2px solid var(--accent-color);
  padding-left: 20px;
}

.section-header__meta {
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: flex;
  gap: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 500;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 1.1rem;
}

.section-subtitle .highlight {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-underline-offset: 4px;
}

/* --- PRACTICE GRID (MODULE REGISTRY) --- */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .practice-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.module-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Hover Effect: "Active Module" */
.module-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.module-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
}

.module-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 2px;
}

.module-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
}

.module-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.module-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Push footer down */
}

.module-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 20px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.module-card:hover .tech-tag {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Accent Card Variation (Last item) */
.module-card--accent {
  background: linear-gradient(
    145deg,
    var(--surface-color),
    rgba(204, 255, 0, 0.05)
  );
  border-color: rgba(204, 255, 0, 0.2);
}

/* Clickable Area */
.module-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

/* --- TOOLS SECTION --- */
.tools {
  border-top: 1px solid var(--border-color);
  background: linear-gradient(
    180deg,
    var(--bg-color) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.tools__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .tools__layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .tools__sidebar {
    position: sticky;
    top: 100px; /* offset for fixed header */
  }
}

.tools__status {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: #00ff94; /* Green status */
  box-shadow: 0 0 5px #00ff94;
}

/* Accordion Styles */
.tools__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.tool-item {
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  transition: background 0.3s ease;
}

.tool-item.active {
  background: rgba(255, 255, 255, 0.03);
}

.tool-item__header {
  display: flex;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  user-select: none;
}

.tool-num {
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-size: 1rem;
  margin-right: 20px;
  opacity: 0.8;
}

.tool-name {
  flex-grow: 1;
  font-size: 1.2rem;
  font-weight: 500;
}

.tool-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.tool-item:hover .tool-toggle {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.tool-item.active .tool-toggle {
  background: var(--text-primary);
  color: var(--bg-color);
  transform: rotate(45deg); /* Plus becomes X */
}

/* Accordion Body Animation */
.tool-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.tool-item.active .tool-item__body {
  max-height: 300px; /* Enough height for content */
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

.tool-item__content {
  padding-bottom: 30px;
  padding-left: 45px; /* Align with text, skip number */
  padding-right: 20px;
}

@media (max-width: 768px) {
  .tool-item__content {
    padding-left: 0;
  }
}

.tool-item__content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.tool-specs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.tool-specs li {
  position: relative;
}

.tool-specs li:not(:last-child)::after {
  content: "/";
  margin-left: 15px;
  color: var(--text-secondary);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* --- EDUCATION (PROCESS) --- */
.education {
  background: var(--bg-color);
}

.center-aligned {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-left: none;
  padding-left: 0;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}

@media (min-width: 992px) {
  .process-steps {
    flex-direction: row;
    gap: 0;
  }
}

.step-card {
  flex: 1;
  position: relative;
  padding: 0 20px;
  text-align: center; /* Mobile: Center text */
}

@media (min-width: 992px) {
  .step-card {
    text-align: left;
    padding-right: 40px;
  }
}

.step-card__num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

/* Tech decorative dot */
.step-card__num::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: -10px;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
}

.step-card__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.step-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Connecting Lines (Desktop Only) */
@media (min-width: 992px) {
  .step-card__line {
    position: absolute;
    top: 30px; /* Align with number */
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      var(--border-color) 50%,
      transparent 100%
    );
    z-index: -1;
    left: 50%; /* Start from middle of this card */
  }

  .step-card:last-child .step-card__line {
    display: none;
  }
}

/* --- FAQ SECTION --- */
.faq {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px; /* Gap for borders */
  background: var(--border-color); /* Creates the border lines */
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  background: var(--bg-color); /* Cut out from grid border */
  padding: 40px;
  transition: background 0.3s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-q {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Decorative Q marker */
.faq-q::before {
  content: "?";
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-weight: 700;
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px; /* Indent answer */
}

/* --- CONTACT SECTION --- */
.contact {
  padding-bottom: 120px;
  background: radial-gradient(
    circle at top right,
    rgba(204, 255, 0, 0.03),
    transparent 40%
  );
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* Left Side */
.contact-info {
  padding: 40px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .contact-info {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.contact-secure-badge {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-color);
  opacity: 0.6;
  border: 1px solid var(--accent-color);
  padding: 8px 12px;
  width: fit-content;
}

/* Form Styling */
.contact-form-container {
  padding: 40px;
  position: relative;
  min-height: 500px; /* Prevent jump on success */
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  border-radius: var(--radius-sm);
}

.form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.1);
}

.form-input.error {
  border-color: #ff5f56;
}

.error-msg {
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 0.75rem;
  color: #ff5f56;
  display: none; /* Hidden by default */
}

.form-group.has-error .error-msg {
  display: block;
}

/* Custom Checkbox */
.checkbox-group {
  margin-bottom: 20px;
}

.custom-checkbox-label {
  display: flex;
  align-items: center; /* Center vertically for robot */
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-label input {
  display: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

/* Checkmark creation via pseudo-element */
.checkbox-box::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  transform: scale(0);
  transition: transform 0.2s;
}

.custom-checkbox-label input:checked + .checkbox-box {
  border-color: var(--accent-color);
}

.custom-checkbox-label input:checked + .checkbox-box::after {
  transform: scale(1);
}

/* Specific Captcha Style */
.captcha-group .checkbox-box {
  width: 24px;
  height: 24px;
}

.checkbox-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-text a {
  color: var(--text-primary);
  text-decoration: underline;
}

.btn--full {
  width: 100%;
  margin-top: 10px;
}

/* Success Message */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface-color);
  display: none; /* Hidden */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
}

.success-message.visible {
  display: flex;
  animation: fadeIn 0.5s ease;
}

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

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon i {
  width: 30px;
  height: 30px;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.cookie-icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cookie-content a {
  color: var(--text-primary);
  text-decoration: underline;
}

/* --- LEGAL / TEXT PAGES STYLES --- */
.page-section {
  padding-top: 140px; /* Space for fixed header */
  padding-bottom: 80px;
  min-height: 80vh;
}

.pages {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-sm);
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.pages p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.pages li {
  margin-bottom: 10px;
}

.pages strong {
  color: var(--text-primary);
}

.pages a {
  color: var(--accent-color);
  text-decoration: underline;
}

.pages a:hover {
  text-decoration: none;
}
