/* common css */
/* .cool{
    background: linear-gradient(100.47deg, #C3942F 28.12%, #D89C27 41.31%, #E7DC96 53.42%, #DFC86F 65.82%, #D89C27 75.96%, #C99C30 84.47%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    background-color: #2d2d2d !important;
    display: inline-block;
}
.bat{
    background: linear-gradient(30deg, #636363 0%, #9b9b9b 20%, #b1b1b1 36%, #e1e1e1 50%, #b1b1b1 62%, #9b9b9b 75%, #636363 100%) !important;
    border-radius: 12px ;
    line-height: 21.6px;
    font-size: 15px !important;
    font-weight: 600;
    padding: 10px 15px;
    border: none;
}j
.bat:focus,.bat:hover{
    box-shadow: none;
} */
.hidden {
  display: none !important;
}

.ghost {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ========================================================================== */
/* 🟢 [STEP 1 CSS] PEHLA STEP - CAMERA & SMILE CAPTURE MODAL (#smileModal)   */
/* Video, Camera stream, Face overlay, Buttons (Capture/Recapture/Continue)  */
/* ========================================================================== */

/* Mirror only while capturing (inside Smile modal) */
#smileModal #video {
  transform: scaleX(-1);
}

#smileModal #video.no-mirror {
  transform: none;
}

#smileModal #freezeImg {
  transform: none;
}

/* .virtualpage .smileModal.show{
    display: flex !important;
    align-items: center;
    margin: auto;
    justify-content: center;
} */
/* #smileModal .modal-dialog{
    border: 1px solid #fff;
    box-shadow: 0px 0px 46px 0px #FFFFFF40;
    border-radius: 12px;
} */

#smileModal .smile-modal-title {
  font-family: "Gilda Display";
  font-size: 30px;
  letter-spacing: 0.5px;
  font-weight: 400;
  text-align: center !important;
  display: block;
}

#smileModal .modal-dialog {
  max-width: 800px !important;
  width: 95%;
  margin: 1.75rem auto;
}

#smileModal .modal-content {
  background: #000000 !important;
  background-color: #000000 !important;
  box-shadow: 0px 0px 46px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

/* ========================================================================== */
/* 🎬 [STEP 1A - FIGMA DESIGN] INTRO & AUTOPLAY VIDEO (NON-STOP LOOP)         */
/* ========================================================================== */
.smile-intro-wrapper {
  position: relative;
  z-index: 1;
}

.intro-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ai-scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* background: rgba(217, 165, 32, 0.08); */
  border: 1px solid rgba(217, 165, 32, 0.4);
  border-radius: 30px;
  padding: 4px 12px;
  color: #dfc86f;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  user-select: none;
}

.custom-intro-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 6px;
}

.custom-intro-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

.intro-modal-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  font-family: "Barlow", sans-serif;
  letter-spacing: 0.3px;
  margin-top: 6px;
  margin-bottom: 3px;
}

.intro-modal-subtitle {
  background: linear-gradient(130deg,
      #c3942f 0%,
      #d89c27 25%,
      #dfc86f 50%,
      #d89c27 75%,
      #c99c30 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}

.guideline-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 16px auto;
  background: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Video ke charo taraf smooth gradient fade overlay (top me kam gradient) */
.guideline-video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
  background:
    linear-gradient(270deg, #000000 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 10%);
  box-shadow:
    inset 0 -20px 25px -5px rgba(0, 0, 0, 0.85),
    inset 20px 0 25px -5px rgba(0, 0, 0, 0.85),
    inset -20px 0 25px -5px rgba(0, 0, 0, 0.85),
    inset 0 4px 8px -3px rgba(0, 0, 0, 0.4);
}

.guideline-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Callout Overlays matching Figma */
.guideline-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.guide-callout .callout-text {
  font-size: 11px;
  line-height: 1.25;
  color: #ffffff;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.9);
  display: inline-block;
  letter-spacing: 0.2px;
}

.guide-callout-top {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.guide-callout-top .callout-line-down {
  width: 0;
  height: 22px;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.65);
  margin: 3px auto 0 auto;
}

.guide-callout-left {
  position: absolute;
  top: 52%;
  left: 5%;
  display: flex;
  align-items: center;
  text-align: right;
}

.guide-callout-left .callout-line-right {
  width: 26px;
  height: 0;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.65);
  margin-left: 6px;
}

.guide-callout-right {
  position: absolute;
  top: 45%;
  right: 5%;
  display: flex;
  align-items: center;
  text-align: left;
}

.guide-callout-right .callout-line-left {
  width: 26px;
  height: 0;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.65);
  margin-right: 6px;
}

/* Next Button */
.btn-intro-next {
  border: 2px solid #4D4D4D33 !important;
  background-color: #4D4D4D33;
  color: #ffffff;
  padding: 9px 38px;
  width: 180px;
  border-radius: 10px;
  font-size: 16px !important;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: none !important;
}

/* .btn-intro-next:hover,
.btn-intro-next:focus {
  background: linear-gradient(180deg, #333333 0%, #1c1c1c 100%);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
} */

/* ========================================================================== */
/* 📷 [STEP 1B - LIVE CAMERA VIEW] (FIGMA DESIGN - IMAGE 1 & 2)               */
/* ========================================================================== */
.smile-camera-wrapper {
  position: relative;
  z-index: 1;
}

.camera-viewport-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-viewport-container #video,
.camera-viewport-container #freezeImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Top-Left: Camera Switch Button */
.btn-switch-camera {
  position: absolute;
  background-color: transparent !important;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #ffffff !important;
  transition: all 0.2s ease;
  border: none !important;
  outline: none !important;
  z-index: 30;
}

.btn-switch-camera:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  transform: scale(1.08);
}

.btn-switch-camera:active {
  transform: rotate(180deg) scale(0.95);
}

/* Top-Right: Close Button */
.custom-camera-close {
  position: absolute;
  background-color: transparent !important;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #ffffff !important;
  transition: all 0.2s ease;
  border: none !important;
  outline: none !important;
  z-index: 30;
}

.custom-camera-close:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  transform: scale(1.08);
}

/* Center: 4 Corner Guide Brackets (matching Image 1) */
.face-frame-brackets {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 425px;
  max-width: 58%;
  max-height: 60%;
  pointer-events: none;
  z-index: 6;
}

.corner-bracket {
  position: absolute;
  width: 38px;
  height: 38px;
  border-color: white;
  border-style: solid;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.corner-bracket.corner-tl {
  top: 0;
  left: 0;
  border-width: 2.5px 0 0 2.5px;
}

.corner-bracket.corner-tr {
  top: 0;
  right: 0;
  border-width: 2.5px 2.5px 0 0;
}

.corner-bracket.corner-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2.5px 2.5px;
}

