/* --- GLOBAL VARIABLES & RESET --- */
:root {
  /* Palette: Bauhaus / Tech */
  --color-bg: #f4f4f0; /* Off-white paper */
  --color-text: #111111; /* Almost black */
  --color-primary: #0052ff; /* Tech Blue */
  --color-accent: #ff3b00; /* Bauhaus Orange */
  --color-line: #111111; /* Grid lines */

  /* Typography */
  --font-main: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Spacing */
  --gap-grid: 1px; /* Gap creates the border effect */
  --padding-section: 4rem 2rem;
}

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

body {
  font-family: var(--font-mono);
  background-color: var(
    --color-line
  ); /* Background shows through gaps to create lines */
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Helper for smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

/* --- HEADER --- */
.header {
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--color-line);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1920px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

.header__nav {
  display: flex;
}

.header__list {
  display: flex;
  gap: 2rem;
}

.header__link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

/* Hover Effect: Glitch/Underline */
.header__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid var(--color-text);
  transition: all 0.3s ease;
}

.header__btn:hover {
  background-color: transparent;
  color: var(--color-text);
  box-shadow: 4px 4px 0 var(--color-accent);
  transform: translate(-2px, -2px);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

/* --- MOBILE MENU --- */
.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 73px; /* Header height approx */
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-bg);
    overflow: hidden;
    transition: height 0.4s ease-in-out;
    flex-direction: column;
    border-bottom: 2px solid var(--color-line);
  }

  .header__nav.active {
    height: calc(100vh - 73px);
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
  }

  .header__link {
    font-size: 1.5rem;
  }

  .header__btn {
    display: none; /* Hide desktop button on mobile */
  }

  .mobile-only {
    display: block;
  }

  .header__burger {
    display: block;
  }
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-bg); /* Reset bg for padding area if needed */
  margin-top: 4rem; /* Visual separation */
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  background-color: var(--color-line); /* The grid lines color */
  gap: 2px; /* Thickness of internal borders */
  border-top: 2px solid var(--color-line);
}

.footer__col {
  background-color: var(--color-bg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
}

.footer__logo {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.blink {
  animation: blinker 1s linear infinite;
  color: var(--color-accent);
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.footer__tagline {
  font-size: 1rem;
  margin-bottom: auto;
  max-width: 80%;
}

.footer__sub {
  margin-top: 2rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer__title {
  font-family: var(--font-main);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__link {
  font-size: 0.9rem;
  position: relative;
  display: inline-block;
}

.footer__link:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
}

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

.footer__badge {
  margin-top: 2rem;
  padding: 0.5rem;
  border: 1px dashed var(--color-text);
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-text);
  background-color: rgba(0, 82, 255, 0.05);
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col--brand,
  .footer__col--contact {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__col {
    grid-column: span 1 !important;
    padding: 2rem 1.5rem;
  }
}

/* --- HERO SECTION --- */
.hero {
  /* Висота на весь екран мінус хедер */
  min-height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
}

.hero__grid {
  display: grid;
  /* Magazine layout: Великий лівий блок і два правих */
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 2px; /* Border effect */
  background-color: var(--color-line);
  flex-grow: 1;
  border-bottom: 2px solid var(--color-line);
}

/* Cell Styles */
.hero__cell {
  background-color: var(--color-bg);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

/* Block 1: Main Title Area */
.hero__cell--main {
  grid-row: 1 / span 2; /* Займає всю висоту зліва */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff47; /* Neon Green */
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff47;
  animation: blinker 2s infinite;
}

.hero__title {
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 0.9;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.text-outline {
  /* Ефект прозорого тексту з обводкою */
  color: transparent;
  -webkit-text-stroke: 2px var(--color-text);
}

/* Block 2: Info & CTA */
.hero__cell--info {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 3rem;
}

.hero__desc {
  font-size: 1.1rem;
  max-width: 400px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-primary);
  color: #fff;
  padding: 1.2rem 2.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-primary);
}

.hero__cta:hover {
  background-color: transparent;
  color: var(--color-primary);
  gap: 1.5rem; /* Icon moves */
}

.hero__note {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #666;
  opacity: 0.8;
}

/* Block 3: Visual */
.hero__cell--visual {
  grid-column: 2;
  grid-row: 1;
  padding: 0; /* Full image */
  position: relative;
  min-height: 300px;
}

.hero__img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2); /* Tech vibe */
}

/* Ефект "синьки" або сканера поверх фото */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 82, 255, 0.4), transparent);
  mix-blend-mode: multiply;
}

.hero__stat {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
  background: var(--color-bg);
  padding: 1rem;
  border: 1px solid var(--color-text);
  box-shadow: 4px 4px 0 var(--color-accent);
}

