/* --- VARIABLES: Airy Pastel & Soft Round Theme --- */
:root {
  /* Colors */
  --bg-body: #f7f9fc;
  --bg-white: #ffffff;

  --primary: #4da8da; /* Sky Blue - Soft & Trust */
  --primary-hover: #3b8cc0;
  --secondary: #ffb7b2; /* Pastel Coral - Friendly Accent */

  --text-main: #2c3e50; /* Dark Blue-Grey */
  --text-muted: #7f8c8d;

  --border-color: #e2e8f0;

  /* Spacing & Layout */
  --container-width: 1240px;
  --header-height: 90px;
  --radius-xl: 30px; /* Hyper-rounded */
  --radius-l: 20px;
  --radius-full: 999px;

  /* Effects */
  --shadow-soft: 0 10px 40px -10px rgba(77, 168, 218, 0.15);
  --shadow-hover: 0 20px 50px -15px rgba(77, 168, 218, 0.25);

  /* Font */
  --font-main: "Outfit", sans-serif;
}

/* --- 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(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;

  padding-top: var(--header-height);
}

html,
body {
  overflow-x: hidden;
}

ul {
  list-style: none;
}

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

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: 14px 32px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

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

.btn--primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(77, 168, 218, 0.4);
}

/* --- HEADER --- */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  height: var(--header-height);

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

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

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

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

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

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

/* Micro-interaction: Hover Underline Scale */
.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
}

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

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

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

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-white);
  padding: 80px 0 30px;
  margin-top: 60px;
  border-top-left-radius: 60px; /* Big rounded top corners for footer */
  border-top-right-radius: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

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

.footer__desc {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer__menu li {
  margin-bottom: 14px;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: transform 0.2s;
  display: inline-block;
}

.footer__link:hover {
  color: var(--primary);
  transform: translateX(5px); /* Micro-interaction: shift right */
}

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

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

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

/* --- RESPONSIVE (Mobile First Logic) --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  }

  .header__nav.active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
  }

  .header__burger {
    display: block;
  }

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

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

  .footer__contact-list li {
    justify-content: center;
  }

  .footer {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }
}

/* --- HERO SECTION --- */
.hero {
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
  /* Soft gradient background */
  background: linear-gradient(135deg, #f7f9fc 0%, #ebf4f8 100%);
}

.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-color: rgba(77, 168, 218, 0.1);
  color: var(--primary);
  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: 700;
  margin-bottom: 24px;
  color: var(--text-main);
}

.text-highlight {
  color: var(--primary);
  position: relative;
  z-index: 1;
  display: inline-block;
}

/* Underline decoration for highlight */
.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(255, 183, 178, 0.4); /* Pastel Coral transparent */
  z-index: -1;
  border-radius: 4px;
}

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

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

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

.hero__note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.hero__avatars {
  display: flex;
}

.hero__avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  display: block;
}
.hero__avatars span:first-child {
  margin-left: 0;
}

/* Visual Side */
.hero__visual {
  position: relative;
  perspective: 1000px; /* For 3D effect */
}

.hero__image-wrapper {
  position: relative;
  z-index: 2;
  transition: transform 0.1s ease-out; /* Smooth follow */
}

.hero__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl); /* Hyper-rounded 30px+ */
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Floating Elements */
.hero__float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.hero__float-card--top {
  top: -30px;
  right: -20px;
}

.hero__float-card--bottom {
  bottom: 40px;
  left: -40px;
  animation-delay: 2s;
}

.icon-up {
  color: #27ae60;
  background: #e8f8f5;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.icon-check {
  color: var(--primary);
}

.block-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.block-val {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* Blobs behind image */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.6;
  filter: blur(40px);
}

.hero__blob--1 {
  width: 300px;
  height: 300px;
  background-color: rgba(77, 168, 218, 0.2);
  top: -50px;
  right: -50px;
}

.hero__blob--2 {
  width: 200px;
  height: 200px;
  background-color: rgba(255, 183, 178, 0.3);
  bottom: -30px;
  left: 20px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Animations Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

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

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__desc {
    margin: 0 auto 30px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero__float-card--top {
    right: 0;
  }
  .hero__float-card--bottom {
    left: 0;
  }
}

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

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

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

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

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

/* --- BENTO GRID (About) --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Asymmetric columns */
  grid-template-rows: auto auto;
  gap: 30px;
}

