/* --- Variables & Setup --- */
:root {
  /* Palette: Soft Corporate & Pastel Accents */
  --color-bg: #f8fafc; /* Very light blue-grey */
  --color-surface: #ffffff; /* Pure white */
  --color-primary: #6366f1; /* Soft Indigo */
  --color-primary-hover: #4f46e5;
  --color-secondary: #10b981; /* Soft Emerald/Mint */
  --color-text-main: #1e293b; /* Slate 800 */
  --color-text-muted: #64748b; /* Slate 500 */
  --color-border: #e2e8f0;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  /* Shapes */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px; /* Hyper-rounded key feature */
  --radius-full: 9999px;

  /* Effects */
  --shadow-soft: 0 10px 40px -10px rgba(99, 102, 241, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

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

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  padding: 0 20px;
  margin: 0 auto;
}

/* --- Buttons (Hyper-rounded) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
}

.header__container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full); /* Floating Pill Header */
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

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

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

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

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

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

/* Mobile Nav Styles */
@media (max-width: 992px) {
  .header__container {
    border-radius: var(--radius-lg);
    margin: 0 10px;
  }

  .header__burger {
    display: block;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-top: 10px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .header__nav.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

/* --- Footer --- */
.footer {
  background-color: var(--color-surface);
  padding: 80px 0 30px;
  margin-top: 80px;
  border-top-left-radius: 60px; /* Big rounded corners at top */
  border-top-right-radius: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 16px;
}

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

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.footer__links li {
  margin-bottom: 12px;
}

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

.footer__links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

  .footer {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding: 50px 0 20px;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Top padding to account for fixed header */
  overflow: hidden;
}

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

/* Typography & Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: 3.5rem; /* Large typography */
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--color-text-main);
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  background: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  width: fit-content;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.hero__note-icon {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

/* Actions Area */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.hero__users {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__avatars {
  display: flex;
}

.hero__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--color-bg);
  margin-left: -15px;
  object-fit: cover;
  background-color: #ddd; /* Fallback */
}

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

.hero__users-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
}

/* Visual / Composition */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative Blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.6;
}

.hero__blob--1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: 0;
  right: 0;
  opacity: 0.15;
}

.hero__blob--2 {
  width: 250px;
  height: 250px;
  background: var(--color-secondary);
  bottom: 0;
  left: 20%;
  opacity: 0.15;
}

/* Main Card Style */
.hero__card {
  background: var(--color-surface);
  border-radius: var(--radius-lg); /* 40px+ */
  box-shadow: var(--shadow-soft);
  position: absolute;
}

.hero__card--main {
  width: 85%;
  height: auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.5);
  z-index: 2;
  transform: rotate(-2deg); /* Slightly tilted for dynamic look */
}

.hero__img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__card-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius-md);
}

.hero__card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

/* Floating Small Card */
.hero__card--float {
  z-index: 3;
  bottom: 40px;
  right: 10px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: var(--radius-full);
  animation: float 6s ease-in-out infinite;
}