.corner-bracket.corner-br {
  bottom: 0;
  right: 0;
  border-width: 0 2.5px 2.5px 0;
}

/* Green Dashed Oval with 1.5s Smooth Transition:
   1. Dark backdrop smoothly closes in from all 4 sides over 1.5s
   2. Green dashed border line transitions in with butter-smooth timing
*/
.face-detected-oval {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Layer 1: Dark outside backdrop shadow */
.face-detected-oval::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.68);
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Layer 2: Green dashed border */
.face-detected-oval::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px dashed #28c76f;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* When smile is detected by AI model */
.face-frame-brackets.ready .corner-bracket {
  opacity: 0;
  visibility: hidden;
}

.face-frame-brackets.ready .face-detected-oval {
  opacity: 1;
  visibility: visible;
}

.face-frame-brackets.ready .face-detected-oval::before {
  opacity: 1;
  transform: scale(1);
}

.face-frame-brackets.ready .face-detected-oval::after {
  opacity: 1;
  transform: scale(1);
}

/* Hide guide brackets, text and detection badge when photo is captured or set to d-none */
.face-frame-brackets.d-none,
.camera-viewport-container.is-captured .face-frame-brackets,
.camera-guide-text.d-none,
.camera-viewport-container.is-captured .camera-guide-text,
.smile-detect-score-badge.d-none,
.camera-viewport-container.is-captured .smile-detect-score-badge {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Bottom Overlay: Detection Badge, Guide Text & Button (matching Image 1) */
.camera-bottom-overlay {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
  padding: 0 20px;
}

/* Smile Detection Score Badge (matching design with circular progress ring) */
.smile-detect-score-badge {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  z-index: 25;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.smile-detect-score-badge .detect-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.smile-detect-score-badge .detect-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 2.2px;
}

.smile-detect-score-badge .detect-ring-progress {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.4px;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  transition: stroke-dashoffset 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.smile-detect-score-badge .detect-percent-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: "Barlow", sans-serif;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  line-height: 1;
}

/* When score is high / ready */
.smile-detect-score-badge.score-high .detect-ring-progress {
  stroke: #ffffff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

.camera-guide-text {
  color: white;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
  font-family: "Barlow", sans-serif;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* Capture Now Button (matching screenshot) */
.btn-capture-main {
  background: #4D4D4D33 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #a5a5a5 !important;
  padding: 10px 42px;
  min-width: 175px;
  border-radius: 10px;
  font-size: 16px !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-capture-main:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #888888 !important;
  box-shadow: none !important;
}

/* Enabled state when smile is detected */
.btn-capture-main.btn-capture-ready {
  opacity: 1 !important;
  cursor: pointer !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  background: #4D4D4D33 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-1px);
}

/* ReCapture & Continue buttons (matching Screenshot 2: dark glass style with white text) */
.captured-actions-group {
  margin-top: 4px;
}

.btn-recapture-main,
.btn-confirm-main {
  background: #4D4D4D33 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 10px 24px;
  min-width: 140px;
  border-radius: 10px;
  font-family: "Barlow", sans-serif;
  font-size: 16px !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: none !important;
  cursor: pointer;
}

/* .btn-recapture-main:hover,
.btn-confirm-main:hover {
  background: rgba(55, 55, 62, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
} */

.btn-recapture-main:active,
.btn-confirm-main:active {
  transform: translateY(0);
}

.btn-confirm-main:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* 🖼️ IMAGE 2: Camera Access Permission Screen (Solid black, centered icon & prompt only) */
.camera-viewport-container.permission-pending .face-frame-brackets,
.camera-viewport-container.permission-pending .camera-bottom-overlay,
.camera-viewport-container.permission-pending #switchCameraBtn,
.camera-viewport-container:has(#cameraDeniedOverlay:not(.d-none)) .face-frame-brackets,
.camera-viewport-container:has(#cameraDeniedOverlay:not(.d-none)) .camera-bottom-overlay,
.camera-viewport-container:has(#cameraDeniedOverlay:not(.d-none)) #switchCameraBtn {
  display: none !important;
}

.camera-denied-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: inherit;
}

.camera-denied-overlay.d-none {
  display: none !important;
}

.permission-overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  /* border: 1px solid red; */
}

.permission-camera-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.permission-prompt-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  font-family: "Barlow", sans-serif;
  letter-spacing: 0.3px;
}

/* Disable gradient background glow to keep background solid black */
#smileModal .modal-content::before,
#smileModal .modal-content::after {
  display: none !important;
  content: none !important;
}

#smileModal .modal-content,
#smileModal .modal-header {
  background-color: #000 !important;
  color: #fff !important;
}

#smileModal .modal-header {
  border-bottom: 0px;
  padding-bottom: 0px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

#smileModal .smile-close-btn {
  position: absolute !important;
  top: 24px;
  right: 24px;
  z-index: 1050;
  width: 40px;
  height: 40px;
  background-color: #1b1b1b !important;
  border: 1.5px solid #4d4d4d !important;
  border-radius: 50%;
  opacity: 1 !important;
  margin: 0 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
  background-position: center !important;
  background-size: 14px !important;
  background-repeat: no-repeat !important;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

#smileModal .smile-close-btn:hover {
  background-color: #333 !important;
  border-color: #be9644 !important;
}

#smileModal .smile-close-btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(190, 150, 68, 0.25) !important;
}

#smileModal .modal-body {
  padding: 0 !important;
  color: #fff;
  position: relative;
  z-index: 1;
}

#smileModal .modal-body .col-lg-6:last-child {
  border-left: none;
  position: relative;
}

#smileModal .modal-body .col-lg-6:last-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
      #be9644 0.01%,
      #aa803c 15.01%,
      #f3dc87 43.01%,
      #fbefac 59.01%,
      #f3dc87 73.01%,
      #aa803c 93.01%,
      #c49d47 100.01%);
  -webkit-mask-image: repeating-linear-gradient(to bottom,
      #000 0,
      #000 6px,
      transparent 6px,
      transparent 12px);
  mask-image: repeating-linear-gradient(to bottom,
      #000 0,
      #000 6px,
      transparent 6px,
      transparent 12px);
}

#smileModal .modal-body .modal-title {
  font-family: "Gilda Display";
  font-size: 30px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

#smileModal .modal-footer {
  border-top: 0px;
  display: block;
  margin: auto;
  padding: 0.5rem;
  margin-bottom: 30px;
}

#smileModal .modal-steps-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 380px;
  margin: 15px 0;
}

