/* --- Global Variables --- */
:root {
  --color-bg: #ffffff;
  --color-text: #1e293b; /* Slate 800 */
  --color-text-light: #64748b; /* Slate 500 */

  --color-primary: #4f46e5; /* Indigo 600 */
  --color-primary-hover: #4338ca;
  --color-accent: #06b6d4; /* Cyan 500 */
  --color-dark: #0f172a; /* Slate 900 - Footer bg */
  --color-light-bg: #f1f5f9;

  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --container-width: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--color-dark);
  letter-spacing: -0.03em;
}

.logo__icon {
  height: 32px;
  width: auto;
}

.logo--light {
  color: white;
}

/* Nav Desktop */
.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

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

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-active {
  transform: translateX(0);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  text-align: center;
}

.mobile-menu__link {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
}

.mobile-menu__btn {
  width: 100%;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-dark);
  color: #fff;
  padding: 80px 0 30px;
  margin-top: auto; /* Push to bottom if content is short */
}

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

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

.footer__desc {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  color: white;
}

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

.footer__link {
  color: #94a3b8;
  font-size: 14px;
}

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

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #94a3b8;
  font-size: 14px;
}

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

.footer__bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .header__burger {
    display: block;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* --- Hero Section --- */
.hero {
  padding: 140px 0 80px; /* Відступ зверху для фіксованого хедера */
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05), transparent 40%);
}

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

/* Content Side */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__badge i {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.hero__title span {
  color: var(--color-primary);
}

.hero__description {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

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

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn--outline {
  background: transparent;
  border: 2px solid rgba(15, 23, 42, 0.1);
  color: var(--color-dark);
  box-shadow: none;
  gap: 8px;
}

.btn--outline:hover {
  border-color: var(--color-dark);
  background: transparent;
  transform: translateY(-2px);
}

.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);
}

.hero__stat-label {
  font-size: 14px;
  color: var(--color-text-light);
}

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

/* Декоративні картки */
.code-card {
  position: absolute;
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  z-index: 2;
}

.code-card--1 {
  width: 280px;
  height: 180px;
  top: 10%;
  right: 10%;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  animation: float 6s ease-in-out infinite;
}

.code-card__header {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

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

.code-line {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 12px;
}
.w-80 {
  width: 80%;
}
.w-60 {
  width: 60%;
}
.w-40 {
  width: 40%;
}

.code-card--2 {
  bottom: 15%;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  animation: float 7s ease-in-out infinite reverse;
}

.code-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.code-card__text {
  display: flex;
  flex-direction: column;
}

.code-card__text span {
  font-size: 12px;
  color: var(--color-text-light);
}

.code-card__text strong {
  color: var(--color-dark);
}

/* Фонове світіння/кола */
.hero__circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  filter: blur(80px);
}

