/* ==========================================================================
   POPUP MODAL 2023 - NEW REFRESHED DESIGN & CLASS SYSTEM (p23_)
   ========================================================================== */

/* Modal Dialog & Backdrop Override */
.modal-backdrop,
.modal-backdrop.show,
.modal-backdrop.fade.show {
  backdrop-filter: blur(1.5px) !important;
  -webkit-backdrop-filter: blur(1.5px) !important;
  background-color: rgba(9, 13, 22, 0.25) !important;
  opacity: 1 !important;
}

/* Fix Bootstrap Modal Outside Gap (Padding Shift) & Prevent Body Scroll */
body.modal-open {
  padding-right: 0 !important;
  overflow: hidden !important;
}

/* Hide Outer Scrollbar for Popup Modal */
.p23_modal::-webkit-scrollbar,
.new_modal_popup_2023::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

.p23_modal,
.new_modal_popup_2023 {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}


.p23_modal .modal-dialog {
  max-width: 960px;
  margin: 1.75rem auto;
}

.p23_modal_content {
  background: #ffffff;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.18), 0 10px 25px -5px rgba(37, 99, 235, 0.08);
  border: none !important;
  position: relative;
  overflow: hidden;
}

/* Close Button (Circular floating top right) */
.p23_close_btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  transition: transform 0.25s ease;
}

.p23_close_btn:hover {
  background: transparent !important;
  border: none !important;
  transform: rotate(90deg) scale(1.08);
}

/* Row & Column Layout */
.p23_row {
  margin: 0;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: Ice-Blue Testimonial & Awards Panel
   -------------------------------------------------------------------------- */
.p23_left_panel {
  background: linear-gradient(145deg, #eef4ff 0%, #e3eeff 50%, #d8e6ff 100%);
  padding: 40px 36px 150px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Subtle background ambient waves */
.p23_left_panel::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.p23_left_panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/images/footer/popup_bg.webp') no-repeat center center / cover;
  pointer-events: none;
  /* opacity: 0.25; */
}

/* Top Category Tag */
.p23_category_tag {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 16px;
  display: block;
}

/* Testimonial Box */
.p23_testimonial_box {
  position: relative;
  z-index: 2;
}

.p23_quote_icon {
  margin-bottom: 8px;
}

.p23_quote_icon svg {
  fill: #2563eb;
  width: 30px;
  height: 30px;
}

.p23_quote_text {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #1e293b;
  margin-bottom: 20px;
  min-height: 80px;
  line-height: 1.6;
  padding-left: 0;
}

/* Client Info Row */
.p23_client_box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-left: 0;
}

.p23_client_avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.p23_client_name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.p23_client_title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-top: 3px;
  display: block;
}

/* Carousel Dots */
.p23_dots_container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.p23_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bfdbfe;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.p23_dot.active {
  width: 24px;
  border-radius: 10px;
  background: #2563eb;
}

/* Awards & Recognitions Section (Bottom Fixed) */
.p23_awards_section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 36px 30px;
  z-index: 10;
}

.p23_awards_header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.p23_laurel_branch {
  max-height: 35px;
  width: auto;
  object-fit: contain;
}

.p23_awards_title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  /* letter-spacing: 1.8px; */
  text-transform: uppercase;
  color: #2563eb;
  margin: 0;
}

.p23_awards_slider_container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 6px 0;
}

.p23_awards_slider_track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  will-change: transform;
}

.p23_award_img_card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - 24px) / 4);
  min-width: calc((100% - 24px) / 4);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.p23_award_img_card img {
  height: 100px;
  width: auto;
  object-fit: contain;
}


/* --------------------------------------------------------------------------
   RIGHT COLUMN: Pure White Form Panel
   -------------------------------------------------------------------------- */
.p23_right_panel {
  background: #ffffff;
  padding: 40px 40px;
}

.p23_form_header {
  margin-bottom: 22px;
}

.p23_title_wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}

.p23_form_title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.p23_title_highlight {
  color: #2563eb;
}

.p23_title_line {
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 3px;
  margin-top: 6px;
}

.p23_form_subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  color: #64748b;
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.45;
}

/* Bottom Line Only Input Design for Popup Form */
.p23_right_panel .custom_field_group {
  position: relative;
  display: flex;
  align-items: center;
  border: none !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  padding-bottom: 2px;
}

.p23_right_panel .custom_field_group:focus-within {
  border-bottom: 1px solid #2563eb !important;
  background: transparent !important;
  box-shadow: none !important;
}

