/* =============================================================================
   TechnBrains — "Scale My Team" Popup Modal
   Converted from: PopupCta.module.scss
   ============================================================================= */

/* ── Overlay backdrop ───────────────────────────────────────────────────────── */
.tnb-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.tnb-popup-overlay[hidden] {
  display: none;
}

/* ── Inner box ──────────────────────────────────────────────────────────────── */
.tnb-popup-inner {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* ── Close button ───────────────────────────────────────────────────────────── */
.tnb-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.tnb-popup-close:hover { background: rgba(255,255,255,0.3); }
.tnb-popup-close svg   { pointer-events: none; }

/* ── Two-column grid ────────────────────────────────────────────────────────── */
.tnb-popup-inner .popup-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  align-items: stretch;
  min-height: 600px;
}

/* ── Right: dark social-proof panel ────────────────────────────────────────── */
.tnb-popup-inner .popup-right-info {
  background-image: url("../images/popup-bg-black.webp");
  background-size: cover;
  background-position: center;
  padding: 50px;
  border-radius: 12px 0 0 12px;
}

.tnb-popup-inner .popup-right-info .headBox {
  padding-bottom: 20px;
}

.tnb-popup-inner .popup-right-info .headBox h3 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 20px 0 10px;
  width: 75%;
}

.tnb-popup-inner .popup-right-info .headBox > p {
  font-size: 16px;
  font-weight: 500;
  color: #bebbbb;
  margin: 0;
  width: 90%;
}

/* ── Review slider ──────────────────────────────────────────────────────────── */
.popup-review-slider {
  position: relative;
  margin-top: 20px;
}

.popup-review-slider .singleReview {
  display: none;
  background: #000;
  padding: 20px 40px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  text-align: left;
  flex-direction: column;
  gap: 20px;
}

.popup-review-slider .singleReview.active {
  display: flex;
}

.popup-review-slider .review p {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0;
}

.popup-review-slider .clientMeta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.popup-review-slider .clientImg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.popup-review-slider .title h6 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.popup-review-slider .title p {
  color: #8c8c8c;
  font-size: 14px;
  margin: 0;
}

.popup-review-slider .cardFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-review-slider .cardFooter p {
  color: #fff;
  font-size: 13px;
  text-decoration: underline;
  margin: 0;
}

/* Slider nav buttons */
.popup-review-slider .slider-controls {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}

.popup-review-slider .slider-prev,
.popup-review-slider .slider-next {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.popup-review-slider .slider-prev:hover,
.popup-review-slider .slider-next:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Trusted clients ────────────────────────────────────────────────────────── */
.tnb-popup-inner .caseStudy {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
}

.tnb-popup-inner .caseStudy h4,
.tnb-popup-inner .featured h4 {
  color: #cac9c9;
  font-size: 15px;
  font-weight: 400;
  text-transform: capitalize;
  text-align: center;
  margin-bottom: 0;
}

.tnb-popup-inner .caseStudy .logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 20px;
  align-items: center;
  gap: 20px;
}

.tnb-popup-inner .caseStudy .logos .image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Featured in ────────────────────────────────────────────────────────────── */
.tnb-popup-inner .featured {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
}

.tnb-popup-inner .featured .logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
  align-items: center;
  gap: 30px;
}

.tnb-popup-inner .featured .logos .image img {
  filter: brightness(0) saturate(100%) invert(99%) sepia(8%) saturate(11%) hue-rotate(119deg) brightness(110%) contrast(100%);
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Left: form panel ───────────────────────────────────────────────────────── */
.tnb-popup-inner .popup-left-info {
  padding: 30px;
  text-align: left;
  overflow-y: auto;
}

.tnb-popup-inner .popup-left-info h3 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #0c2340;
}

.tnb-popup-inner .popup-left-info > p {
  font-size: 16px;
  line-height: 1.6;
  color: #979797;
  font-weight: 400;
}

/* ── Popup form ─────────────────────────────────────────────────────────────── */
.new-form {
  padding: 10px;
  max-width: 600px;
}

.new-form .formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.new-form .inputField {
  margin-bottom: 25px;
  text-align: left;
}

.new-form .inputField label {
  display: block;
  font-weight: 700;
  color: #0d1b3e;
  font-size: 13px;
  margin-bottom: 6px;
}

.new-form .inputField label small {
  color: #8c8c8c;
  font-weight: 400;
  font-size: 11px;
}

