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

:root {
  /* Palette: Swiss Style */
  --bg-color: #f4f4f0; /* Off-white paper */
  --text-color: #1a1a1a; /* Soft Black */
  --accent-color: #ff5722; /* Safety Orange */
  --line-color: #d1d1cd; /* Grey lines */

  /* Typography */
  --font-main: "Manrope", sans-serif;
  --font-serif: "Playfair Display", serif;

  /* Spacing */
  --container-width: 1320px;
  --header-height: 80px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn--primary {
  background-color: var(--text-color);
  color: #fff;
  border-radius: 0; /* Sharp edges */
}

.btn--primary:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(244, 244, 240, 0.95); /* Slight transparency */
  border-bottom: 1px solid var(--line-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header__wrapper {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  z-index: 1002;
}

.header__logo-shape {
  width: 16px;
  height: 16px;
  background-color: var(--accent-color);
  border-radius: 50%; /* Minimal dot */
}

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

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

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.header__link span {
  font-size: 0.75rem;
  color: var(--accent-color);
  margin-right: 4px;
  font-family: monospace;
}

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

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

.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

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

/* Mobile Nav Logic */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    padding-bottom: 80px;
  }

  .header__nav.is-active {
    transform: translateY(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
  }

  .header__link {
    font-size: 2rem;
    font-family: var(--font-serif);
  }

  .header__burger {
    display: flex;
  }

  /* Burger Animation */
  .header__burger.is-active .burger-line:first-child {
    transform: translateY(8px) rotate(45deg);
  }
  .header__burger.is-active .burger-line:last-child {
    transform: translateY(0) rotate(-45deg);
  }
}

/* --- FOOTER --- */
.footer {
  background-color: var(--text-color); /* Invert colors for footer */
  color: var(--bg-color);
  padding-top: 0;
  position: relative;
  overflow: hidden;
  margin-top: 100px;
}

/* Decorative huge line */
.footer__top-border {
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--accent-color),
    var(--accent-color) 20px,
    var(--text-color) 20px,
    var(--text-color) 40px
  );
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  color: #fff;
  display: block;
  margin-bottom: 24px;
}

.footer__mission {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 32px;
  line-height: 1.4;
}

.footer__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
}

.footer__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

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

.footer__links a {
  color: #fff;
  opacity: 0.7;
  font-size: 1rem;
}

.footer__links a:hover {
  opacity: 1;
  padding-left: 8px; /* Micro interaction */
}

.footer__address {
  font-style: normal;
  color: #fff;
  opacity: 0.7;
  margin-bottom: 24px;
}

.footer__contact-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact-link {
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
  display: inline-block;
  width: fit-content;
}

.footer__contact-link:hover {
  border-color: var(--accent-color);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer__bottom-flex {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.5;
}

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

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

  .footer__logo {
    font-size: 2rem;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 60px); /* Account for fixed header */
  padding-bottom: 100px;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.hero__title {
  font-family: var(--font-main); /* Using Sans-serif for main impact */
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.text-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-color);
}

.hero__desc {
  font-size: 1.125rem;
  color: #555;
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.6;
  border-left: 1px solid var(--accent-color);
  padding-left: 24px; /* Editorial style indent */
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.hero__note {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
}

/* Visual Asymmetry */
.hero__visual {
  position: relative;
  padding-top: 60px; /* Push image down specifically to break alignment */
}

.hero__img-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden; /* For animation */
}

.hero__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
  filter: grayscale(100%); /* Stylish monotone */
  transition: filter 0.5s ease;
}

.hero__img:hover {
  filter: grayscale(0%);
}

.hero__stat-card {
  position: absolute;
  bottom: -30px; /* Break out of image */
  left: -40px; /* Break out of grid left */
  background-color: #fff;
  padding: 24px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line-color);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.hero__stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 600;
}

/* Decorative background line */
.hero__line {
  position: absolute;
  top: 0;
  right: 20%;
  width: 1px;
  height: 100%;
  background-color: var(--line-color);
  z-index: -1;
  opacity: 0.5;
}