.hero__stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-accent);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Адаптивність */
@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero__cell--main {
    grid-column: 1;
    grid-row: 1;
    padding: 3rem 2rem;
  }

  .hero__cell--visual {
    grid-column: 1;
    grid-row: 2;
    min-height: 250px;
  }

  .hero__cell--info {
    grid-column: 1;
    grid-row: 3;
    padding: 3rem 2rem;
  }

  .hero__title {
    font-size: 3rem;
  }
}

/* --- PROGRAM SECTION --- */
.program {
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-line);
}

.program__header {
  padding: var(--padding-section);
  border-bottom: 2px solid var(--color-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.program__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.program__subtitle {
  font-size: 1rem;
  max-width: 500px;
  padding-bottom: 0.5rem; /* Align with title baseline */
}

/* Accordion Styles */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion__item {
  border-bottom: 1px solid var(--color-line);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
}

.accordion__trigger:hover {
  background-color: rgba(0, 82, 255, 0.05); /* Light primary tint */
}

.accordion__num {
  font-family: var(--font-mono);
  color: var(--color-primary);
  margin-right: 2rem;
  font-size: 1.2rem;
}

.accordion__name {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  flex-grow: 1;
  text-transform: uppercase;
}

.accordion__icon {
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

/* Open State */
.accordion__item.active .accordion__trigger {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.accordion__item.active .accordion__num {
  color: var(--color-accent); /* Orange on Black */
}

.accordion__item.active .accordion__icon {
  transform: rotate(45deg); /* Plus becomes X */
  color: var(--color-bg);
}

/* Content Area */
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background-color: var(--color-bg); /* Ensure content has light bg */
}

.accordion__inner {
  padding: 2rem 2rem 3rem 5rem; /* Indented text */
  max-width: 800px;
}

.program__list {
  margin-top: 1.5rem;
  list-style: disc;
  padding-left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.program__list li {
  margin-bottom: 0.5rem;
}

.program__tag {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-accent);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .program__header {
    grid-template-columns: 1fr;
  }

  .accordion__trigger {
    padding: 1.5rem;
  }

  .accordion__num {
    margin-right: 1rem;
    font-size: 1rem;
  }

  .accordion__name {
    font-size: 1.1rem;
  }

  .accordion__inner {
    padding: 1.5rem;
  }
}

/* --- MARQUEE (Running Text) --- */
.marquee-container {
  background-color: var(--color-primary);
  color: #fff;
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--color-line);
}

.marquee-content {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- METHODOLOGY SECTION --- */
.methodology {
  background-color: var(--color-line); /* Grid lines color */
  border-bottom: 2px solid var(--color-line);
}

.methodology__header {
  background-color: var(--color-bg);
  padding: var(--padding-section);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-line); /* Separator */
}

.methodology__title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  font-weight: 700;
}

.methodology__badge {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-text);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; /* Borders via gap */
}

.spec-card {
  background-color: var(--color-bg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background-color 0.3s ease;
}

/* Highlight Card Style (Middle one) */
.spec-card--highlight {
  background-color: var(--color-primary);
  color: #fff;
}

.spec-card--highlight .spec-card__id {
  color: rgba(255, 255, 255, 0.6);
}

.spec-card--highlight .spec-card__desc {
  color: rgba(255, 255, 255, 0.9);
}

.spec-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.spec-card__head i {
  width: 32px;
  height: 32px;
}

.spec-card__id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #888;
}

.spec-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-main);
}

.spec-card__desc {
  font-size: 1rem;
  line-height: 1.6;
}

/* Hover Effect: Simple lift */
.spec-card:hover {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .spec-card {
    border-bottom: 2px solid var(--color-line); /* Add explicit borders when stacked */
  }
}

/* --- CAREER SECTION (Dark Mode) --- */
.career {
  background-color: var(--color-text); /* Black Background */
  color: var(--color-bg); /* White Text */
  padding: var(--padding-section);
  position: relative;
  overflow: hidden;
}

.career__container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Content Side */
.career__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.highlight-text {
  color: var(--color-primary); /* Blue accent on black */
  -webkit-text-stroke: 1px var(--color-primary);
}

.career__desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  max-width: 500px;
  font-family: var(--font-mono);
}

.career__roles {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.career__roles li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.career__roles i {
  color: var(--color-accent);
}

/* CTA Block */
.career__cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.career__btn {
  background-color: var(--color-bg); /* White btn */
  color: var(--color-text); /* Black text */
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--color-bg);
}