.new-form .inputField input {
  width: 100%;
  height: 45px;
  border: 1px solid #e1e4ed;
  border-radius: 5px;
  font-size: 14px;
  box-shadow: none;
  padding: 0 12px;
  font-family: "Montserrat", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.new-form .inputField input:focus {
  border-color: #ed2a32;
}

.new-form .inputField input::placeholder { color: #b0b8c1; }

.new-form .inputField textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #e1e4ed;
  border-radius: 5px;
  font-size: 13px;
  padding: 12px;
  resize: none;
  font-family: "Montserrat", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.new-form .inputField textarea:focus {
  border-color: #ed2a32;
}

/* ── Service selection cards ────────────────────────────────────────────────── */
.new-form .serviceSelection {
  margin: 20px 0 25px;
}

.new-form .sectionLabel {
  font-weight: 700;
  color: #0d1b3e;
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

.new-form .serviceCard {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid #e1e4ed;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.new-form .serviceCard:focus {
  outline: 2px solid #ed2a32;
  outline-offset: 2px;
}

.new-form .serviceCard.active {
  border-color: #ff3333;
  background-color: #fff9f9;
}

.new-form .serviceCard.active .iconBox {
  background-color: #ffdfdf;
}

.new-form .serviceCard.active .iconBox svg circle,
.new-form .serviceCard.active .iconBox svg path,
.new-form .serviceCard.active .iconBox svg rect {
  stroke: #ec1c24;
}

.new-form .serviceCard.active .customRadio {
  border-color: #ff3333;
}

.new-form .serviceCard.active .customRadio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #ff3333;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.new-form .iconBox {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d8d8d8;
  flex-shrink: 0;
}

.new-form .cardText {
  margin-left: 15px;
  flex: 1;
}

.new-form .cardText strong {
  display: block;
  font-size: 14px;
  color: #0d1b3e;
  margin-bottom: 2px;
}

.new-form .cardText p {
  margin: 0;
  font-size: 11px;
  color: #7a869a;
  font-weight: 400;
}

.new-form .customRadio {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border: 2px solid #e1e4ed;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

/* ── Submit row ─────────────────────────────────────────────────────────────── */
.new-form .btnRow {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.new-form .submitBtn {
  background: #ed1c24;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  transition: background 0.2s;
}

.new-form .submitBtn:hover    { background: #c41219; }
.new-form .submitBtn:disabled { background: #999; cursor: not-allowed; }

/* form message */
#tnb-popup-form-msg {
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 18px;
}
#tnb-popup-form-msg.error   { color: #f55; }
#tnb-popup-form-msg.success { color: #4caf50; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1600px) {
  .tnb-popup-inner .popup-right-info        { padding: 50px 30px; }
  .tnb-popup-inner .popup-right-info .headBox h3 { font-size: 26px; }
  .tnb-popup-inner .popup-left-info         { padding: 30px 20px; }
}

@media (max-width: 1199px) {
  .tnb-popup-inner .popup-grid              { grid-template-columns: 1fr; }
  .tnb-popup-inner .popup-right-info        { display: none; }
  .tnb-popup-inner .popup-left-info h3      { text-align: center; }
  .tnb-popup-inner .popup-left-info > p     { width: 70%; margin: 10px auto; text-align: center; }
  .new-form                                 { max-width: 100%; }
}

@media (max-width: 991px) {
  .tnb-popup-inner .popup-left-info         { padding: 20px; }
  .tnb-popup-inner .popup-left-info h3      { font-size: 22px; }
  .tnb-popup-inner .popup-left-info > p     { width: 100%; }
  .tnb-popup-close                          { color: #333; background: rgba(0,0,0,0.08); }
}

@media (max-width: 768px) {
  .new-form .iconBox { display: none; }
  .new-form .cardText { margin-left: 0; }
}

@media (max-width: 575px) {
  .tnb-popup-inner .popup-left-info         { padding: 15px; }
  .tnb-popup-inner .popup-left-info h3      { font-size: 20px; }
  .tnb-popup-inner .popup-left-info > p     { font-size: 14px; width: 100%; }
  .new-form .formRow                        { grid-template-columns: 1fr; gap: 0; }
  .new-form .btnRow                         { width: 80%; }
  .new-form .serviceCard                    { padding: 10px; }
  .new-form .cardText strong                { font-size: 12px; }
  .new-form .cardText                       { width: 70%; }
}

@media (max-width: 320px) {
  .new-form .btnRow { width: 100%; }
}