/* --- ANIMATION CLASSES (To be triggered by JS) --- */
.reveal-text {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-img {
  opacity: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Start closed */
  transition: opacity 0.5s ease, clip-path 1.2s cubic-bezier(0.6, 0, 0.2, 1);
}

.reveal-img.is-visible {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Open fully */
}

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

  .hero__visual {
    padding-top: 0;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero__stat-card {
    left: 0;
    bottom: -20px;
  }

  .hero__line {
    display: none;
  }
}

/* --- METHODOLOGY SECTION --- */
.methodology {
  padding: 120px 0;
  background-color: var(--bg-color);
}

.methodology__container {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr; /* Asymmetric grid */
  gap: 60px;
}

.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: block;
}

.methodology__lead {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  max-width: 300px;
  position: sticky; /* Keeps title visible while scrolling list */
  top: 100px;
}

/* List Styles */
.methodology__list {
  display: flex;
  flex-direction: column;
}

.method-item {
  border-top: 1px solid var(--line-color);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden; /* For hover effect */
}

/* Last border */
.method-item:last-child {
  border-bottom: 1px solid var(--line-color);
}

/* Typography */
.method-item__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent-color);
  font-style: italic;
}

.method-item__title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.method-item__body {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  max-width: 450px;
  transition: color 0.3s ease;
}

.method-item__arrow {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* --- HOVER EFFECT --- */
.method-item:hover {
  background-color: var(--accent-color);
  padding-left: 24px; /* Slight shift */
  padding-right: 24px;
  border-color: var(--accent-color);
}

.method-item:hover .method-item__title,
.method-item:hover .method-item__body,
.method-item:hover .method-item__num,
.method-item:hover .method-item__arrow {
  color: #fff;
}

.method-item:hover .method-item__arrow {
  transform: rotate(-45deg); /* Arrow points straight right-up */
}

/* --- MARQUEE (Running Line) --- */
.marquee-wrapper {
  width: 100%;
  background-color: var(--text-color);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

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

.separator {
  color: var(--accent-color);
  margin: 0 40px;
}

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

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .methodology__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .methodology__lead {
    position: static;
    font-size: 1.75rem;
    margin-bottom: 0;
  }

  .method-item {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num title"
      "arrow body";
    align-items: start;
    gap: 12px;
  }

  .method-item__num {
    grid-area: num;
  }
  .method-item__title {
    grid-area: title;
    font-size: 1.4rem;
  }
  .method-item__body {
    grid-area: body;
  }
  .method-item__arrow {
    grid-area: arrow;
    padding-top: 5px;
  }
}

/* --- PROGRAMS SECTION --- */
.programs {
  padding: 100px 0;
  background-color: var(--bg-color);
}

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

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

/* Card Styles */
.program-card {
  border: 1px solid var(--line-color);
  background-color: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-color);
}

/* Typography inside card */
.program-card__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--text-color);
}

.program-card__desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 30px;
  min-height: 40px; /* Alignment */
}

.program-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 30px;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 4px;
}

.period {
  font-size: 1rem;
  color: #999;
  font-weight: 400;
}

/* List */
.program-card__list {
  margin-bottom: 40px;
  flex-grow: 1; /* Pushes button to bottom */
}

.program-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #444;
}

.program-card__list li i {
  color: var(--accent-color);
  width: 20px;
  height: 20px;
}

/* Footer & Buttons */
.program-card__footer {
  margin-top: auto;
}

.btn--outline {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--text-color);
  background: transparent;
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
}

.btn--outline:hover {
  background: var(--text-color);
  color: #fff;
}

/* Featured Card Modifier */
.program-card--featured {
  border: 2px solid var(--accent-color);
  background-color: #fffbf9; /* Very light orange tint */
}

.program-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: #fff;
  padding: 6px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* --- CTA STRIP --- */
