/* ========================================================
   GET DEMO PAGE - CORE LAYOUT & CONTAINER
======================================================== */
.demo-page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #F8FAFD;
}

.demo-content-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 60px 24px;
  box-sizing: border-box;
}

.demo-split-card {
  width: 100%;
  max-width: 1140px;
  min-height: 580px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 56, 106, 0.08);
  border: 1.5px solid #E2E8F0;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
}

/* ========================================================
   LEFT COLUMN - 3-IMAGE CAROUSEL SLIDER & POLICY LINKS
======================================================== */
.demo-card-left {
  flex: 1;
  background: #FFFFFF;
  padding: 24px 28px 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1.5px solid #F1F5F9;
  box-sizing: border-box;
}

.demo-poster-container {
  width: 100%;
  flex: 1;
  min-height: 480px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #F8FAFD;
  box-shadow: 0 8px 25px rgba(0, 56, 106, 0.06);
  border: 1px solid #EDF2F7;
}

.demo-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.demo-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.demo-poster-graphic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dots Inside Poster */
.demo-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.demo-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: all 0.25s ease;
}

.demo-slide-dot.active {
  width: 22px;
  border-radius: 10px;
  background-color: #068B7B;
  box-shadow: 0 0 8px rgba(6, 139, 123, 0.6);
}

/* Left Bottom Links */
.demo-policy-footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}

.demo-bottom-link {
  color: #00386A;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.demo-bottom-link:hover {
  color: #068B7B;
}

.demo-link-separator {
  color: #CBD5E1;
  font-size: 12px;
}

/* ========================================================
   RIGHT COLUMN - FORM WRAPPER & BACKGROUND
======================================================== */
.demo-card-right {
  flex: 1.15;
  background: linear-gradient(135deg, #E6F7F5 0%, #D8F2EF 50%, #C4ECE7 100%);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* ========================================================
   API MESSAGES (ERROR & INFO) - CENTERED POPUP FIX
======================================================== */
.demo-error-banner,
.demo-info-banner {
  /* Screen ke center me fix karne ka jadu */
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 999999 !important; /* Hamesha sabse upar */

  width: 90% !important;
  max-width: 380px !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;

  /* Smooth 3D popping animation */
  animation: popInCenter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

/* Error Colors (Laal) */
.demo-error-banner {
  background-color: #FEF2F2 !important;
  border: 1.5px solid #EF4444 !important;
  color: #991B1B !important;
}

/* Info Colors (Neela) */
.demo-info-banner {
  background-color: #EBF8FF !important;
  border: 1.5px solid #3182CE !important;
  color: #2C5282 !important;
}

.demo-error-banner .error-icon,
.demo-info-banner .info-icon {
  font-size: 24px !important;
  flex-shrink: 0;
}

.demo-error-banner .error-text,
.demo-info-banner .info-text {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  flex: 1;
}

/* Center Popup Keyframes */
@keyframes popInCenter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ========================================================
   GET DEMO REGISTRATION FORM
======================================================== */
.demo-register-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.demo-input-field-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.demo-grid-two-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.demo-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #00386A;
  margin-bottom: 6px;
}

.field-star {
  color: #E53E3E;
  font-weight: 800;
}

.demo-text-box,
.demo-select-box {
  width: 100%;
  height: 44px;
  background: #FFFFFF;
  border: 1.5px solid #CDE7E3;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  color: #1E293B;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-text-box::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

.demo-text-box:focus,
.demo-select-box:focus {
  border-color: #068B7B;
  box-shadow: 0 0 0 3px rgba(6, 139, 123, 0.15);
}

.demo-select-box {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300386A'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

/* Submit Action Button */
.demo-submit-action-btn {
  width: 100%;
  height: 46px;
  background: #004D40;
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(0, 77, 64, 0.25);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-submit-action-btn:hover:not(:disabled) {
  background: #00386A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 56, 106, 0.25);
}

.btn-submitting {
  opacity: 0.82;
  cursor: not-allowed;
  transform: none !important;
}

/* Privacy Notice */
.demo-privacy-notice {
  font-size: 12px;
  color: #475569;
  text-align: center;
  margin: 8px 0 0 0;
  line-height: 1.5;
}

.notice-privacy-link {
  color: #00386A;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.notice-privacy-link:hover {
  color: #068B7B;
}

/* ========================================================
   OTP VERIFICATION SCREEN
======================================================== */
.demo-otp-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  box-sizing: border-box;
  animation: otpScreenFade 0.3s ease-out;
}

@keyframes otpScreenFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.demo-otp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.otp-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #068B7B;
  color: #068B7B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(6, 139, 123, 0.15);
  margin-bottom: 6px;
}

.otp-brand-icon .material-icons-outlined {
  font-size: 26px;
}

.otp-view-title {
  font-size: 22px;
  font-weight: 800;
  color: #00386A;
  margin: 0;
}

.otp-view-desc {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

.otp-bold-phone {
  color: #00386A;
  font-weight: 700;
}

/* Big OTP Digits Input */
.otp-box-input {
  height: 50px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  text-align: center !important;
  letter-spacing: 12px !important;
  color: #00386A !important;
  border: 2px solid #068B7B !important;
  background-color: #FFFFFF !important;
  max-width: 220px;
  margin: 0 auto;
}

.otp-sub-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.otp-action-link-btn {
  background: transparent;
  border: none;
  color: #00386A;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.2s ease;
}

.otp-action-link-btn:hover {
  color: #068B7B;
}

.otp-dot-sep {
  color: #94A3B8;
  font-size: 12px;
}

/* ========================================================
   SUCCESS MODAL POPUP DIALOG (AFTER OTP VERIFIED)
======================================================== */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 45, 84, 0.45);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  box-sizing: border-box;
  animation: modalFadeIn 0.25s ease-out;
}

.demo-modal-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 56, 106, 0.25);
  border: 1.5px solid #E2E8F0;
  animation: modalScaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

.modal-icon-bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E6F7F5 0%, #D8F2EF 100%);
  color: #068B7B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid #068B7B;
  box-shadow: 0 8px 20px rgba(6, 139, 123, 0.2);
}

