:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-primary: #000000;
  --color-primary-dark: #111111;
  --color-accent: #666666;
  --color-text-main: #222222;
  --color-text-muted: #555555;
  --color-border-subtle: #d8d8d8;

  --radius-pill: 999px;
  --radius-card: 10px;

  --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.15);

  /* Sticky header approximate height — used so hero fills first screen */
  --header-height: 3.35rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--color-primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
  gap: 1rem;
}

.brand {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-size: 1rem;
}

.main-nav {
  display: none;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.header-cta {
  font-size: 0.78rem;
  padding-block: 0.45rem;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
}

/* Mobile nav behaviour */

body.nav-open .main-nav {
  display: block;
  position: absolute;
  inset: 100% 0 auto 0;
  padding: 0.75rem 1.25rem 1rem;
  background-color: var(--color-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.nav-open .nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(1px);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding-inline: 1.5rem;
}

.btn-outline:hover {
  background-color: #f4f4f4;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* One full viewport below the header (no peek of next section) */
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  color: #ffffff;
  overflow: hidden;
  background-color: #111111;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transform: scale(1.03);
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background-image: url("https://images.pexels.com/photos/439391/pexels-photo-439391.jpeg?auto=compress&cs=tinysrgb&w=1200");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transform: scale(1.03);
  display: none;
}

.hero-fallback.show {
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.94),
      rgba(0, 0, 0, 0.74),
      rgba(0, 0, 0, 0.97)
    );
  z-index: 2;
}

.hero-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: clamp(2rem, 4vh, 3.5rem);
  z-index: 3;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
  max-width: min(42rem, 90vw);
}

.eyebrow.center {
  text-align: center;
  color: var(--color-text-muted);
}

.hero h1 {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  max-width: min(48rem, 92vw);
}

.accent {
  color: var(--color-accent);
}