#smileModal .modal-step-box {
  background:
    linear-gradient(#1b1b1b, #1b1b1b) padding-box,
    linear-gradient(270deg,
      #be9644 0.01%,
      #aa803c 15.01%,
      #f3dc87 43.01%,
      #fbefac 59.01%,
      #f3dc87 73.01%,
      #aa803c 93.01%,
      #c49d47 100.01%) border-box;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

#smileModal .modal-step-box p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

#smileModal .step-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

#smileModal .modal-body .btn {
  border: 1px solid #ffffff;
  color: #fff;
  box-shadow: 0px 4px 20px 0px #d9a5204d;
  padding: 10px 15px;
  border-radius: 8px;
}

#smileModal .modal-body .capture-now-btn {
  background-color: #4d4d4d !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px !important;
  border-radius: 14px !important;
  min-width: 260px;
}

#smileModal .modal-body .capture-now-btn .capture-inner {
  display: block;
  border: 1.5px dashed #ffffff;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.5px;
  width: 100%;
}

#smileModal .modal-body .capture-now-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: blur(0.5px);
}

#smileModal .modal-content-wrapper {
  margin: 0.3rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#smileModal .btn-wrapper {
  padding: 10px 0px;
}

.user-smile-img {
  width: 60%;
}

.video-capture-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  aspect-ratio: 11/8;
  margin: auto;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0px 0px 46px 0px #ffffff40;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(270deg,
      #be9644 0.01%,
      #aa803c 15.01%,
      #f3dc87 43.01%,
      #fbefac 59.01%,
      #f3dc87 73.01%,
      #aa803c 93.01%,
      #c49d47 100.01%) border-box;
}

.video-capture-wrapper #video,
.video-capture-wrapper #freezeImg {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 11/8;
  border-radius: 10px;
  display: flex;
  margin: auto;
  object-fit: cover;
}

/* 🟢 [STEP 1 CSS END] ====================================================== */

/* ========================================================================== */
/* 🟡 [STEP 2 CSS] DUSRA STEP - CONTACT FORM MODAL (#contactModal)           */
/* Lead Form, Input fields, Country code dropdown, Pincode auto-fetch, Submit*/
/* ========================================================================== */
#contactModal .modal-dialog .modal-content {
  padding: 30px 40px 55px;
  background-color: #000;
  box-shadow: 0px 0px 46px 0px #ffffff40;
  border-radius: 20px;
}

#contactModal .contact-wrapper {
  position: relative;
  padding: 75px 20px 30px;
  background:
    linear-gradient(0deg, #000000, #000000),
    radial-gradient(50% 50% at 50% 50%,
      rgba(65, 65, 65, 0.2) 0%,
      rgba(0, 0, 0, 0.2) 100%);
  /* background-color: #000; */
  /* background-image: url(/static/Thankyou-bg3.webp); */
  background-size: 100% 100%;
  background-position: center;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  /* border:1px solid #fff; */
  border: 2px solid #b7b7b7;
  /* border: ; */
}

#contactModal .contact-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  /* background: linear-gradient(100deg, #c3942f, #d89c27, #e7dc96, #dfc86f, #d89c27); */
  /* -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); */
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

#contactModal .contact-wrapper .usd-logo-img {
  background-image: linear-gradient(#000 100%, transparent 31%);
  padding: 0 20px;
  position: absolute;
  text-align: start;
  top: -8%;
  z-index: 1;
  width: 23%;
  left: 38.5%;
}

#contactModal .contact-title {
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  text-align: center;
  font-family: "Barlow", sans-serif;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

/* .contact-form .contact-input{
    border: 1px solid;
    border-image-source: linear-gradient(100.47deg, #C3942F 28.12%, #D89C27 41.31%, #E7DC96 53.42%, #DFC86F 65.82%, #D89C27 75.96%, #C99C30 84.47%);
} */
.contact-form .form-control {
  background: #000000;
  border: 1px solid #9E9E9E !important;
  border-radius: 25px;
  padding: 12px 16px;
  color: #fff;
  margin-bottom: 25px;
}

.contact-form .form-control:focus {
  background: #000000;
  border-color: #9E9E9E !important;
  color: #fff;
  box-shadow: 0 0 0 0.15rem rgba(158, 158, 158, 0.25);
}

#contactModal #leadSubmitBtn,
.contact-form .btn {
  background: #4D4D4D33 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 10px 42px;
  min-width: 140px;
  border-radius: 10px;
  font-family: "Barlow", sans-serif;
  font-size: 16px !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: none !important;
  cursor: pointer;
}

#contactModal #leadSubmitBtn:hover,
.contact-form .btn:hover {

  border-color: white !important;
}

#contactModal #leadSubmitBtn:focus,
.contact-form .btn:focus {
  box-shadow: none !important;
  color: #ffffff !important;
}

#contactModal #leadSubmitBtn:disabled,
.contact-form .btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}


#contactModal .btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
  display: flex;
  margin: auto 0px 30px auto;
}

#contactModal .btn-close:focus,
#PreviewModal .btn-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(216, 156, 39, 0.25);
}

/* 🟡 [STEP 2 CSS END] ====================================================== */

/* ========================================================================== */
/* 🔵 [STEP 3 CSS] TEESRA STEP - PREVIEW BEFORE/AFTER MODAL (#PreviewModal)   */
/* Before/After Image Slider, Split Handle, Download & Appointment Buttons   */
/* ========================================================================== */
#PreviewModal .modal-content {
  background-color: #000;
  box-shadow: 0px 0px 46px 0px #ffffff40;
  color: #fff;
  border-radius: 12px;
  padding: 18px 40px;
}

.preview-modal-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.preview_img_wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* First image dictates natural aspect ratio and height of wrapper */
.preview_img_wrapper:first-child {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
}

.preview_img_wrapper:first-child img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Second (After) image sits right on top with slider clip-path */
.preview_img_wrapper:nth-child(2) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0px 0px 0px 50%);
}

.preview_img_wrapper:nth-child(2) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-title {
  color: #fff;
  text-align: center;
  font-size: 30px;
  font-family: "Barlow", sans-serif;
  font-weight: 500;
}

.preview-wrapper p {
  text-align: center;
  letter-spacing: 0.3px;
}

#PreviewModal .btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
  display: flex;
  margin: auto 0px 0px auto;
}

#PreviewModal .modal-body {
  padding: 0.5rem 1rem;
}

#preview-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: #ffffff;
  z-index: 5;
  pointer-events: none;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.slider-button svg {
  display: block;
}

.preview-modal-wrapper .before-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  margin: 0;
  padding: 0;
  outline: none;
  cursor: ew-resize;
  opacity: 0;
}

.preview-modal-wrapper .before-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  cursor: ew-resize;
}

.preview-modal-wrapper .before-input::-moz-range-thumb {
  width: 2.25rem;
  height: 2.25rem;
  cursor: ew-resize;
}