.p23_right_panel .custom_field_group .form-control,
.p23_right_panel .custom_field_group .form-select {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 42px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  color: #0f172a !important;
  transition: color 0.2s ease;
  width: 100%;
  outline: none !important;
  border-radius: 0 !important;
}

.p23_right_panel .custom_field_group.textarea_group {
  align-items: flex-start;
}

.p23_right_panel .custom_field_group.textarea_group .form-control {
  height: auto !important;
  min-height: 75px;
  padding: 6px 0 !important;
  font-weight: 400 !important;
  resize: vertical;
}

.p23_right_panel .custom_field_group .form-control::placeholder {
  color: #94a3b8 !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
}

/* Phone Group Box with integrated country dial code selector */
.p23_right_panel .phone_group_box {
  display: flex;
  align-items: center;
  position: relative;
}

.p23_right_panel .code_select_wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 75px;
  min-width: 75px;
  height: 42px;
  margin-left: 0;
  padding-right: 8px;
  border-right: 1px solid #cbd5e1;
  cursor: pointer;
  flex-shrink: 0;
}

.p23_right_panel .code_select_wrapper .code_display {
  width: auto !important;
  max-width: 48px !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  text-align: left !important;
  padding: 0 !important;
  cursor: pointer !important;
  pointer-events: none;
}

.p23_right_panel .code_select_wrapper .dropdown_arrow_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-shrink: 0;
}

.p23_right_panel .code_select_wrapper .overlay_select {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  padding: 0 !important;
  font-size: 16px !important;
}

.p23_right_panel .phone_group_box #popupphonenumber {
  padding-left: 10px !important;
  flex: 1;
  height: 42px;
  font-size: 14.5px !important;
  font-weight: 400 !important;
}

/* Media Group Box (4th Input - Whatsapp / Media Selector) */
.p23_right_panel .media_group_box {
  display: flex;
  align-items: center;
  position: relative;
}

.p23_right_panel .media_select_wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 75px;
  min-width: 75px;
  height: 42px;
  padding-right: 8px;
  border-right: 1px solid #cbd5e1;
  cursor: pointer;
  flex-shrink: 0;
}

.p23_right_panel .media_select_wrapper #popupmediaicon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin: 0 !important;
  pointer-events: none;
  display: block !important;
}

.p23_right_panel select#popupmediaoptions,
.p23_right_panel .media_select_wrapper .media_select {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  padding: 0 !important;
  display: block !important;
}

.p23_right_panel .media_select_wrapper .dropdown_arrow_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-shrink: 0;
}

.p23_right_panel #popupcontactmediaoptions {
  padding-left: 10px !important;
  flex: 1;
  height: 42px;
  font-size: 14.5px !important;
  font-weight: 400 !important;
}

.p23_right_panel select.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  font-weight: 400 !important;
}

/* Select a Service Box */
.p23_right_panel .select_group_box {
  position: relative;
  display: flex;
  align-items: center;
}

.p23_right_panel .select_group_box select#popuplookoptions {
  flex: 1;
  padding-right: 28px !important;
  cursor: pointer !important;
  font-weight: 400 !important;
}

.p23_right_panel select option {
  color: #0f172a !important;
  background: #ffffff !important;
  font-weight: 400 !important;
}

