/* Project Popup Modal — Figma PopUp 19039:820 (1600×837) */

.project-popup-modal.modal {
  padding-right: 0 !important;
}

.project-popup-modal .modal-dialog,
.project-popup-modal .modal-dialog.project-popup-dialog {
  max-width: 1600px !important;
  width: 94vw !important;
  margin: 1.5rem auto !important;
}

.project-popup-modal .modal-content {
  background: transparent !important;
  border: none !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
}

.project-popup {
  background: #08131d;
  border-radius: 20px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  width: 100%;
}

.project-popup img {
  max-width: 100%;
  height: auto;
}

.project-popup__body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: auto;
  min-height: 0;
}

/* ===== LEFT (873/1600 ≈ 54.56%) ===== */
.project-popup__left {
  flex: 0 0 54.5625%;
  width: 54.5625%;
  max-width: 54.5625%;
  background-color: #08131d;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  position: relative;
  color: #fff;
}

.project-popup__left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 25, 38, 0.45);
  pointer-events: none;
  z-index: 0;
}

.project-popup__left-inner {
  position: relative;
  z-index: 1;
  padding: 4.1875% 6.43% 4.5% 6.43%;
  /* ~67/56 relative to left panel */
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.project-popup__headline {
  color: #f47a1f;
  font-size: clamp(28px, 3.25vw, 52px);
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: -0.02em;
  margin: 0 0 0.35em;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.project-popup__intro {
  color: #fff;
  opacity: 0.8;
  font-size: clamp(14px, 1.125vw, 18px);
  font-weight: 400;
  line-height: 1.78;
  margin: 0 0 1.6em;
  max-width: 677px;
}

.project-popup__intro strong {
  font-weight: 700;
}

/* Awards — always one horizontal row on desktop */
.project-popup__awards {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8%;
  margin-bottom: 5%;
  width: 100%;
}

.project-popup__awards img {
  flex: 1 1 0;
  width: auto;
  height: auto;
  max-width: 114px !important;
  max-height: 83px;
  aspect-ratio: 114 / 83;
  object-fit: contain;
  min-width: 0;
}

/* Testimonial */
.project-popup__testimonial {
  display: flex;
  align-items: center;
  margin-top: auto;
  position: relative;
  width: 100%;
}

.project-popup__testimonial-card {
  flex: 1;
  background: rgba(16, 36, 54, 0.9);
  border-radius: clamp(16px, 1.875vw, 30px);
  padding: 5.3% 7.5% 4.6%;
  min-height: clamp(180px, 18vw, 287px);
  position: relative;
  box-sizing: border-box;
}

.project-popup__quote {
  width: clamp(24px, 2.125vw, 34px);
  height: clamp(24px, 2.125vw, 34px);
  margin-bottom: clamp(16px, 2.25vw, 36px);
  display: block;
}

.project-popup__slides {
  position: relative;
}

.project-popup__slide {
  display: none;
}

.project-popup__slide.is-active {
  display: block;
}

.project-popup__slide-text {
  color: #fff;
  opacity: 0.8;
  font-size: clamp(14px, 1.125vw, 18px);
  font-weight: 400;
  line-height: 1.78;
  margin: 0 0 1.5em;
  max-width: 100%;
}

.project-popup__slide-text strong {
  font-weight: 700;
}

.project-popup__author {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 19px);
}

.project-popup__author img,
.project-popup__avatar {
  /* width: clamp(32px, 2.7vw, 43px);
  height: clamp(32px, 2.7vw, 43px); */
  height: 30px;
  width: 30px;
  /* border-radius: 50%;
  object-fit: cover; */
  /* background: #cfcfcf; */
  display: inline-block;
  flex-shrink: 0;
}

.project-popup__author span {
  color: #fff;
  /* opacity: 0.8; */
  font-size: clamp(14px, 1.125vw, 18px);
  font-weight: 700;
  line-height: 1.78;
}

.project-popup__nav {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
  line-height: 0;
  transition: opacity 0.2s ease;
  width: clamp(28px, 2.56vw, 41px);
  height: clamp(28px, 2.56vw, 41px);
}

.project-popup__nav:hover {
  opacity: 0.75;
}

.project-popup__nav img {
  width: 100%;
  height: 100%;
  display: block;
}

.project-popup__nav--prev {
  margin-right: -1.1%;
  position: relative;
  left: -2%;
}

.project-popup__nav--prev img {
  transform: scaleX(-1);
}

.project-popup__nav--next {
  margin-left: -1.1%;
  position: relative;
  right: -2%;
}

/* ===== RIGHT (727/1600 ≈ 45.44%) ===== */
.project-popup__right {
  flex: 0 0 45.4375%;
  width: 45.4375%;
  max-width: 45.4375%;
  background: #fff;
  padding: 5.1% 5.8% 5.5%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  justify-content: center;
}

.project-popup__close {
  position: absolute;
  top: 17px;
  right: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  line-height: 0;
}

.project-popup__close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 30px;
  background: rgba(115, 115, 115, 0.1);
}

