/* --- VARIABLES: Eco-Modern Palette --- */
:root {
  /* Colors */
  --color-bg: #f2f0e9; /* М'який кремовий фон */
  --color-surface: #ffffff; /* Білий для карток */
  --color-primary: #3a4d39; /* Глибокий оливковий */
  --color-primary-dark: #2a3829;
  --color-accent: #d4a373; /* Приглушений пісочно-теракотовий */
  --color-text-main: #2c2c2c; /* Темно-сірий вугільний */
  --color-text-muted: #6b705c; /* Сіро-зелений */
  --color-border: #e0dcd0; /* Колір рамок */

  /* Typography */
  --font-sans: "Manrope", sans-serif;
  --font-serif: "Fraunces", serif;

  /* Bento Grid Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-width: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: --font-sans;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 77, 57, 0.2);
}

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

.header__container {
  max-width: var(--container-width);
  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: 12px;
}

.header__logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

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

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

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

.header__cta-mobile {
  display: none;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-line {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-surface);
  padding: 80px 20px 20px;
  border-top: 1px solid var(--color-border);
  margin-top: 60px; /* Temporary spacing */
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* 4 columns */
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.footer__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

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

.footer__list a {
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.footer__list a:hover {
  color: var(--color-accent);
}

.footer__list--contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.footer__list--contacts svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header__menu,
  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
    z-index: 1002;
  }

  /* Mobile Nav State */
  .header__nav.is-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
  }

  .header__nav.is-open .header__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .header__nav.is-open .header__item {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
  }

  .header__nav.is-open .header__cta-mobile {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
  }

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities for future Bento Grid */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HERO SECTION (Bento Grid) --- */
.hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(300px, auto) 200px;
  gap: 20px;
}

/* Base Cell Style */
.hero__cell {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.hero__cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--color-accent);
}