.hero__icon-box {
  width: 40px;
  height: 40px;
  background: #dcfce7; /* Light green */
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero__float-val {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

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

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__visual {
    height: 400px;
  }

  .hero__card--main {
    width: 90%;
    transform: rotate(0);
  }
}
/* --- Methodology (Bento Grid) --- */
.methodology {
  padding: 100px 0;
  background-color: var(--color-bg);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

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

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; /* Two main rows */
  gap: 24px;
  /* Layout Visual:
       [ Large ] [ Large ] [ Tall  ]
       [ Wide  ] [ Wide  ] [ Tall  ]
       [ Standard ] ... actually let's adjust for 4 items
    */
  grid-template-areas:
    "large large tall"
    "wide wide tall"
    "standard standard standard"; /* Mobile fallback logic mostly */
}

/* Desktop override for correct Bento shape */
@media (min-width: 992px) {
  .bento-grid {
    grid-template-areas:
      "large large tall"
      "wide wide tall"
      "standard standard tall"; /* Example adjustment if needed, but let's stick to 4 items specific layout */
    /* Let's redefine for 4 items:
           1 (Large) - 2x2
           2 (Wide) - 2x1
           3 (Tall) - 1x2
           4 (Standard) - 1x1
        */
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-areas:
      "large wide wide"
      "large tall standard";
  }
}

/* Base Card Style */
.bento-card {
  border-radius: var(--radius-lg); /* Hyper-rounded 30px+ */
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Hover Effects */
.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

/* Grid Area Assignments */
.bento-card--large {
  grid-area: large;
}
.bento-card--wide {
  grid-area: wide;
}
.bento-card--tall {
  grid-area: tall;
}
.bento-card--standard {
  grid-area: standard;
}

/* Colors (Pastel Backgrounds) */
.bg-lavender {
  background: #eef2ff;
} /* Soft Indigo */
.bg-mint {
  background: #ecfdf5;
} /* Soft Emerald */
.bg-sky {
  background: #e0f2fe;
} /* Soft Blue */
.bg-rose {
  background: #fff1f2;
} /* Soft Rose */

/* Content Styling */
.bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.bento-content p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Large Card Specifics */
.bento-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  color: var(--color-primary);
}

.deco-circle {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
  transition: var(--transition);
}

.bento-card:hover .deco-circle {
  transform: scale(1.1);
}

/* Wide Card Row Layout */
.bento-content--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.bento-visual-icon {
  font-size: 0; /* Clear text spacing */
}
.bento-visual-icon svg {
  width: 64px;
  height: 64px;
  color: var(--color-secondary);
  opacity: 0.8;
  transition: var(--transition);
}
.bento-card:hover .bento-visual-icon svg {
  transform: rotate(15deg) scale(1.1);
}

/* Tall Card Specifics */
.bento-bg-icon {
  position: absolute;
  top: -20px;
  right: -20px;
  opacity: 0.05;
  z-index: 0;
}
.bento-bg-icon svg {
  width: 200px;
  height: 200px;
  color: var(--color-text-main);
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--color-primary);
  background: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  width: fit-content;
  box-shadow: var(--shadow-card);
}

.bento-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-areas:
      "large"
      "wide"
      "tall"
      "standard";
    grid-template-columns: 1fr;
  }

  .bento-content--row {
    flex-direction: column-reverse; /* Icon on top or bottom */
    align-items: flex-start;
    gap: 20px;
  }

  .bento-card {
    min-height: 250px;
  }
}

/* --- Program (Timeline Accordion) --- */
.program {
  padding: 100px 0;
  position: relative;
  /* Легкий фоновий патерн */
  background-image: radial-gradient(#6366f1 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  background-color: #f8fafc;
}

.text-center {
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 20px 0;
}

/* Vertical Line */
.timeline__line {
  position: absolute;
  left: 40px; /* Aligned with marker center */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 2px;
  z-index: 0;
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  gap: 30px;
  z-index: 1;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Marker (Number) */
.timeline__marker {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  box-shadow: 0 0 0 8px var(--color-bg); /* Mask gap around marker */
}

/* Card Styling */
.timeline__card {
  flex-grow: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg); /* 40px rounded */
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.timeline__card:hover {
  box-shadow: var(--shadow-soft);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Accordion Header */
.timeline__header {
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}

.timeline__header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.timeline__icon {
  width: 32px;
  height: 32px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
}

/* Accordion Body (Hidden by default) */
.timeline__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.timeline__inner {
  padding: 0 32px 32px;
  color: var(--color-text-muted);
}

.timeline__list {
  margin-top: 16px;
  padding-left: 20px;
  list-style-type: disc;
}

.timeline__list li {
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.timeline__cta {
  margin-top: 24px;
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Active State (via JS) */
.timeline__item.is-open .timeline__icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #fff;
}

.timeline__item.is-open .timeline__header h3 {
  color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .timeline__line {
    left: 20px;
  }

  .timeline__marker {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-width: 2px;
  }

  .timeline__item {
    gap: 15px;
  }

  .timeline__header {
    padding: 20px;
  }

  .timeline__header h3 {
    font-size: 1.1rem;
  }

  .timeline__inner {
    padding: 0 20px 20px;
  }
}

/* --- Mentors Section --- */
.mentors {
  padding: 100px 0;
  background-color: var(--color-surface);
}

.mentors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* Arch Card Design */
.mentor-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: var(--transition);
}

.mentor-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1; /* Slightly taller than square */
  border-radius: 200px 200px 24px 24px; /* The ARCH shape */
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.mentor-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Hover Effect: Image Zoom & Socials Reveal */
.mentor-card:hover .mentor-card__img {
  transform: scale(1.05);
}

.mentor-card__socials {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.mentor-card:hover .mentor-card__socials {
  opacity: 1;
  transform: translateY(0);
}

.mentor-card__socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mentor-card__socials a:hover {
  background: var(--color-primary);
  color: #fff;
}

.mentor-card__content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text-main);
}

.mentor-card__role {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mentor-card__content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: 0 10px;
}

/* --- FAQ Section --- */
.faq {
  padding: 100px 0;
  background-color: #f1f5f9; /* Slightly darker than main bg for contrast */
}

.faq__container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: flex-start;
}

.faq__support-box {
  margin-top: 40px;
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.faq__support-box svg {
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
}

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

/* FAQ List */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.faq-item__question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: #fafafa;
}

.faq-item__answer p {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Active FAQ State */
.faq-item.is-active {
  box-shadow: var(--shadow-soft);
}

.faq-item.is-active .faq-icon {
  transform: rotate(45deg); /* Plus becomes X */
  color: var(--color-secondary);
}

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

  .faq__support-box {
    display: none; /* Hide decorative box on mobile to save space */
  }
}
/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  position: relative;
  background-color: var(--color-bg);
  overflow: hidden;
}