.career__btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.career__note {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Terminal Visual */
.terminal-window {
  background-color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 20px 20px 0 var(--color-primary);
  overflow: hidden;
  font-family: var(--font-mono);
  border: 1px solid #333;
}

.terminal-header {
  background-color: #252525;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #333;
}

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

.terminal-title {
  margin-left: 1rem;
  font-size: 0.8rem;
  color: #888;
}

.terminal-body {
  padding: 2rem;
  color: #00ff47; /* Matrix Green */
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 300px;
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .career__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .terminal-window {
    box-shadow: 10px 10px 0 var(--color-primary);
  }
}

/* --- REVIEWS SECTION --- */
.reviews {
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-line);
}

.reviews__header {
  padding: var(--padding-section);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--color-line);
}

.reviews__title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  font-weight: 700;
}

.reviews__stats {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* Grid Layout */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background-color: var(--color-line); /* Border color */
}

/* Ticket Card */
.ticket {
  background-color: var(--color-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ticket:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  z-index: 1; /* Bring to front */
}

.ticket__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ticket__user {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.ticket__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  border: 1px solid var(--color-line);
}

.ticket__name {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
}

.ticket__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666;
  display: block;
}

.ticket__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #999;
}

.ticket__body p {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
}

.ticket__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  border-radius: 4px;
}

.status-tag.success {
  background-color: rgba(39, 201, 63, 0.1);
  color: #27c93f;
}

.status-tag.warning {
  background-color: rgba(255, 189, 46, 0.1);
  color: #d49a0e;
}

.ticket__stars {
  color: var(--color-accent);
  letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 992px) {
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .ticket {
    border-bottom: 2px solid var(--color-line);
  }

  .reviews__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* Left Col */
.contact__info {
  padding: var(--padding-section);
  border-right: 2px solid var(--color-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.contact__desc {
  font-size: 1.1rem;
  max-width: 400px;
  margin-bottom: 3rem;
}

.detail-item {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

.detail-value {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Right Col: Form */
.contact__form-wrapper {
  padding: var(--padding-section);
  position: relative;
  background-color: #fff; /* Pure white for form area */
}

.form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 500px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #666;
}

.form__input {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 2px solid #ddd;
  font-family: var(--font-main);
  font-size: 1.1rem;
  background: transparent;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form__input:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
}

/* Validation Styles */
.form__input.error {
  border-bottom-color: var(--color-accent);
}

.form__error {
  display: none;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.form__input.error + .form__error,
.form__captcha-wrapper.error .captcha-error,
.form__agreement.error .consent-error {
  display: block;
}

/* Custom Captcha */
.custom-captcha {
  background-color: #f9f9f9;
  padding: 1rem;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  width: 100%;
}

.captcha-checkbox {
  display: none; /* Hide default checkbox */
}

.captcha-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.9rem;
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  background-color: #fff;
  border-radius: 2px;
  position: relative;
  transition: all 0.2s ease;
}

.captcha-checkbox:checked + .captcha-label .captcha-box {
  border-color: #27c93f;
  background-color: #27c93f;
}

/* Checkmark CSS hack */
.captcha-checkbox:checked + .captcha-label .captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom Consent Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.4;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 1px solid var(--color-text);
  flex-shrink: 0;
  position: relative;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--color-text);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

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

/* Button */
.form__btn {
  margin-top: 1rem;
  padding: 1.2rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.3s ease;
}

.form__btn:hover {
  background-color: var(--color-text);
}

/* Success Message */
.success-message {
  display: none; /* Hidden by default */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

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

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: #27c93f;
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

/* Responsive */
@media (max-width: 992px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__info {
    border-right: none;
    border-bottom: 2px solid var(--color-line);
    padding-bottom: 2rem;
  }
}
/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background-color: var(--color-text); /* Black */
  color: var(--color-bg); /* White */
  padding: 1rem 2rem;
  z-index: 9999;
  border-top: 2px solid var(--color-primary);
  transition: bottom 0.5s ease-in-out;
}

.cookie-popup.active {
  bottom: 0;
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

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

.cookie-btn {
  background-color: var(--color-bg);
  color: var(--color-text);
  border: none;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn:hover {
  background-color: var(--color-primary);
  color: white;
}

/* --- STYLES FOR POLICY PAGES (privacy.html etc.) --- */
.pages {
  padding: 6rem 2rem;
  background-color: var(--color-bg);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px;
  margin: 0 auto;
}

.pages h1 {
  font-family: var(--font-main);
  font-size: 3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-line);
  padding-bottom: 1rem;
}

.pages h2 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.pages p {
  font-family: var(--font-mono); /* Technical font for legal text */
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #333;
}

.pages ul {
  list-style: square;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.pages li {
  margin-bottom: 0.5rem;
}

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

/* Mobile responsive for pages */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .pages h1 {
    font-size: 2rem;
  }
}