.hero__circle--1 {
  width: 300px;
  height: 300px;
  background: rgba(79, 70, 229, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__circle--2 {
  width: 200px;
  height: 200px;
  background: rgba(6, 182, 212, 0.2);
  top: 20%;
  right: 20%;
  animation: pulse 8s infinite alternate;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

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

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

  .hero__visual {
    order: 1;
    height: 350px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__stats {
    justify-content: center;
  }
}

.dud {
  color: var(--color-accent);
  opacity: 0.7;
}

/* --- Common Section Styles --- */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
}

.highlight {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Programs (Accordion) --- */
.programs__list {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.program-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.program-item__header {
  display: flex;
  align-items: center;
  padding: 30px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.program-item__header:hover .program-item__title {
  color: var(--color-primary);
}

.program-item__num {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text-light);
  margin-right: 40px;
  font-weight: 500;
}

.program-item__title {
  font-size: 24px;
  font-weight: 600;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.program-item__tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--color-light-bg);
  color: var(--color-text-light);
  margin-right: 20px;
  text-transform: uppercase;
}

.program-item__tag.new {
  background: #dcfce7; /* Green light */
  color: #166534;
}

.program-item__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Accordion Active State */
.program-item.active .program-item__arrow {
  transform: rotate(180deg);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

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

.program-item__content {
  padding: 0 0 40px 60px; /* offset to align with title */
  color: var(--color-text-light);
}

.program-item__features {
  margin: 24px 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.program-item__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--color-dark);
}

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

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

.info-text {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
}

/* --- Methodology (Bento Grid) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 24px;
}

.bento-box {
  background: #fafafa;
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.bento-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--color-primary);
}

.bento-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.bento-box p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Grid Layout Specifics */
.bento-box--large {
  grid-column: span 2;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-box--tall {
  grid-row: span 2;
  background: linear-gradient(145deg, #f8fafc, #eff6ff);
}

.bento-box--dark {
  background: var(--color-dark);
  color: white;
}

.bento-box--dark h3 {
  color: white;
}

.bento-box--dark p {
  color: #94a3b8;
}

.bento-box--dark .bento-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

/* Bento details */
.bento-img {
  margin-top: auto;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.8;
}

.mentor-avatars {
  display: flex;
  margin-top: auto;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid white;
  margin-left: -10px;
}
.avatar:first-child {
  margin-left: 0;
}
.avatar:nth-child(1) {
  background-color: #ffadad;
}
.avatar:nth-child(2) {
  background-color: #ffd6a5;
}
.avatar:nth-child(3) {
  background-color: #fdffb6;
}

.link-arrow {
  margin-top: auto;
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-arrow:hover {
  gap: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-box--large {
    grid-column: span 2;
  }
  .bento-box--tall {
    grid-row: span 1;
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .program-item__num {
    display: none;
  }
  .program-item__content {
    padding-left: 0;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-box--large,
  .bento-box--tall {
    grid-column: span 1;
  }
}

/* --- Career Section --- */
.career__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.career__list {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.career__item {
  display: flex;
  gap: 20px;
}

.career__icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.career__item h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.career__item p {
  color: var(--color-text-light);
  font-size: 14px;
}

/* Visual Graph */
.career__visual {
  position: relative;
  padding: 20px;
}

.salary-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.salary-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-weight: 600;
  color: var(--color-text-light);
}

.chart-row {
  margin-bottom: 20px;
}

.chart-label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.chart-bar-bg {
  width: 100%;
  height: 36px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  background: #94a3b8;
  width: 0; /* JS will animate this */
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar--accent {
  background: var(--color-accent);
}
.bar--primary {
  background: var(--color-primary);
}

.salary-card__footer {
  margin-top: 20px;
  font-size: 12px;
  color: #cbd5e1;
  text-align: right;
}

/* Floating Hiring Badge */
.hiring-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-dark);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 5s ease-in-out infinite;
}

.hiring-avatars {
  display: flex;
}

.h-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  color: var(--color-dark);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-dark);
  margin-left: -8px;
}
.h-avatar:first-child {
  margin-left: 0;
}

/* --- Reviews Section --- */
.reviews {
  background: linear-gradient(to bottom, white, #f8fafc);
}

.reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.reviews__nav {
  display: flex;
  gap: 12px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.reviews__scroll-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 30px;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar */
  scrollbar-width: none;
  padding-right: 20px; /* Safe padding */
}

.reviews__scroll-container::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-width: 350px;
  max-width: 350px;
  scroll-snap-align: start;
  background: white;
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.review-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.review-user h4 {
  font-size: 16px;
  color: var(--color-dark);
}

.review-user span {
  font-size: 12px;
  color: var(--color-text-light);
}

.review-rating {
  color: #f59e0b; /* Amber 500 */
  letter-spacing: 2px;
}

.review-text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 992px) {
  .career__grid {
    grid-template-columns: 1fr;
  }
  .career__visual {
    order: -1; /* Graphic first on mobile */
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .reviews__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .review-card {
    min-width: 280px;
  }
}

/* --- Contact Section --- */
.contact {
  background: var(--color-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Декоративний фон для контактів */
.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
  z-index: 1;
}

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

.contact .section-title {
  color: white;
}

.contact .section-subtitle {
  color: #94a3b8;
}

.contact__info-box {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 15px;
}

.info-row i {
  color: var(--color-accent);
  width: 20px;
  height: 20px;
}

/* Form Styles */
.contact__form-wrapper {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 16px;
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form__error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* Checkbox */
.form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  margin-top: 3px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.4;
  cursor: pointer;
}

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

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

/* Captcha */
.captcha-group {
  background: #f8fafc;
  padding: 15px;
  border-radius: var(--radius-sm);
  border: 1px dashed #cbd5e1;
}

/* Success Message */
.success-message {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

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

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

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Hidden initially */
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: 20px 0;
  transition: bottom 0.5s ease;
}

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

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  font-size: 14px;
  color: var(--color-text);
}

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

/* --- Generic Pages Styles (Policy pages) --- */
.pages {
  padding: 120px 0 60px; /* Offset for fixed header */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Narrower for readability */
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 32px;
  color: var(--color-dark);
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.pages p {
  margin-bottom: 16px;
  color: var(--color-text);
}

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

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

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

@media (max-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