/* --- Cell 1: Main Content (Top Left, Large) --- */
.hero__cell--main {
  grid-column: span 7; /* Takes 7/12 columns */
  grid-row: span 1;
  justify-content: center;
  align-items: flex-start;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: rgba(58, 77, 57, 0.1);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #27ae60;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.text-accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 90%;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* --- Cell 2: Visual (Right, Tall) --- */
.hero__cell--visual {
  grid-column: span 5;
  grid-row: span 2; /* Takes full height */
  background-color: var(--color-primary-dark);
  color: var(--color-surface);
  padding: 0;
  position: relative;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__visual-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: monospace;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* --- Cell 3: Stat (Bottom Left) --- */
.hero__cell--stat {
  grid-column: span 3;
  grid-row: span 1;
  background-color: var(--color-accent); /* Accent background */
  color: #fff;
  border: none;
}

.hero__cell--stat .stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}

.stat-value {
  font-size: 2.5rem;
  margin-bottom: 4px;
  color: #fff;
}

.stat-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- Cell 4: Trust (Bottom Center) --- */
.hero__cell--trust {
  grid-column: span 4;
  grid-row: span 1;
}

.trust-avatars {
  display: flex;
  margin-bottom: 16px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-surface);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-count {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 3px solid var(--color-surface);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.trust-text {
  font-weight: 500;
  margin-bottom: 10px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 600;
  gap: 4px;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

/* --- RESPONSIVE GRID --- */
@media (max-width: 1024px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
  }

  .hero__cell--visual {
    height: 300px; /* Fixed height for visual on mobile */
    order: -1; /* Move visual to top on mobile if desired, or keep as is */
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- SECTIONS COMMON --- */
.section {
  padding: 100px 0;
}

.section--alt {
  background-color: #eae7dc; /* Трішки темніший відтінок для контрасту */
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}

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

/* --- STRATEGY: BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(58, 77, 57, 0.08);
}

/* Specific Card Layouts */
.bento-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3; /* Spans 2 rows */
  justify-content: space-between;
}

.bento-card--tall {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.bento-card--wide {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  justify-content: center;
}

/* Content Styling */
.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
  font-weight: 700;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.bento-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.btn-text {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-text:hover {
  gap: 10px;
  color: var(--color-accent);
}

/* Visuals inside cards */
.card-image-wrapper {
  margin-top: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 200px;
  width: 100%;
}

.card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .card-bg-img {
  transform: scale(1.05);
}

.icon-box {
  width: 48px;
  height: 48px;
  background-color: rgba(212, 163, 115, 0.2);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
}

.chart-mockup {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: auto;
}

.chart-mockup .bar {
  flex: 1;
  background-color: var(--color-primary);
  opacity: 0.2;
  border-radius: 4px;
  transition: height 1s ease;
}

.bento-card:hover .bar {
  opacity: 1;
  background-color: var(--color-accent);
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.card-row h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.card-row p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* --- INNOVATION: SPLIT LAYOUT --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge-tech {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 10px;
  font-family: monospace;
  font-size: 0.8rem;
  border-radius: 4px;
  margin-bottom: 20px;
}

.section-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.tech-list {
  margin-bottom: 40px;
}

.tech-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.tech-list svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* CSS Art for Innovation Visual */
.split-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abstract-shape {
  position: relative;
  width: 300px;
  height: 300px;
}

.shape-circle {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
  filter: blur(40px);
}

.shape-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 260px;
  height: 180px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: rotate(-5deg);
  transition: transform 0.5s ease;
}

.split-visual:hover .shape-card {
  transform: rotate(0deg) scale(1.05);
}

.sc-header {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.dot {
  width: 8px;
  height: 8px;
  background: #ddd;
  border-radius: 50%;
}
.sc-body .line {
  height: 8px;
  background: #eee;
  margin-bottom: 10px;
  border-radius: 4px;
}
.sc-body .w-70 {
  width: 70%;
}
.sc-body .w-50 {
  width: 50%;
}
.sc-body .w-90 {
  width: 90%;
}
.sc-footer {
  margin-top: 20px;
  font-size: 0.7rem;
  color: var(--color-accent);
  font-weight: bold;
  text-transform: uppercase;
}

/* Reveal Animation Class (JS will toggle this) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-card--large,
  .bento-card--tall,
  .bento-card--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .split-visual {
    order: -1;
    height: 300px;
  }
}

/* --- ANALYTICS (Dark Theme) --- */
.section--dark {
  background-color: var(--color-primary-dark);
  color: var(--color-surface);
}

.text-light {
  color: #fff;
}
.text-light-muted {
  color: rgba(255, 255, 255, 0.7);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.analytics-decoration {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.5;
}

.barcode {
  height: 30px;
  width: 100px;
  background: repeating-linear-gradient(
    to right,
    #fff 0px,
    #fff 2px,
    transparent 2px,
    transparent 4px
  );
}

.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- SOLUTIONS (Accordion) --- */
.solutions-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.mt-4 {
  margin-top: 24px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.acc-num {
  font-family: monospace;
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-right: 24px;
}

.acc-title {
  flex-grow: 1;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
}

.acc-icon {
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.accordion-item.active .acc-icon {
  transform: rotate(45deg); /* Turns plus to x */
  color: var(--color-primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.acc-inner {
  padding: 0 32px 32px 80px; /* Aligned with title */
  color: var(--color-text-main);
  line-height: 1.7;
}

.acc-list {
  margin-top: 16px;
  list-style: disc;
  padding-left: 20px;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .analytics-grid,
  .solutions-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-wrapper {
    grid-template-columns: 1fr 1fr; /* Keep 2 cols on mobile for compact view */
  }

  .acc-inner {
    padding: 0 20px 24px;
  }

  .acc-num {
    display: none;
  } /* Hide numbers on small screens to save space */
}

/* --- CONTACT SECTION --- */
.section--contact {
  background-color: #f8f7f4; /* Трохи світліший за основний фон */
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cd-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.cd-icon {
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.cd-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.cd-value {
  font-weight: 600;
  color: var(--color-text-main);
}

/* --- FORM STYLES --- */
.contact-form-wrapper {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.form-title {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.form-input {
  width: 100%;
  padding: 12px 12px 12px 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(58, 77, 57, 0.1);
}

.error-msg {
  display: none;
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 6px;
}

.form-group.error .form-input {
  border-color: #e74c3c;
}
.form-group.error .error-msg {
  display: block;
}
.form-group.error .input-icon {
  color: #e74c3c;
}

/* Fake Captcha */
.captcha-container {
  margin-bottom: 20px;
}

.captcha-box {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 15px;
  width: fit-content;
  position: relative;
  cursor: pointer;
  min-width: 250px;
}

.captcha-box input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.captcha-checkmark {
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  margin-right: 12px;
  position: relative;
}

.captcha-box:hover .captcha-checkmark {
  border-color: #b2b2b2;
}

.captcha-box input:checked ~ .captcha-checkmark {
  background-color: #fff;
  border-color: #c1c1c1;
}

.captcha-box input:checked ~ .captcha-checkmark:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #4a90e2;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  animation: checkAnim 0.2s ease-in-out;
}

.captcha-text {
  font-size: 14px;
  color: #000;
  font-family: Arial, sans-serif;
  margin-right: auto;
}

.captcha-logo {
  width: 38px;
  opacity: 0.6;
}

@keyframes checkAnim {
  from {
    transform: rotate(45deg) scale(0);
  }
  to {
    transform: rotate(45deg) scale(1);
  }
}

.captcha-container.error .captcha-box {
  border-color: #e74c3c;
}
.captcha-container.error .error-msg {
  display: block;
}

/* Privacy Check */
.privacy-check {
  margin-bottom: 24px;
}
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  position: relative;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-checkbox input:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.privacy-check.error .checkmark {
  border-color: #e74c3c;
}
.privacy-check.error .error-msg {
  display: block;
}

.btn--full {
  width: 100%;
  justify-content: center;
}
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* Success Message */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.success-message.visible {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #eafaf1;
  color: #2ecc71;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.hidden {
  display: none;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--color-primary-dark);
  color: white;
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 20px;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  font-size: 0.85rem;
  margin: 0;
}
.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --- LEGAL PAGES TYPOGRAPHY --- */
.pages {
  padding: 120px 0 60px;
}
.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.pages h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
}
.pages p {
  margin-bottom: 15px;
  color: var(--color-text-main);
}
.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}
.pages li {
  margin-bottom: 8px;
}
.pages a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