/* Decorative Glow Background */
.contact__bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.contact__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Left Side */
.contact__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__benefits li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  color: var(--color-text-main);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  background: #ecfdf5;
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 18px;
  height: 18px;
}

/* Right Side: Form Wrapper */
.contact__form-wrapper {
  perspective: 1000px;
}

.contact__form {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-lg); /* 40px */
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
}

/* Input Fields (Floating Label) */
.input-group {
  position: relative;
  margin-bottom: 24px;
}

.form-input {
  width: 100%;
  padding: 16px 24px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full); /* Pill shape */
  background: #f8fafc;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  color: var(--color-text-main);
  font-family: var(--font-body);
}

.form-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Label styling */
.form-label {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  transition: var(--transition);
  background: transparent;
  padding: 0 4px;
  font-size: 1rem;
}

/* Floating Label Logic: Focus or Not Empty */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 600;
}

/* Validation Error Styles */
.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  padding-left: 24px;
}

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

.input-group.error .error-msg {
  display: block;
}

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

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  user-select: none;
}

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

.checkmark {
  height: 22px;
  width: 22px;
  background-color: #f1f5f9;
  border-radius: 6px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.checkmark svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

/* Checkbox Checked State */
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.custom-checkbox input:checked ~ .checkmark svg {
  opacity: 1;
  transform: scale(1);
}

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

/* Custom Captcha Box */
.captcha-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.captcha-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-checkmark {
  border-radius: 4px; /* More square for captcha feel */
  width: 26px;
  height: 26px;
}

/* Captcha specific check style (blue) */
.captcha-label input:checked ~ .captcha-checkmark {
  background-color: #3b82f6; /* Google blue-ish */
  border-color: #3b82f6;
}

/* Checkmark generation via CSS for captcha (classic check) */
.captcha-checkmark::after {
  content: "";
  display: none;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.captcha-label input:checked ~ .captcha-checkmark::after {
  display: block;
}

.captcha-icon svg {
  width: 32px;
  height: 32px;
  color: #cbd5e1;
}

.btn--full {
  width: 100%;
}

/* Success State */
.form-success {
  display: none; /* Hidden initially */
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #ecfdf5;
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

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

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

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

  .contact__text {
    text-align: center;
  }

  .contact__desc {
    margin: 0 auto 30px;
  }

  .contact__benefits {
    align-items: center; /* Center list items */
  }
}

.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 20px 30px;
  border-radius: var(--radius-full); /* Pill shape */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  border: 1px solid var(--color-border);
}

.cookie-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-icon {
  color: var(--color-secondary);
  display: flex;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

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

@media (max-width: 600px) {
  .cookie-popup {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 24px;
    bottom: 20px;
  }

  .cookie-content {
    flex-direction: column;
  }
}

/* --- Legal Pages Styling (.pages) --- */
.pages {
  padding: 160px 0 100px; /* Offset for fixed header */
  min-height: 80vh;
}

.pages {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

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

.pages p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.pages ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.pages li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.pages li::before {
  content: "•";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.pages a:hover {
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .pages {
    padding: 30px;
  }
  .pages h1 {
    font-size: 2rem;
  }
}