.project-popup__close-icon img {
  width: 13px;
  height: 13px;
}

.project-popup__form-title {
  color: #314252;
  font-size: clamp(18px, 1.625vw, 26px);
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: -0.02em;
  margin: 0 0 0.35em;
  padding-right: 40px;
}

.project-popup__form-desc {
  color: #3c3a3a;
  opacity: 0.7;
  font-size: clamp(13px, 1.125vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.02em;
  margin: 0 0 2.2em;
  max-width: 613px;
}

/* .project-popup__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
} */

.project-popup__field {
  margin-bottom: clamp(12px, 1.3vw, 21px);
  position: relative;
}

.project-popup__form>.row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 0;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.project-popup__form>.row>[class*="col-"] {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.project-popup__form>.row .project-popup__field {
  margin-bottom: clamp(12px, 1.3vw, 21px);
}

/* Underline fields — gray line + orange accent stub (Figma) */
.project-popup__field input,
.project-popup__field textarea,
.project-popup__field select {
  width: 100%;
  border: none !important;
  border-bottom: none !important;
  border-radius: 0;
  background: transparent;
  color: #314252;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.4;
  height: clamp(40px, 2.875vw, 46px);
  padding: 0 0 12px;
  outline: none;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  resize: none;
  background-image:
    linear-gradient(#f47a1f, #f47a1f),
    linear-gradient(rgba(49, 66, 82, 0.35), rgba(49, 66, 82, 0.35));
  background-size: 24px 1.5px, 100% 1px;
  background-position: left bottom, left bottom;
  background-repeat: no-repeat;
}

.project-popup__field textarea {
  min-height: clamp(40px, 2.875vw, 46px);
  height: auto;
  line-height: 1.5;
  padding: 8px 0 12px;
}

.project-popup__field input::placeholder,
.project-popup__field textarea::placeholder {
  color: #314252;
  opacity: 1;
}

.project-popup__field select {
  color: #314252;
  cursor: pointer;
  padding-right: 30px;
}

.project-popup__field select:invalid {
  color: #314252;
}

.project-popup__field select option {
  color: #314252;
  background: #fff;
  padding: 10px 14px;
}

.project-popup__field select option:disabled {
  color: #8a97a5;
}

.project-popup__field select option:checked,
.project-popup__field select option:hover {
  background: #fff4eb;
  color: #f47a1f;
}

.project-popup__field input:focus,
.project-popup__field textarea:focus,
.project-popup__field select:focus {
  background-image:
    linear-gradient(#f47a1f, #f47a1f),
    linear-gradient(#f47a1f, #f47a1f);
  background-size: 24px 1.5px, 100% 1.5px;
}

.project-popup__field--select .project-popup__select-arrow {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 12px;
  height: 24px;
  margin-top: -18px;
  pointer-events: none;
  transform: rotate(90deg);
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-popup__field--select.is-open .project-popup__select-arrow {
  transform: rotate(-90deg);
  opacity: 1;
}

/* Custom Business Type dropdown */
.project-popup__custom-select {
  position: relative;
  width: 100%;
}

.project-popup__custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #314252;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.4;
  height: clamp(40px, 2.875vw, 46px);
  padding: 0 28px 12px 0;
  outline: none;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  background-image:
    linear-gradient(#f47a1f, #f47a1f),
    linear-gradient(rgba(49, 66, 82, 0.35), rgba(49, 66, 82, 0.35));
  background-size: 24px 1.5px, 100% 1px;
  background-position: left bottom, left bottom;
  background-repeat: no-repeat;
}

.project-popup__custom-select-trigger.is-placeholder {
  color: #314252;
}

.project-popup__custom-select.is-open .project-popup__custom-select-trigger,
.project-popup__custom-select-trigger:focus {
  background-image:
    linear-gradient(#f47a1f, #f47a1f),
    linear-gradient(#f47a1f, #f47a1f);
  background-size: 24px 1.5px, 100% 1.5px;
}

.project-popup__custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(49, 66, 82, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(6, 15, 23, 0.14);
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.project-popup__custom-select.is-open .project-popup__custom-select-menu {
  display: block;
}

.project-popup__custom-select-option {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #314252;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.project-popup__custom-select-option:hover,
.project-popup__custom-select-option:focus {
  background: #fff4eb;
  color: #f47a1f;
  outline: none;
}

.project-popup__custom-select-option.is-selected {
  background: rgba(244, 122, 31, 0.12);
  color: #f47a1f;
  font-weight: 500;
}

.project-popup__custom-select-option.is-disabled {
  color: #8a97a5;
  cursor: default;
  pointer-events: none;
}

.project-popup__field--select .project-popup__native-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.project-popup__nda {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.7vw, 27px);
  margin: 4px 0 clamp(18px, 1.9vw, 30px);
  cursor: pointer;
  user-select: none;
}

.project-popup__nda input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.project-popup__nda-box {
  flex-shrink: 0;
  width: 20px;
  height: 16px;
  border: 1.5px solid #f47a1f;
  margin-top: 3px;
  position: relative;
  background: #fff;
  box-sizing: border-box;
}

.project-popup__nda input:checked+.project-popup__nda-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  width: 6px;
  height: 10px;
  border: solid #f47a1f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.project-popup__nda-text {
  color: #f47a1f;
  font-size: clamp(13px, 0.94vw, 15px);
  font-weight: 400;
  line-height: 1.47;
}

.project-popup__submit {
  width: 100%;
  height: clamp(52px, 4.5vw, 72px);
  border: 2px solid #f47a1f;
  border-radius: 50px;
  background: #f47a1f;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.project-popup__submit:hover,
.project-popup__submit:focus {
  background: #e06d14;
  border-color: #e06d14;
  color: #fff !important;
}

.project-popup__loader {
  height: 50px;
  width: auto;
  margin: 12px auto 0;
  display: block;
}

.project-popup__success {
  margin-top: 12px;
  text-align: center;
  color: #198754;
  font-size: 14px;
}

.project-popup__field .error_tek {
  display: block;
  font-size: 12px;
  color: #dc3545;
  min-height: 0;
}

/* ===== PARTNERS FOOTER (149px) ===== */
.project-popup__partners {
  background: #060f17;
  padding: 31px 0 18px;
  overflow: hidden;
  box-sizing: border-box;
}

.project-popup__partners h4 {
  color: #fff;
  font-size: clamp(14px, 1.375vw, 22px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 20px;
}

.project-popup__partners-track {
  display: flex;
  overflow: hidden;
  width: 100%;
  /* height: 64px; */
  align-items: center;
}

.project-popup__partners-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
  padding: 0 24px;
  animation: projectPopupMarquee 28s linear infinite;
  height: 64px;
}

.project-popup__partners-row img {
  height: 44px;
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 1;
  filter: none;
  display: block;
  flex-shrink: 0;
}

.project-popup__partners-row img.project-popup__partner-k {
  width: 44px;
  height: 44px;
}

@keyframes projectPopupMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ===== Large desktop (exact Figma) ===== */
@media (min-width: 1600px) {
  .project-popup-modal .modal-dialog {
    max-width: 1600px !important;
    width: 1600px !important;
  }

  .project-popup__body {
    min-height: 686px;
  }

  .project-popup__left-inner {
    padding: 67px 56px 40px;
  }

  .project-popup__headline {
    font-size: 52px;
    line-height: 62px;
  }

  .project-popup__intro {
    font-size: 18px;
    line-height: 32px;
  }

  .project-popup__awards {
    gap: 7px;
    margin-bottom: 44px;
  }

  .project-popup__awards img {
    flex: 0 0 114px;
    width: 114px;
    height: 83px;
    max-width: 114px;
    max-height: 83px;
  }

  .project-popup__testimonial-card {
    min-height: auto;
    padding: 35px 30px;
    border-radius: 30px;
  }

  .project-popup__right {
    padding: 37px 42px 40px;
  }

  .project-popup__form-title {
    font-size: 26px;
    line-height: 42px;
  }

  .project-popup__form-desc {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 45px;
  }

  .project-popup__field input,
  .project-popup__field textarea,
  .project-popup__field select {
    font-size: 16px;
    height: 46px;
  }

  .project-popup__submit {
    height: 72px;
    font-size: 20px;
  }

  .project-popup__partners {
    padding: 31px 0 18px;
  }

  .project-popup__partners h4 {
    font-size: 22px;
    letter-spacing: 2.2px;
    margin-bottom: 20px;
  }

  .project-popup__partners-row {
    gap: 48px;
  }

  .project-popup__partners-row img {
    height: 44px;
  }

  .project-popup__partners-row img.project-popup__partner-k {
    width: 44px;
    height: 44px;
  }
}

/* ===== 1200–1599 ===== */
@media (min-width: 1200px) and (max-width: 1599px) {
  .project-popup__headline {
    white-space: nowrap;
    font-size: 32px;
  }

  .project-popup__awards img {
    max-height: 65px;
  }

  .project-popup__intro {
    margin-bottom: 10px;
  }

  .project-popup__body {
    min-height: 475px;
  }

  .project-popup__testimonial {
    margin-top: 20px;
  }

  .project-popup__awards {
    margin-bottom: 0px;
  }

  .project-popup__right {
    padding: 35px 25px 0;
    justify-content: center;
  }

  .project-popup__left-inner {
    justify-content: center;
  }

  .project-popup__submit {
    height: 45px;
  }

  .project-popup__testimonial-card {
    padding: 20px 25px;
    min-height: auto;
  }

  .project-popup__quote {
    margin-bottom: 10px;
  }

  .project-popup__field input,
  .project-popup__field textarea,
  .project-popup__field select {
    height: 28px;
  }

  .project-popup__partners {
    padding: 20px 0 15px;
  }

  .project-popup__partners-row {
    height: auto;
    gap: 30px;
  }

  .project-popup__partners-row img {
    height: 40px;
  }

  .project-popup__slide-text {
    font-size: 13px;
  }

}

/* ===== Tablet: keep side-by-side until 991 ===== */
@media (min-width: 992px) and (max-width: 1199px) {
  .project-popup__headline {
    white-space: normal;
    font-size: 28px;
    line-height: 1.25;
  }

  .project-popup__awards img {
    max-height: 52px;
  }

  .project-popup__left-inner {
    padding: 28px 20px 24px;
  }

  .project-popup__right {
    padding: 28px 22px 28px;
  }

  .project-popup__nav--prev,
  .project-popup__nav--next {
    left: 0;
    right: 0;
  }

  .project-popup__testimonial {
    margin-top: 40px;
  }

  .project-popup__awards {
    margin-bottom: 0px;
  }


  .project-popup__left-inner {
    justify-content: center;
  }

  .project-popup__submit {
    height: 50px;
  }

  .project-popup__testimonial-card {
    padding: 30px 25px;
    min-height: auto;
  }

  .project-popup__quote {
    margin-bottom: 15px;
  }

}

/* ===== Stack below tablet ===== */
@media (max-width: 991px) {
  .project-popup-modal .modal-dialog {
    width: calc(100% - 24px) !important;
    max-width: 640px !important;
  }

  .project-popup__body {
    flex-direction: column;
  }

  .project-popup__left,
  .project-popup__right {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .project-popup__headline {
    white-space: normal;
    font-size: 32px;
    line-height: 1.25;
  }

  .project-popup__awards {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .project-popup__awards::-webkit-scrollbar {
    display: none;
  }

  .project-popup__awards img {
    flex: 0 0 72px;
    width: 72px;
    height: 52px;
    max-width: 72px;
    max-height: 52px;
  }

  .project-popup__left-inner {
    padding: 32px 24px 28px;
  }

  .project-popup__testimonial-card {
    min-height: auto;
    padding: 28px 24px 24px;
  }

  .project-popup__nav--prev {
    left: 0;
    margin-right: 0;
  }

  .project-popup__nav--next {
    right: 0;
    margin-left: 0;
  }

  .project-popup__right {
    padding: 32px 24px 36px;
  }

  .project-popup__form-desc {
    margin-bottom: 28px;
  }

  .project-popup__field input,
  .project-popup__field textarea,
  .project-popup__field select {
    background-size: 20px 1.5px, 100% 1px;
  }

  .project-popup__left-inner {
    display: none;
  }



}

@media (max-width: 767px) {
  .project-popup-modal .modal-dialog {
    width: calc(100% - 16px) !important;
    margin: 12px auto !important;
  }

  .project-popup {
    border-radius: 14px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .project-popup-modal .modal-content {
    border-radius: 14px;
  }

  .project-popup__left-inner {
    padding: 24px 18px 20px;
  }

  .project-popup__headline {
    font-size: 24px;
  }

  .project-popup__intro {
    font-size: 14px;
    line-height: 1.5;
  }

  .project-popup__awards img {
    flex: 0 0 56px;
    width: 56px;
    height: 42px;
    max-width: 56px;
    max-height: 42px;
  }

  .project-popup__testimonial-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .project-popup__right {
    padding: 24px 18px 28px;
  }

  .project-popup__form-title {
    font-size: 18px;
    padding-right: 36px;
  }

  .project-popup__form-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .project-popup__submit {
    height: 45px;
    font-size: 15px;
  }

  .project-popup__partners {
    padding: 20px 0 16px;
  }

  .project-popup__partners h4 {
    font-size: 13px;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
  }

  .project-popup__partners-track {
    /* height: 40px; */
  }

  .project-popup__partners-row {
    gap: 28px;
    height: 40px;
  }

  .project-popup__partners-row img {
    height: 28px;
  }

  .project-popup__partners-row img.project-popup__partner-k {
    width: 28px;
    height: 28px;
  }

  .project-popup__close {
    top: 10px;
    right: 10px;
  }

  .project-popup__close-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .project-popup__nav {
    display: none;
  }

  .project-popup__headline {
    font-size: 22px;
  }
}