.preview-label {
  position: absolute;
  bottom: 12px;
  font-size: 14px;
  background: #f5c842;
  color: #000;
  padding: 2px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.preview-label.before {
  left: 12px;
}

.preview-label.after {
  right: 12px;
}

.preview-wrapper .btn-default {
  border: 0.8px solid #ffffff;
  border-radius: 8px;
  color: #fff;
  /* width: 50%; */
}

.preview-wrapper .btn {
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.preview-wrapper .btn a {
  color: #fff;
}

/* .preview-wrapper .btn-share{
    width: 25%;
} */
/* .preview-wrapper .btn{
    width: 50%;
} */
/* .preview-wrapper .bat{
    width: 24%;
} */
.preview-wrapper svg {
  margin: 0px 5px;
}

/* ✨ Smile design processing loader (ChatGPT style golden dot grid + progress %) */
/* White border box (.preview-modal-wrapper) ke andar overlay; box ki CSS same rehti hai */
#PreviewModal .smile-process-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  background: #0a0a0a;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

#PreviewModal .preview-wrapper.is-processing .smile-process-loader {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

/* Loader on rahe tab tak niche ke buttons hide (jagah same, koi layout jump nahi) */
#PreviewModal .preview-actions {
  transition: opacity 0.35s ease;
}

#PreviewModal .preview-wrapper.is-processing .preview-actions {
  visibility: hidden;
  opacity: 0;
}

#PreviewModal .smile-process-title {
  margin: 0 0 12px;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.2px;
  text-align: left;
  color: #ececec;
  /* ChatGPT jaisa text shimmer, golden highlight ke saath */
  background: linear-gradient(90deg, #ececec 0%, #ececec 40%, #f3dc95 50%, #ececec 60%, #ececec 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: smileProcessShimmer 2.6s linear infinite;
}

#PreviewModal .smile-process-dots {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

#PreviewModal .smile-process-dots canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#PreviewModal .smile-process-percent {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 56px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.92);
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #dfc86f;
}

/* Error: dots ruk jate hain, title me message */
#PreviewModal .preview-wrapper.is-failed .smile-process-title {
  color: #ff8a8a;
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

#PreviewModal .preview-wrapper.is-failed .smile-process-dots {
  opacity: 0.35;
}

#PreviewModal .preview-wrapper.is-failed .smile-process-percent {
  display: none;
}

@keyframes smileProcessShimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0% 0;
  }
}

@media (max-width: 576px) {
  #PreviewModal .smile-process-loader {
    padding: 14px 14px 14px;
  }

  #PreviewModal .smile-process-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  #PreviewModal .smile-process-percent {
    right: 10px;
    bottom: 10px;
    min-width: 50px;
    font-size: 13px;
    padding: 5px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #PreviewModal .smile-process-title {
    animation: none;
  }
}

/* 🔵 [STEP 3 CSS END] ====================================================== */

/* ========================================================================== */
/* 🏠 [LANDING PAGE CSS] HERO BANNER SECTION                                 */
/* ========================================================================== */
.banner-highlight {
  /* background: var(--color-orange-4910, #D9A5201A); */
  background: #d9a5201a;
  border-top: 1px solid #d9a52033;
  color: #d9a520;
  border-radius: 20px;
  padding: 7px 15px;
  width: 50%;
  margin-bottom: 25px;
}

.banner_section {
  padding-top: 70px;
}

.banner_section h1 {
  color: #fff;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 30px;
}

.banner_section h1 b {
  font-weight: 500;
}

.banner_section p {
  color: #aeaeae;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 45px;
}

.bg-vector {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 32%;
  width: 62%;
}

.banner-img1 {
  width: 75%;
}

/* ========================================================================== */
/* 💡 [LANDING PAGE CSS] TIPS SECTION (4 Steps Cards 01-04)                   */
/* ========================================================================== */
.tips-section {
  background: linear-gradient(270deg, #0d0d0d 0%, #191919 50%, #000000 100%);
}

.tips-section .row {
  margin-top: 1.2rem;
  margin-bottom: 1.4rem;
}

.tips-section .tips-title {
  font-weight: 500;
  font-size: 36px;
}

.tips-section .tips-subtitle {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  width: 58%;
  text-align: center;
  display: block;
  margin: auto auto 20px;
  color: #fff;
}

.tips-card {
  padding: 12px;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0px 6.82px 27.27px 0px #0000004d;
  backdrop-filter: blur(20.453609466552734px);
  border: 2px solid #ffffff1a;
}

.tips-icon-wrapper {
  margin-bottom: 3.5rem;
}

.tips-icon-wrapper img {
  padding: 8px;
  background: #d9a5201a;
  border-radius: 12px;
}

.tips-icon-wrapper span {
  font-weight: 700;
  font-size: 50px;
  text-align: center;
  color: #ffffff1a;
  line-height: normal;
}

.tips-card h2 {
  font-size: 20px;
  text-align: left;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.tips-card p {
  text-align: left;
  /* font-size: 14px; */
  color: #818898;
  margin-bottom: 0px;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* ========================================================================== */
/* 🚀 [LANDING PAGE CSS] AI SMILE CTA SECTION (Ready to See Your New Smile?)  */
/* ========================================================================== */
.ai-smile-section {
  padding-top: 20px;
  padding-bottom: 40px;
}

.ai-smile-wrapper {
  width: 80%;
  position: relative;
  background-image: url(/static/ai-bg-vector.png);
  background-size: 100% auto;
  background-position: center;
  height: 100%;
  border-radius: 20px;
  padding: 50px 120px 60px;
  display: block;
  margin: auto;
}

.ai-smile-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(100deg,
      #c3942f,
      #d89c27,
      #e7dc96,
      #dfc86f,
      #d89c27);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ai-smile-wrapper h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 500;
}

.ai-smile-wrapper p {
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.4px;
  margin-bottom: 30px;
}

/* ========================================================================== */
/* 🟢 [STEP 1 CSS] VIDEO & CAMERA OVERLAY (PEHLA STEP - Camera Preview Box)   */
/* ========================================================================== */
.video-capture-wrapper .video-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 11/8;
  border-radius: 10px;
  overflow: hidden;
  margin: auto;
}

.video-capture-wrapper .video-inner #video,
.video-capture-wrapper .video-inner #freezeImg {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.video-capture-wrapper .face-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 75%;
  border: 4px dashed rgba(255, 255, 255, 0.8);
  border-radius: 60%;
  pointer-events: none;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.4);
  z-index: 5;
  transition: border-color 0.3s ease;
}

.video-capture-wrapper .face-overlay.ready {
  border-color: rgba(255, 255, 255, 0) !important;
}

.video-capture-wrapper .face-overlay::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 4px solid transparent;
  border-radius: 50%;
  background: linear-gradient(130deg,
      #c3942f 0%,
      #d89c27 18%,
      #dfc86f 37%,
      #e7dc96 50%,
      #dfc86f 64%,
      #d89c27 82%,
      #c99c30 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-capture-wrapper .face-overlay.ready::after {
  opacity: 1;
}