.bento-card {
  background-color: #fff;
  border-radius: var(--radius-xl); /* 30px rounded corners */
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Specific Sizes */
.bento-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3; /* Spans 2 rows vertically */
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

/* Color Themes */
.bg-coral {
  background-color: #fff5f5; /* Very light coral */
  border-color: #ffe0e0;
}

.bg-blue {
  background-color: #f0f9ff; /* Very light blue */
  border-color: #e0f2fe;
}

/* Content Styling */
.bento-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--text-main);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  align-self: flex-start;
}

.bento-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.bento-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Decorative Icon in Large Card */
.bento-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.05;
  transform: rotate(-15deg);
  transition: transform 0.5s ease;
}

.deco-icon {
  width: 200px;
  height: 200px;
  color: var(--text-main);
}

.bento-card:hover .bento-decoration {
  transform: rotate(0deg) scale(1.1);
}

/* Icons & Stats */
.icon-circle {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.stat-box {
  background-color: #fff;
  padding: 15px 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(77, 168, 218, 0.1);
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

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

@media (max-width: 992px) {
  .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;
  }
}

.mentors {
  background-color: var(--bg-white);
}

.mentors__header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-main);
}

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

/* Slider Area */
.mentors__slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mentors__slider::-webkit-scrollbar {
  display: none;
}

.mentor-card {
  min-width: 350px;
  max-width: 350px;
  background-color: var(--bg-body);
  border-radius: var(--radius-xl);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mentor-card:hover {
  transform: translateY(-5px);
}

.mentor-card__img-box {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

.mentor-card:hover .mentor-card__img {
  transform: scale(1.05);
}

.mentor-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mentor-card__content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mentor-card__name {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

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

.mentor-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1; /* Pushes button to bottom */
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.link-arrow:hover {
  color: var(--primary);
  gap: 10px; /* Slight movement animation */
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .mentors__header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .mentor-card {
    min-width: 280px;
    max-width: 280px;
  }
}

/* --- BLOG SECTION --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.blog-card__img-box {
  position: relative;
  height: 200px;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__date {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.blog-card__body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text-main);
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.2s;
}

.blog-card__link:hover {
  gap: 12px;
  text-decoration: underline;
}

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

.faq-item {
  background: #fff;
  border-radius: var(--radius-l);
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.3s;
}

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

.faq-icon {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item__trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

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

.faq-item__trigger[aria-expanded="true"] + .faq-item__content {
  max-height: 200px;
  transition: max-height 0.4s ease-in-out;
}

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

  .faq__content {
    text-align: center;
  }

  .section-title,
  .section-subtitle {
    text-align: center !important;
  }

  .faq__content .btn {
    margin: 0 auto;
    display: inline-flex;
  }
}

.contact {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

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

/* Left Info */
.contact__info .section-title,
.contact__info .section-subtitle {
  text-align: left;
}

.contact__benefits {
  margin-top: 40px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(77, 168, 218, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

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

/* Form Card */
.contact__form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-main);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 20px;
  height: 20px;
  transition: color 0.3s;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 50px; /* Space for icon */
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-l);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: all 0.3s;
  outline: none;
  color: var(--text-main);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(77, 168, 218, 0.1);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.form-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 6px;
  display: block;
}

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

.captcha-group {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: center;
}

.custom-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  position: relative;
}

.custom-captcha input {
  display: none;
}

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

/* Checkmark logic for Captcha */
.custom-captcha input:checked + .captcha-box {
  border-color: #4da8da;
  background-color: #4da8da;
}

.custom-captcha input:checked + .captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-size: 0.95rem;
  color: #333;
}

.captcha-logo {
  margin-left: auto;
  width: 30px;
  opacity: 0.7;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  top: 2px;
  transition: all 0.2s;
}

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

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

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

/* Success State */
.form-success {
  display: none;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-xl);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

.form-success.active {
  display: flex;
}

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

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

.form-success h3 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .contact__form-wrapper {
    padding: 30px 20px;
  }
}

/* --- COOKIE POP-UP --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Hidden initially */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(77, 168, 218, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  padding: 16px 24px;
  z-index: 9999;
  transition: bottom 0.5s ease-out;
}

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

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

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

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-main);
  flex-grow: 1;
}

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

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

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

/* --- LEGAL PAGES STYLING (Privacy, Terms, etc.) --- */
/* Цей блок стилів застосовується для сторінок типу privacy.html */

.pages {
  padding: 140px 0 80px; /* Extra top padding because of fixed header */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Narrower width for better reading experience */
  background: #fff;
  padding: 60px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.pages h1 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.2;
}

.pages h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

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

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

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

/* Bullet point styling */
.pages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
}

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

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

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