.cta-strip {
  margin-top: 80px;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-strip__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.btn--text {
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
}

.btn--text:hover {
  border-bottom-color: var(--accent-color);
  gap: 12px; /* Animation */
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .programs__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .cta-strip {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* --- RESULTS / BENTO GRID --- */
.results {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns grid */
  grid-auto-rows: minmax(280px, auto);
  gap: 20px;
}

/* Base Item Style */
.bento-item {
  background-color: #fff;
  border: 1px solid var(--line-color);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  z-index: 2;
}

/* Modifiers for Spanning */
.bento-col-2 {
  grid-column: span 2;
}

.bento-row-2 {
  grid-row: span 2;
}

/* --- Content Styles --- */

/* Dark Item */
.bento-item--dark {
  background-color: var(--text-color);
  color: #fff;
  border: none;
}

.bento-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 10px;
  display: block;
}

.bento-stat {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-text {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 400px;
  line-height: 1.6;
}

/* Image Item */
.bento-item--img {
  padding: 0;
  border: none;
}

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

.bento-item--img:hover .bento-bg-img {
  transform: scale(1.1);
}

.bento-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 4px;
}

.bento-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
}

/* Accent Item */
.bento-item--accent {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
}

.bento-title-lg {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.bento-content--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.btn--white-outline {
  margin-top: 20px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn--white-outline:hover {
  background: #fff;
  color: var(--accent-color);
}

/* Review Cards */
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-color);
}

.review-avatar--accent {
  background-color: rgba(255, 87, 34, 0.1);
  color: var(--accent-color);
}

.review-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.review-role {
  font-size: 0.75rem;
  color: #888;
}

.review-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}

.text-highlight {
  background: linear-gradient(
    120deg,
    rgba(255, 87, 34, 0.2) 0%,
    rgba(255, 87, 34, 0.2) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 85%;
}

.review-rating {
  display: flex;
  gap: 4px;
  color: #ffb400; /* Star color */
}

.review-rating svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Responsive Grid Logic */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .bento-col-2,
  .bento-row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-stat {
    font-size: 3rem;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 120px 0;
  background-color: #fff;
  border-top: 1px solid var(--line-color);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact__desc {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
  max-width: 400px;
}

.contact__note {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
}

/* Form Styles (Swiss Minimal) */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  position: relative;
}

.form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line-color);
  font-family: var(--font-main);
  font-size: 1.25rem;
  color: var(--text-color);
  border-radius: 0;
  background: transparent;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

.form-input::placeholder {
  color: #ddd;
}

/* Fake Captcha */
.captcha-container {
  background-color: #f9f9f9;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 12px 16px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.captcha-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.captcha-container.is-checked .captcha-icon {
  opacity: 1;
  transform: scale(1);
}

.captcha-label {
  font-size: 0.9rem;
  color: #333;
  font-family: sans-serif;
}

.captcha-logo {
  height: 24px;
  margin-left: 20px;
  opacity: 0.5;
}

/* Privacy Checkbox */
.form-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
}

.custom-checkbox {
  margin-top: 3px;
  accent-color: var(--accent-color);
}

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

.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 18px;
}

/* Success Message */
.success-message {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 40px;
  background-color: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #2f855a;
}

.success-icon {
  margin-bottom: 16px;
  color: #48bb78;
}

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

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

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: var(--text-color);
  color: #fff;
  padding: 20px;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.cookie-popup.is-visible {
  bottom: 20px;
}

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

.cookie-content a {
  color: #fff;
  text-decoration: underline;
}

.btn--small {
  padding: 8px 16px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 0.75rem;
}

.btn--small:hover {
  background: #fff;
  color: var(--text-color);
}

/* --- STYLES FOR POLICY PAGES (privacy.html etc) --- */
/* Ці стилі працюватимуть, коли ми створимо окремі сторінки */
.pages {
  padding: 140px 0 80px;
  background-color: #fff;
  min-height: 80vh;
}

.pages h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 40px;
}

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

.pages p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
  max-width: 800px;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

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

/* Mobile */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- FORM VALIDATION STYLES --- */

/* Клас для поля з помилкою */
.form-input.is-invalid {
  border-bottom-color: #ef4444; /* Red color */
  color: #ef4444;
}

/* Текст помилки */
.error-message {
  display: block;
  height: 0;
  overflow: hidden;
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
}

/* Коли помилка активна */
.form-input.is-invalid + .error-message {
  height: auto;
  opacity: 1;
  margin-top: 6px;
}