@media (max-width: 991px) {
  .video-capture-wrapper .video-inner {
    max-width: 620px;
  }
}

@media (min-width: 1300px) and (max-width: 1600px) {
  .bg-vector {
    width: 50%;
    left: 32%;
    top: 6%;
  }
}

@media (min-width: 1600px) and (max-width: 1800px) {
  .bg-vector {
    width: 47%;
    left: 35%;
  }
}

@media (min-width: 1800px) and (max-width: 2000px) {
  .bg-vector {
    width: 38%;
    left: 36%;
    top: 6%;
  }
}

@media (min-width: 991px) {
  #smileModal .modal-dialog {
    max-width: 630px;
  }

  #contactModal .modal-dialog {
    max-width: 920px;
  }

  #PreviewModal .modal-dialog {
    max-width: 920px;
  }
}

@media (max-width: 991px) {
  #smileModal .smile-modal-title {
    font-size: 24px;
    margin-top: 20px;
  }

  .video-capture-wrapper #video,
  .video-capture-wrapper #freezeImg {
    width: 100%;
    max-width: 620px;
  }

  .video-capture-wrapper .video-inner {
    aspect-ratio: 3/4;
    /* makes the video wrapper taller on mobile */
    max-height: 60vh;
    /* ensures it doesn't push everything else off screen on small devices */
  }

  .preview-modal-wrapper {
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 1200px) {
  .banner-highlight {
    width: 60%;
  }

  .banner_section h1 {
    font-size: 42px;
    margin-bottom: 20px;
  }

  .banner_section p {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .bg-vector {
    width: 68%;
    left: 26%;
  }

  /* tips section */
  .tips-section .tips-title {
    font-size: 34px;
  }

  .tips-section .tips-subtitle {
    width: 71%;
    margin: auto auto 22px;
  }

  .tips-card {
    height: 100%;
  }

  .tips-card h2 {
    font-size: 18px;
  }

  .tips-icon-wrapper {
    margin-bottom: 3rem;
  }

  .tips-icon-wrapper span {
    font-size: 40px;
  }

  .tips-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .tips-icon-wrapper img {
    width: 37px;
    border-radius: 10px;
  }

  .tips-section .col-md-6 {
    margin-bottom: 20px;
  }

  /* .tips-icon-wrapper img{
        width: 90%;
    } */
  /* ai smile section */
  .ai-smile-wrapper {
    padding: 40px 100px 50px;
    width: 85%;
  }

  .ai-smile-wrapper h2 {
    font-size: 34px;
  }

  .ai-smile-wrapper p {
    font-size: 16px;
    /* margin-bottom: 22px; */
  }
}

@media (max-width: 991px) {
  .banner-highlight {
    margin-bottom: 20px;
    width: 59%;
  }

  .banner-img1 {
    width: 100%;
  }

  .banner_section h1 {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .banner_section p {
    font-size: 16px;
    margin-bottom: 40px;
  }

  /* tips section */
  .tips-section .row {
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .tips-section .tips-title {
    font-size: 32px;
  }

  .tips-section .tips-subtitle {
    font-size: 16px;
    width: 80%;
    margin: auto auto 15px;
  }

  .tips-icon-wrapper img {
    width: 40px;
  }

  .tips-icon-wrapper span {
    font-size: 45px;
  }

  .tips-card h2 {
    font-size: 20px;
  }

  .tips-card p {
    font-size: 16px;
  }

  /* ai smile section */
  .ai-smile-section {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ai-smile-wrapper {
    padding: 40px 65px 50px;
    width: 95%;
  }

  .ai-smile-wrapper h2 {
    font-size: 32px;
  }

  #smileModal .btn-wrapper {
    padding: 10px 10px 25px;
  }

  #contactModal .modal-dialog .modal-content {
    padding: 30px 35px 45px;
  }

  #contactModal .contact-wrapper {
    padding: 60px 18px 25px;
  }

  #contactModal .contact-wrapper .usd-logo-img {
    top: -7.5%;
    width: 26%;
    left: 37%;
  }

  #contactModal .contact-title {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .preview-wrapper .row {
    --bs-gutter-x: 1rem;
  }

  /* .preview-modal-wrapper{
        margin: 1.5rem auto;
    } */
  /* .preview-modal-wrapper {
    width: 75%;
  } */
  .preview_img_wrapper {
    object-fit: cover;
  }

  #contactModal .contact-wrapper .usd-logo-img {
    background-image: none !important;
    background-color: #000 !important;
    top: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 1050 !important;
  }
}

@media (max-width: 768px) {
  .banner-highlight {
    width: 52%;
    margin: auto auto 20px;
  }

  .banner_section h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
  }

  .banner_section p {
    text-align: center;
    margin-bottom: 20px;
  }

  .banner_section .bat {
    margin: auto auto 35px;
  }

  .banner-img1 {
    width: 60%;
    margin: auto;
  }

  .bg-vector {
    /* top: -32%; */
    top: 0%;
    width: 100%;
    left: 0%;
    z-index: -1;
  }

  .banner-content {
    position: relative;
  }

  /* tips section */
  .tips-section {
    background-color: #0a0a0a;
    box-shadow: 0px 4px 4px 0px #00000040;
    border: 2px solid #333333;
    width: 90%;
    margin: auto;
    border-radius: 20px;
  }

  .tips-icon-wrapper {
    margin-bottom: 2.5rem;
  }

  .tips-section .row {
    margin-bottom: 0.5rem;
  }

  .tips-section .tips-title {
    font-size: 30px;
  }

  .tips-section .tips-subtitle {
    width: 100%;
    font-size: 15px;
  }

  /* ai section */
  .ai-smile-section {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .ai-smile-wrapper {
    padding: 30px 40px 40px;
    width: 100%;
  }

  .ai-smile-wrapper h2 {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .ai-smile-wrapper p {
    margin-bottom: 22px;
  }

  #contactModal .modal-dialog .modal-content {
    padding: 20px 25px 35px;
  }

  #contactModal .btn-close {
    margin: auto 0px 20px auto;
  }

  #contactModal .contact-wrapper {
    padding: 50px 18px 22px;
  }

  #contactModal .contact-wrapper .usd-logo-img {
    top: -7.5%;
    width: 35%;
    left: 32.5%;
    padding: 0px 15px;
  }

  .contact-form .form-control {
    padding: 6px 15px;
    height: 42px;
    margin-bottom: 18px;
    border: 1px solid #9E9E9E !important;
  }

  #PreviewModal .modal-content {
    padding: 18px 30px;
  }

  /* .preview-modal-wrapper {
    width: 90%;
  } */
  .preview-wrapper .btn {
    padding: 8px 12px;
    /* font-size: 14px; */
  }

  /* .preview-wrapper .bat{
        width: 30%;
    } */
  #PreviewModal .modal-body {
    padding: 0.5rem 0rem;
  }

  .preview-title {
    font-size: 28px;
  }

  .preview-wrapper p {
    line-height: 1.5;
    font-size: 12px;
  }

  .preview-wrapper .row .col-6,
  .preview-wrapper .row .col-12 {
    margin-bottom: 12px;
  }

  /* .preview-modal-wrapper{
    height: 330px;
  } */
}