.hero .accent {
  color: #b0b0b0;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.65;
  max-width: min(36rem, 92vw);
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn-primary {
  font-size: 0.9rem;
  padding-block: 0.65rem;
  padding-inline: 1.5rem;
}

/* Testimonial */

.testimonial {
  background-color: var(--color-primary);
  color: #ffffff;
  padding-block: 2rem;
}

.testimonial-inner {
  text-align: center;
  max-width: 32rem;
}

.testimonial-carousel {
  position: relative;
  min-height: 120px;
  margin-bottom: 1.5rem;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.testimonial-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.testimonial-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonial-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.testimonial-indicators .indicator:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.testimonial-indicators .indicator.active {
  background-color: var(--color-accent);
}

/* Projects (Before/After Slider) */

.projects {
  background-color: #ffffff;
  padding-block: 2.75rem 3rem;
}

.projects-header {
  margin-bottom: 1.75rem;
}

.projects-slider {
  position: relative;
  overflow: hidden;
}

.projects-track {
  display: flex;
  gap: 1.25rem;
  animation: projects-scroll 28s linear infinite;
}

.project-card {
  border-radius: 14px;
  overflow: hidden;
  background-color: #f5f5f5;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  flex: 0 0 80%;
  max-width: 80%;
}

.project-image {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 5:3-ish aspect ratio */
  overflow: hidden;
}

.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-img[src=""],
.project-img:not([src]) {
  background-color: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img[src=""]::after,
.project-img:not([src])::after {
  content: "Image not available";
  color: #999;
  font-size: 0.85rem;
}

.project-img.before {
  opacity: 0;
  transform: scale(1.02);
}

.project-img.after {
  opacity: 1;
}

.project-card:hover .project-img.before {
  opacity: 1;
  transform: scale(1);
}

.project-card:hover .project-img.after {
  opacity: 0;
  transform: scale(1.02);
}

.project-label {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  pointer-events: none;
}

.label-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.label-pill-after {
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
}

.label-pill-before {
  background-color: rgba(255, 255, 255, 0.9);
  color: #111827;
}

.projects-arrow {
  display: none;
}

/* Pause scroll on hover */
.projects-slider:hover .projects-track {
  animation-play-state: paused;
}

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

/* Steps */

.steps {
  background-color: #ececec;
  padding-block: 3rem;
}

.section-title {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.75rem;
}

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

.section-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 2.25rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.step {
  max-width: 26rem;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.step-icon span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.step h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Why Choose Us */

.why-us {
  padding-block: 3rem 4rem;
  background: radial-gradient(circle at top left, #ffffff 0, #f4f6fb 45%, #eef1f7 100%);
}

.why-us-header {
  margin-bottom: 2rem;
}

.divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-primary);
  margin-top: 0.75rem;
}

.why-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.why-card {
  --why-offset: 0px;
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08), 0 22px 44px rgba(15, 23, 42, 0.09);
  display: flex;
  flex-direction: column;
  transform: translateY(var(--why-offset));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.why-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.why-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.why-body h3 {
  font-size: 0.98rem;
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.why-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.why-card:hover {
  transform: translateY(calc(var(--why-offset) - 6px));
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1), 0 30px 62px rgba(15, 23, 42, 0.16);
}

/* CTA Footer */

.cta-footer {
  background-color: var(--color-primary);
  color: #ffffff;
  padding-block: 2.75rem;
}

.cta-footer-inner {
  text-align: center;
  max-width: 32rem;
}

.cta-footer-inner h2 {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.cta-footer-inner p {
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* In-page nav targets (sticky header offset) */

#top {
  scroll-margin-top: 4.5rem;
}

/* About section (home page one-pager) */

#about {
  scroll-margin-top: 4.5rem;
}

.about-story {
  background-color: var(--color-surface);
  padding-block: 3rem 4rem;
}

.about-story__container {
  padding-inline: 1.25rem;
}

.about-story__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-story__media {
  position: relative;
  order: 0;
}

.about-story__copy {
  order: 1;
}

.about-story__title {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--color-text-main);
}

.about-story__figure {
  margin: 0;
  position: relative;
  z-index: 2;
}

.about-story__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.about-story__card {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 70%;
  height: 60%;
  background-color: #e8e8e8;
  border-radius: var(--radius-card);
  z-index: 1;
}

.about-story__headline {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.34;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.about-story__copy p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .about-story__title {
    font-size: 1.9rem;
    margin-bottom: 1.25rem;
  }

  .about-story__grid {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .about-story__media {
    flex: 0 1 45%;
    order: 0;
  }

  .about-story__image {
    max-height: 520px;
  }

  .about-story__copy {
    flex: 0 1 50%;
  }

  .about-story__headline {
    font-size: 1.8rem;
  }
}

@media (min-width: 960px) {
  .about-story__title {
    font-size: 2.1rem;
  }
}

/* Joint Venture Community (below About) */

#joint-ventures {
  scroll-margin-top: 4.5rem;
}

.jv-community {
  background-color: var(--color-bg);
  padding-block: 3rem 3.5rem;
}

.jv-community__container {
  padding-inline: 1.25rem;
}

.jv-community__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.jv-community__media {
  position: relative;
  z-index: 1;
}

.jv-community__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
  border: 3px solid #2a5f5f;
  box-shadow: var(--shadow-soft);
}

.jv-community__panel {
  position: relative;
  z-index: 2;
  background-color: #e8e8e8;
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
}

.jv-community__title {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--color-text-main);
}

.jv-community__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-main);
  margin: 0;
}

.jv-community__cta {
  align-self: flex-end;
  margin-top: 1.35rem;
}

@media (min-width: 768px) {
  .jv-community {
    padding-block: 3.5rem 4rem;
  }

  .jv-community__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 0;
    align-items: center;
  }

  .jv-community__panel {
    margin-left: -18%;
    padding: 2rem 2.25rem;
  }

  .jv-community__title {
    font-size: 1.85rem;
  }
}

@media (min-width: 960px) {
  .jv-community__panel {
    margin-left: -20%;
    padding: 2.25rem 2.5rem;
  }

  .jv-community__title {
    font-size: 2rem;
  }
}

/* Footer */

.site-footer {
  background-color: #0b0f10;
  color: rgba(255, 255, 255, 0.7);
  padding-block: 1.25rem;
  font-size: 0.8rem;
}

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

/* Layout for larger screens */