.p23_right_panel .select_group_box .dropdown_arrow_icon {
  position: absolute;
  right: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Error Messages styling */
.p23_error_msg {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  padding-left: 2px;
  display: block;
}

/* Submit Button with Animated Span-Mother Letter Effect */
.p23_submit_btn {
  width: 100%;
  height: 50px;
  background: #2563eb;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.p23_submit_btn:hover {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.p23_submit_btn:active {
  transform: translateY(0);
}

.p23_submit_btn .span-mother {
  display: flex;
  overflow: hidden;
  align-items: center;
}

.p23_submit_btn:hover .span-mother {
  position: absolute;
}

.p23_submit_btn .span-mother span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.p23_submit_btn:hover .span-mother span {
  transform: translateY(1.4em);
}

.p23_submit_btn .span-mother2 {
  display: flex;
  position: absolute;
  overflow: hidden;
  align-items: center;
}

.p23_submit_btn .span-mother2 span {
  display: inline-block;
  transform: translateY(-1.4em);
  transition: transform 0.25s ease;
}

.p23_submit_btn:hover .span-mother2 span {
  transform: translateY(0);
}

/* Staggered character delays for Get Free Consultation */
.p23_submit_btn .span-mother span:nth-child(1),
.p23_submit_btn .span-mother2 span:nth-child(1) {
  transition-delay: 0.02s;
}

.p23_submit_btn .span-mother span:nth-child(2),
.p23_submit_btn .span-mother2 span:nth-child(2) {
  transition-delay: 0.04s;
}

.p23_submit_btn .span-mother span:nth-child(3),
.p23_submit_btn .span-mother2 span:nth-child(3) {
  transition-delay: 0.06s;
}

.p23_submit_btn .span-mother span:nth-child(4),
.p23_submit_btn .span-mother2 span:nth-child(4) {
  transition-delay: 0.08s;
}

.p23_submit_btn .span-mother span:nth-child(5),
.p23_submit_btn .span-mother2 span:nth-child(5) {
  transition-delay: 0.10s;
}

.p23_submit_btn .span-mother span:nth-child(6),
.p23_submit_btn .span-mother2 span:nth-child(6) {
  transition-delay: 0.12s;
}

.p23_submit_btn .span-mother span:nth-child(7),
.p23_submit_btn .span-mother2 span:nth-child(7) {
  transition-delay: 0.14s;
}

.p23_submit_btn .span-mother span:nth-child(8),
.p23_submit_btn .span-mother2 span:nth-child(8) {
  transition-delay: 0.16s;
}

.p23_submit_btn .span-mother span:nth-child(9),
.p23_submit_btn .span-mother2 span:nth-child(9) {
  transition-delay: 0.18s;
}

.p23_submit_btn .span-mother span:nth-child(10),
.p23_submit_btn .span-mother2 span:nth-child(10) {
  transition-delay: 0.20s;
}

.p23_submit_btn .span-mother span:nth-child(11),
.p23_submit_btn .span-mother2 span:nth-child(11) {
  transition-delay: 0.22s;
}

.p23_submit_btn .span-mother span:nth-child(12),
.p23_submit_btn .span-mother2 span:nth-child(12) {
  transition-delay: 0.24s;
}

.p23_submit_btn .span-mother span:nth-child(13),
.p23_submit_btn .span-mother2 span:nth-child(13) {
  transition-delay: 0.26s;
}

.p23_submit_btn .span-mother span:nth-child(14),
.p23_submit_btn .span-mother2 span:nth-child(14) {
  transition-delay: 0.28s;
}

.p23_submit_btn .span-mother span:nth-child(15),
.p23_submit_btn .span-mother2 span:nth-child(15) {
  transition-delay: 0.30s;
}

.p23_submit_btn .span-mother span:nth-child(16),
.p23_submit_btn .span-mother2 span:nth-child(16) {
  transition-delay: 0.32s;
}

.p23_submit_btn .span-mother span:nth-child(17),
.p23_submit_btn .span-mother2 span:nth-child(17) {
  transition-delay: 0.34s;
}

.p23_submit_btn .span-mother span:nth-child(18),
.p23_submit_btn .span-mother2 span:nth-child(18) {
  transition-delay: 0.36s;
}

.p23_submit_btn .span-mother span:nth-child(19),
.p23_submit_btn .span-mother2 span:nth-child(19) {
  transition-delay: 0.38s;
}

.p23_submit_btn .span-mother span:nth-child(20),
.p23_submit_btn .span-mother2 span:nth-child(20) {
  transition-delay: 0.40s;
}

.p23_submit_btn .span-mother span:nth-child(21),
.p23_submit_btn .span-mother2 span:nth-child(21) {
  transition-delay: 0.42s;
}

/* Security Guarantee Footer Note */
.p23_security_note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
}

.p23_security_note svg {
  color: #64748b;
}


/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Tablets & Mobile screens)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .p23_modal .modal-dialog {
    max-width: 540px;
    margin: 1rem auto;
  }

  .p23_left_panel {
    display: none !important;
  }

  .p23_right_panel {
    padding: 32px 24px;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .p23_modal,
  .new_modal_popup_2023 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .p23_modal .modal-dialog,
  .new_modal_popup_2023 .modal-dialog {
    margin: 0.75rem auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .p23_right_panel .code_select_wrapper,
  .p23_right_panel .media_select_wrapper,
  .new_modal_popup_2023 .code_select_wrapper,
  .new_modal_popup_2023 .media_select_wrapper {
    width: 75px !important;
    min-width: 75px !important;
  }
}

@media (max-width: 575.98px) {
  .p23_left_panel {
    padding: 24px 18px;
  }

  .p23_right_panel {
    padding: 24px 18px;
  }

  .p23_form_title {
    font-size: 22px;
  }

  .p23_phone_wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .p23_country_trigger {
    width: 100%;
    justify-content: space-between;
  }

  .p23_awards_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p23_close_btn {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
}