/* @media(min-width:576px){
    #smileModal .modal-dialog{
        margin: auto !important;
    }
} */
@media (min-width: 768px) {
  .modal.fade .modal-dialog {
    max-width: 750px;
  }

  /* #PreviewModal .modal-dialog{
        max-width: 750px;
    } */
}

@media (min-width: 576px) and (max-width: 768px) {
  #contactModal .modal-dialog {
    max-width: 520px;
  }

  #PreviewModal .modal-dialog {
    max-width: 560px;
  }
}

@media (max-width: 576px) {
  .banner-highlight {
    width: 85%;
  }

  .banner_section h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .banner_section p {
    font-size: 15px;
  }

  .banner_section .bat {
    margin: auto auto 25px;
  }

  .banner-content {
    padding: 20px 0px;
  }

  .bg-vector {
    top: 0%;
    height: 95%;
  }

  #smileModal .smile-close-btn {
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
  }

  /* tips section */
  .tips-section .tips-title {
    font-size: 20px;
  }

  .tips-section .tips-subtitle {
    font-size: 14px;
  }

  .tips-card h2 {
    font-size: 18px;
  }

  .tips-card p {
    font-size: 15px;
  }

  /* .video-capture-wrapper .video-inner {
    aspect-ratio: 3 / 4;
    max-height: 45vh;
  } */

  /* ai section */
  .ai-smile-wrapper {
    padding: 25px 20px 35px;
  }

  .ai-smile-wrapper h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .ai-smile-wrapper p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* ======================================================================== */
  /* 📱 [MOBILE FULLSCREEN POPUPS] FOR MAX-WIDTH: 576px                       */
  /* ======================================================================== */
  #smileModal,
  #contactModal,
  #PreviewModal {
    padding: 0 !important;
  }

  body.modal-open .site-header,
  body.modal-open header,
  body.modal-open .main-bar,
  body.modal-open .is-fixed {
    display: none !important;
  }

  .modal-backdrop.show {
    opacity: 1 !important;
    background-color: #000000 !important;
  }

  #smileModal .modal-dialog,
  #contactModal .modal-dialog,
  #PreviewModal .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    align-items: stretch !important;
    transform: none !important;
  }

  #smileModal .modal-content,
  #contactModal .modal-content,
  #PreviewModal .modal-content {
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background-color: #000000 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  #smileModal .modal-body,
  #contactModal .modal-body,
  #PreviewModal .modal-body {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* ------------------------------------------------------------------------ */
  /* 1️⃣ POPUP 1A: INTRO GUIDE VIEW (#smileIntroView)                          */
  /* ------------------------------------------------------------------------ */
  #smileIntroView:not(.d-none) {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px !important;
    box-sizing: border-box !important;
    background: #000000 !important;
    overflow: hidden !important;
  }

  #smileIntroView.d-none {
    display: none !important;
  }

  #smileIntroView .intro-header-bar {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
    flex: 0 0 auto !important;
  }

  #smileIntroView .intro-modal-title {
    font-size: 20px !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    text-align: center !important;
    flex: 0 0 auto !important;
  }

  #smileIntroView .intro-modal-subtitle {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    text-align: center !important;
    flex: 0 0 auto !important;
  }

  #smileIntroView .guideline-video-wrapper {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 4px auto !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  #smileIntroView .guideline-video {
    width: 100% !important;
    height: auto !important;
    max-height: auto !important;
    object-fit: contain !important;
    border-radius: 16px !important;
  }

  .guideline-video-wrapper::after {
display: none;
}

  #smileIntroView .btn-intro-next {
    width: 100% !important;
    max-width: 260px !important;
    height: 44px !important;
    padding: 0 24px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    margin: 8px auto 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }

  /* ------------------------------------------------------------------------ */
  /* 2️⃣ POPUP 1B: LIVE CAMERA VIEW & CAPTURED STATE (#smileCameraView)         */
  /* ------------------------------------------------------------------------ */
  .smile-camera-wrapper:not(.d-none),
  #smileCameraView:not(.d-none) {
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .smile-camera-wrapper.d-none,
  #smileCameraView.d-none,
  #smileModal .d-none,
  #smileModal .hidden {
    display: none !important;
  }

  .camera-viewport-container {
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    background: #000000 !important;
  }

  .camera-viewport-container #video,
  .camera-viewport-container #freezeImg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0 !important;
  }

  .btn-switch-camera {
    top: 20px !important;
    left: 20px !important;
    z-index: 30 !important;
  }

  .custom-camera-close {
    top: 20px !important;
    right: 20px !important;
    z-index: 30 !important;
  }

  .face-frame-brackets {
    top: 40% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 272px !important;
    height: 359px !important;
    max-width: 72% !important;
    max-height: 52% !important;
  }

  .camera-bottom-overlay {
    position: absolute !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 16px !important;
    z-index: 25 !important;
  }

  .smile-detect-score-badge {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 6px !important;
  }

  .smile-detect-score-badge .detect-progress-ring {
    width: 40px !important;
    height: 40px !important;
  }

  .smile-detect-score-badge .detect-percent-text {
    font-size: 12px !important;
  }

  .camera-guide-text {
    font-size: 13px !important;
    margin-bottom: 12px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
  }

  #captureBtn.btn-capture-main {
    min-width: 180px !important;
    padding: 11px 28px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  .camera-btn-captured {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .camera-btn-captured .btn-recapture-main,
  .camera-btn-captured .btn-confirm-main {
    flex: 1 1 0 !important;
    max-width: 160px !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
  }

  /* ------------------------------------------------------------------------ */
  /* 3️⃣ POPUP 2: CONTACT INFORMATION MODAL (#contactModal)                     */
  /* ------------------------------------------------------------------------ */
  #contactModal .modal-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #contactModal .modal-content {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: #000000 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  #contactModal .modal-body {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #contactModal .contact-wrapper,
  #contactModal .modal-body.contact-wrapper {
    width: calc(100% - 32px) !important;
    max-width: 360px !important;
    margin: auto !important;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    padding: 34px 18px 20px 18px !important;
    border-radius: 20px !important;
    /* border: 1.5px solid #2e2e2e !important; */
    position: relative !important;
    background: #000000 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  #contactModal .btn-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    margin: 0 !important;
    z-index: 1060 !important;
    opacity: 0.85 !important;
  }

  #contactModal .contact-wrapper>a {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1050 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #contactModal .contact-wrapper .usd-logo-img {
    background-image: none !important;
    background-color: #000000 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 145px !important;
    max-width: 48vw !important;
    height: auto !important;
    padding: 2px 10px !important;
    display: block !important;
  }

  #contactModal .contact-title {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-top: 4px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    letter-spacing: 0.3px !important;
    font-family: "Barlow", sans-serif !important;
  }

  .contact-form .form-control {
    height: 44px !important;
    border-radius: 25px !important;
    border: 1px solid #9E9E9E !important;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    margin-bottom: 14px !important;
    font-size: 14px !important;
  }

  .contact_input_phone {
    display: flex !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  .flag_icon_ai_main {
    height: 44px !important;
    border-radius: 25px 0 0 25px !important;
    border: 1px solid #9E9E9E !important;
    border-right: none !important;
    background: #000000 !important;
    padding: 0 10px 0 16px !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  #contactModal #leadPhone.custom_input_phone {
    height: 44px !important;
    border-radius: 0 25px 25px 0 !important;
    border: 1px solid #9E9E9E !important;
    border-left: 1px solid #9E9E9E !important;
    background: #000000 !important;
    margin-bottom: 0 !important;
    padding: 10px 16px !important;
  }

  #contactModal #leadSubmitBtn {
    width: 140px !important;
    max-width: 160px !important;
    height: 42px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 8px auto 0 auto !important;
    border-radius: 10px !important;
    background: #141414 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    letter-spacing: 0.3px !important;
  }

  /* ------------------------------------------------------------------------ */
  /* 4️⃣ POPUP 3: PREVIEW BEFORE & AFTER MODAL (#PreviewModal)                  */
  /* ------------------------------------------------------------------------ */
  #PreviewModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: #000000 !important;
    background-color: #000000 !important;
    z-index: 99999 !important;
    overflow: hidden !important;
  }

  #PreviewModal .modal-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000000 !important;
  }

  #PreviewModal .modal-content {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: #000000 !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: none !important;
  }

  #PreviewModal .btn-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    margin: 0 !important;
    z-index: 1060 !important;
    opacity: 0.85 !important;
  }

  #PreviewModal .modal-body {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    background: #000000 !important;
  }

  .preview-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .preview-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 7px !important;
    padding: 0 10px !important;
    text-align: center !important;
    letter-spacing: 0.2px !important;
    font-family: "Barlow", sans-serif !important;
    flex: 0 0 auto !important;
  }

  .preview-wrapper p {
    font-size: 11px !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    padding: 0 10px !important;
    color: #b0b0b0 !important;
    text-align: center !important;
    max-width: 320px !important;
    flex: 0 0 auto !important;
  }

  .preview-modal-wrapper {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    max-height: calc(100dvh - 215px) !important;
    margin: 0 auto 6px auto !important;
    border-radius: 16px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #000000 !important;
    touch-action: none !important;
    flex: 0 1 auto !important;
  }

  .preview-modal-wrapper .preview_img_wrapper:first-child {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    overflow: hidden !important;
  }

  .preview-modal-wrapper .preview_img_wrapper:first-child img {
    width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 215px) !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .preview-modal-wrapper .preview_img_wrapper:nth-child(2) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    clip-path: inset(0px 0px 0px 50%);
    -webkit-clip-path: inset(0px 0px 0px 50%);
  }

  .preview-modal-wrapper .preview_img_wrapper:nth-child(2) img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .preview-modal-wrapper .before-input {
    touch-action: none !important;
  }

  .preview-wrapper .row {
    margin: 8 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 310px !important;
    flex: 0 0 auto !important;
  }

  .preview-wrapper .row .col-lg-3,
  .preview-wrapper .row .col-lg-4,
  .preview-wrapper .row .col-sm-6,
  .preview-wrapper .row .col-12 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .preview-wrapper #downloadBeforeBtn {
    width: 100% !important;
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #d8d8d8 0%, #a8a8a8 100%) !important;
    color: #000000 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: none !important;
  }

  .preview-wrapper #downloadBeforeBtn svg path {
    fill: #000000 !important;
  }

  .preview-wrapper .btn-appoinment {
    width: 100% !important;
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: #000000 !important;
    border: 1.5px solid #444444 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
  }

  .preview-wrapper .btn-appoinment a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  #PreviewModal,
  #PreviewModal .modal-dialog,
  #PreviewModal .modal-content,
  #PreviewModal .modal-body,
  #PreviewModal .preview-wrapper {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  #PreviewModal::-webkit-scrollbar,
  #PreviewModal .modal-dialog::-webkit-scrollbar,
  #PreviewModal .modal-content::-webkit-scrollbar,
  #PreviewModal .modal-body::-webkit-scrollbar,
  #PreviewModal .preview-wrapper::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