.modal-icon-bubble .material-icons-outlined {
  font-size: 40px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #00386A;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.modal-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 26px 0;
}

.modal-confirm-btn {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #00386A 0%, #068B7B 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(6, 139, 123, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 139, 123, 0.4);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================================
   RESPONSIVE DESIGN (TABLETS & MOBILES)
======================================================== */
@media screen and (max-width: 900px) {
  .demo-split-card {
    flex-direction: column;
    max-width: 580px;
    min-height: auto;
  }

  .demo-card-left {
    border-right: none;
    border-bottom: 1.5px solid #F1F5F9;
    padding: 24px;
  }

  .demo-poster-container {
    min-height: 320px;
    height: 320px;
  }

  .demo-card-right {
    padding: 28px 24px;
  }
}

@media screen and (max-width: 520px) {
  .demo-grid-two-inputs {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .demo-content-stage {
    padding: 24px 14px 40px 14px;
  }
}
.otp-action-disabled-text {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.otp-sub-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.otp-action-disabled-text {
  color: #64748B;
  font-size: 13.5px;
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.otp-countdown-digits {
  color: #068B7B;
  font-weight: 700;
  font-family: monospace;
  font-size: 14px;
}

.otp-action-link-btn {
  background: transparent;
  border: none;
  color: #00386A;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.2s ease;
}

.otp-action-link-btn:hover {
  color: #068B7B;
}

.demo-info-banner {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: #EBF8FF;
  border: 1.5px solid #3182CE;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  box-sizing: border-box;
  animation: infoSlideIn 0.3s ease-out;
}

.demo-info-banner .info-icon {
  color: #2B6CB0;
  font-size: 20px;
  flex-shrink: 0;
}

.demo-info-banner .info-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #2C5282;
  line-height: 1.45;
  flex: 1;
}

@keyframes infoSlideIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}