@media (min-width: 768px) {
  :root {
    --header-height: 3.45rem;
  }

  .hero-content {
    padding-block: clamp(2.5rem, 5vh, 4rem);
  }

  .hero .eyebrow {
    font-size: 0.88rem;
    letter-spacing: 0.065em;
    margin-bottom: 1.15rem;
    max-width: min(46rem, 72vw);
  }

  .hero h1 {
    font-size: clamp(2.85rem, 4.2vw + 1.5rem, 3.35rem);
    line-height: 1.18;
    max-width: min(52rem, 72vw);
    margin-bottom: 1.75rem;
  }

  .hero-note {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: min(40rem, 72vw);
  }

  .hero .btn-primary {
    font-size: 0.95rem;
    padding-block: 0.72rem;
    padding-inline: 1.65rem;
  }

  /* Desktop header nav */
  .main-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .project-card {
    flex: 0 0 32%;
    max-width: 32%;
  }

  .steps-list {
    flex-direction: row;
    justify-content: space-between;
  }

  .step {
    flex: 1 1 0;
  }

  .why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.4rem;
    row-gap: 1.75rem;
  }

  .why-card {
    width: 100%;
    max-width: 30rem;
  }

  .why-card:nth-child(odd) {
    justify-self: start;
    --why-offset: 0px;
  }

  .why-card:nth-child(even) {
    justify-self: end;
    --why-offset: 2rem;
  }
}

@media (min-width: 960px) {
  :root {
    --header-height: 3.65rem;
  }

  .header-inner {
    padding-block: 0.85rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .hero .eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-bottom: 1.35rem;
    max-width: min(50rem, 68vw);
  }

  .hero h1 {
    font-size: clamp(3.35rem, 3.5vw + 1.85rem, 4.25rem);
    line-height: 1.15;
    max-width: min(58rem, 68vw);
    margin-bottom: 2rem;
  }

  .hero-note {
    font-size: 1.15rem;
    line-height: 1.68;
    max-width: min(44rem, 62vw);
  }

  .hero .btn-primary {
    font-size: 1rem;
    padding-block: 0.8rem;
    padding-inline: 1.85rem;
  }

  .why-body {
    padding: 1.25rem 1.4rem 1.5rem;
  }
}

/* Consultation Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  height: min(600px, calc(100dvh - 2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background-color: #f0f0f0;
  color: #000;
}

.modal-content {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.consultation-info {
  flex: 0 0 45%;
  min-width: 0;
  min-height: 0;
  padding: 1.35rem 1.15rem;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.consultation-header {
  text-align: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.consultation-info .consultation-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.5rem;
  border: 3px solid var(--color-primary);
}

.consultation-avatar--logo {
  border: none;
  background-color: #ffffff;
  padding: 0.45rem;
  box-sizing: border-box;
}

.consultation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.consultation-info h2 {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-text-main);
}

.consultation-description {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.5;
  text-align: left;
  flex-shrink: 0;
}

.consultation-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
}

.consultation-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.consultation-step__icon {
  flex-shrink: 0;
  width: 2.125rem;
  height: 2.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #f0f0f0;
  color: var(--color-primary);
}

.consultation-step__icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.consultation-step__text {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-main);
  padding-top: 0.12rem;
}

.consultation-discussion {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}

.survey-section {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 1.35rem 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Lato", sans-serif;
}

.survey-section h2 {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--color-text-main);
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Direct labels only — questions / field names (not nested radio/checkbox options) */
.form-group > label {
  font-family: "Lato", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  padding: 0.65rem 0.85rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: "Lato", sans-serif;
  transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

.checkbox-group {
  gap: 0.75rem;
}

.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.checkbox-label span,
.radio-label span {
  line-height: 1.4;
}

.btn-submit {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  width: 50%;
  align-self: flex-end;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--color-primary-dark);
}

/* Scrollbar styling for survey section */
.survey-section::-webkit-scrollbar {
  width: 8px;
}

.survey-section::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.survey-section::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.survey-section::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.consultation-info::-webkit-scrollbar {
  width: 6px;
}

.consultation-info::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.consultation-info::-webkit-scrollbar-thumb {
  background: #c8c8c8;
  border-radius: 3px;
}

.consultation-info::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

@media (max-width: 900px) {
  .modal-container {
    max-width: 95%;
    height: min(88vh, 720px);
    max-height: 92vh;
  }

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

  .consultation-info {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    max-height: none;
    padding: 1.5rem;
  }

  .survey-section {
    flex: 1;
    min-height: 0;
    padding: 1.5rem;
  }

  .consultation-header {
    margin-bottom: 1rem;
  }

  .consultation-info .consultation-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 0.5rem;
  }

  .consultation-info h2,
  .survey-section h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .modal-container {
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .consultation-info,
  .survey-section {
    padding: 1.25rem;
  }

  .btn-submit {
    width: 100%;
    align-self: stretch;
  }
}