@media (max-width: 480px) {
  .banner-highlight {
    width: 100%;
  }
}

.contact_input_phone {
  display: flex;
  position: relative;
}

.flag_icon_ai_main {
  width: auto;
  height: 50px;
  border-top: 1px solid #9E9E9E;
  border-bottom: 1px solid #9E9E9E;
  border-left: 1px solid #9E9E9E;
  border-right: none;
  border-bottom-left-radius: 25px;
  border-top-left-radius: 25px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-left: 16px;
  user-select: none;
}

.custom_input_phone {
  border-bottom-left-radius: 0px !important;
  border-top-left-radius: 0px !important;
}

.flag_image {
  width: 30px;
  height: 18px;
  /* border: 1px solid white; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.flag_image>img {
  width: 100%;
  height: 100%;
}

.selected_code_text {
  color: white;
  margin-left: 8px;
}

.arrow_icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.arrow_icon img {
  transition: transform 0.3s ease;
}

/* Arrow Rotation on Click / Active State */
.flag_icon_main.active .arrow_icon,
.flag_icon_main.active .arrow_icon img,
.input_icon_with_flag_main.active .arrow_icon,
.input_icon_with_flag_main.active .arrow_icon img {
  transform: rotate(90deg);
}

/* Country Dropdown Styles */
.country-dropdown-menu,
.country_dropdown_menu {
  display: none;
  position: absolute;
  top: calc(72% + 8px);
  left: 0;
  width: 290px;
  max-width: calc(100vw - 30px);
  max-height: 280px;
  background: #141414;
  border: 1px solid white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  z-index: 9999;
  overflow-y: auto;
  padding: 10px;
}

.country-dropdown-menu.show,
.country_dropdown_menu.show {
  display: block;
}

.country-dropdown-menu::-webkit-scrollbar,
.country_dropdown_menu::-webkit-scrollbar {
  width: 6px;
}

.country-dropdown-menu::-webkit-scrollbar-thumb,
.country_dropdown_menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.country-search-box,
.country_search_box {
  position: sticky;
  top: -10px;
  background: #141414;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
  margin-top: -2px;
}

.country-search-box input,
.country_search_box input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #222222;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.country-search-box input:focus,
.country_search_box input:focus {
  border-color: #9E9E9E;
}

.country-list,
.country_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.country-item,
.country_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #ffffff;
  font-size: 14px;
}

.country-item:hover,
.country-item.active,
.country_item:hover,
.country_item.active {
  background: rgba(255, 255, 255, 0.15);
}

.country-item-info,
.country_item_info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.country-flag-img,
.country_flag_img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.country-item-name,
.country_item_name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.country-item-code,
.country_item_code {
  color: #aaaaaa;
  font-size: 13px;
  margin-left: 8px;
  flex-shrink: 0;
}

.no-country-found,
.no_country_found {
  padding: 12px;
  color: #aaaaaa;
  text-align: center;
  font-size: 14px;
}

@media (max-width:768px) {
  .flag_icon_ai_main {
    height: 42px !important;
  }
}



/* Virtual Smile Contact Form Pincode & City Styles */
.pincode-input-wrapper {
  position: relative;
  width: 100%;
}

.pincode-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#contactModal .contact_input_phone {
  position: relative !important;
}

#contactModal #leadPhone {
  padding-right: 42px !important;
}

#contactModal #leadPincode,
#contactModal #pincodeInput {
  padding-right: 42px !important;
}

/* Phone VALID (Green border, status icon, NO box-shadow) */
#contactModal #leadPhone.is-valid,
#contactModal input#leadPhone.is-valid,
#contactModal #leadPhone.is-valid:focus,
#contactModal input#leadPhone.is-valid:focus,
#contactModal .contact_input_phone.is-valid #leadPhone {
  border: 1px solid #10b981 !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}

#contactModal .flag_icon_ai_main.is-valid,
#contactModal #countrySelectBtn.is-valid,
#contactModal .contact_input_phone.is-valid .flag_icon_ai_main,
#contactModal .contact_input_phone:has(#leadPhone.is-valid) .flag_icon_ai_main {
  border: 1px solid #10b981 !important;
  border-right: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Phone INVALID (Red border, status icon, NO box-shadow) */
#contactModal #leadPhone.is-invalid,
#contactModal input#leadPhone.is-invalid,
#contactModal #leadPhone.is-invalid:focus,
#contactModal input#leadPhone.is-invalid:focus,
#contactModal .contact_input_phone.is-invalid #leadPhone {
  border: 1px solid #ef4444 !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}

#contactModal .flag_icon_ai_main.is-invalid,
#contactModal #countrySelectBtn.is-invalid,
#contactModal .contact_input_phone.is-invalid .flag_icon_ai_main,
#contactModal .contact_input_phone:has(#leadPhone.is-invalid) .flag_icon_ai_main {
  border: 1px solid #ef4444 !important;
  border-right: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Pincode VALID (Green border, status icon, NO box-shadow) */
#contactModal #leadPincode.is-valid,
#contactModal input#leadPincode.is-valid,
#contactModal #leadPincode.is-valid:focus,
#contactModal input#leadPincode.is-valid:focus,
#contactModal #pincodeInput.is-valid,
#contactModal #pincodeInput.is-valid:focus,
#contactModal .pincode-input-container.is-valid #leadPincode,
#contactModal .pincode-input-wrapper.is-valid #leadPincode {
  border: 1px solid #10b981 !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}

/* Pincode INVALID (Red border, status icon, NO box-shadow) */
#contactModal #leadPincode.is-invalid,
#contactModal input#leadPincode.is-invalid,
#contactModal #leadPincode.is-invalid:focus,
#contactModal input#leadPincode.is-invalid:focus,
#contactModal #pincodeInput.is-invalid,
#contactModal #pincodeInput.is-invalid:focus,
#contactModal .pincode-input-container.is-invalid #leadPincode,
#contactModal .pincode-input-wrapper.is-invalid #leadPincode {
  border: 1px solid #ef4444 !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}

/* Strict suppression of box-shadow on focus / hover for all lead form inputs */
#contactModal input:focus,
#contactModal .form-control:focus,
#contactModal #leadPhone:focus,
#contactModal #leadPincode:focus,
#contactModal #leadCity:focus,
#contactModal #leadName:focus,
#contactModal #leadEmail:focus,
#contactModal #countrySelectBtn:focus,
#contactModal .flag_icon_ai_main:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Status Icons & Spinner positioning */
.smile-phone-status-icon {
  position: absolute !important;
  right: 14px !important;
  top: 33% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.smile-pincode-status-icon {
  position: absolute !important;
  right: 14px !important;
  top: 33% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.smile-pincode-spinner {
  position: absolute !important;
  right: 14px !important;
  top: 33% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-top-color: #c7a041 !important;
  border-radius: 50% !important;
  animation: smilePinSpin 0.7s linear infinite !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

#contactModal #leadCity:read-only,
#contactModal #leadCity[readonly],
#contactModal #cityInput:read-only,
#contactModal #cityInput[readonly] {
  cursor: default !important;
  background: #000000 !important;
  border: 1px solid #9E9E9E !important;
  border-radius: 25px !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.smile-city-pulse {
  animation: smileCityPulse 1s ease;
}

@keyframes smileCityPulse {
  0% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6) !important;
  }

  100% {
    box-shadow: none;
  }
}

@media (max-width:576px) {
  .flag_icon_ai_main {
    height: 44px !important;
  }

  #smileModal .modal-content {
    border-radius: 18px;
    padding-bottom: 10px;
  }

  #smileModal .btn-wrapper {
    padding: 10px 10px 10px;
  }

  #smileGuideLine {
    margin-bottom: 16px !important;
    font-size: 16px !important;
  }

  .video-capture-wrapper .video-inner {
    max-height: 350px;
    overflow: hidden;
  }

  #smileModal .smile-close-btn {
    width: 24px;
    height: 24px;
    top: 10px;
    right: 10px;
  }

  .capture-inner {
    font-size: 16px !important;
    padding: 10px 0px !important;
  }

  .video-capture-wrapper .video-inner #video,
  .video-capture-wrapper .video-inner #freezeImg {
    object-fit: cover !important;
  }

  .preview_img_wrapper img {
    object-fit: cover;
    /* object-fit: contain; */
  }

  .video-capture-wrapper {
    aspect-ratio: 13 / 8;
  }

  .smile-pincode-spinner {
    position: absolute !important;
    right: 14px !important;
    top: 22px !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-top-color: #c7a041 !important;
    border-radius: 50% !important;
    animation: smilePinSpin 0.7s linear infinite !important;
    pointer-events: none !important;
  }

  .smile-pincode-status-icon {
    position: absolute !important;
    right: 14px !important;
    top: 22px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    pointer-events: none !important;
  }

  .smile-phone-status-icon {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    pointer-events: none !important;
  }
}