/* ==========================================
   Global Website First-Time Load Popup Styles
   ========================================== */

.aleph-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.aleph-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Box - Full background image across entire popup */
.aleph-popup-modal {
  background: #ffffff url('../image/website-load-popup-image/website-load-popup-image.png') center/cover no-repeat;
  width: 100%;
  max-width: 920px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.aleph-popup-overlay.active .aleph-popup-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.aleph-popup-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  z-index: 10;
}

.aleph-popup-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
  transform: rotate(90deg);
}

/* Main Flex Layout */
.aleph-popup-container {
  display: flex;
  min-height: 450px;
}

/* Left Side - Transparent so full modal bg image shows through */
.aleph-popup-left {
  flex: 1.1;
  background: transparent;
  padding: 52px 24px 90px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.aleph-left-header {
  position: relative;
  z-index: 3;
  margin-bottom: 20px;
}

.aleph-tagline {
  font-size: 1.15rem;
  color: #475569;
  font-weight: 500;
  display: block;
}

.aleph-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0b2c67;
  margin-top: 4px;
  line-height: 1.25;
}

.aleph-heading-underline {
  width: 45px;
  height: 4px;
  background: #0056c6;
  border-radius: 2px;
  margin-top: 10px;
}

.aleph-logo-box {
  position: relative;
  z-index: 2;
  margin-top: 5px;
  margin-left: -10px;
}

.aleph-popup-logo {
  max-height: 75px;
  width: auto;
  object-fit: contain;
}

/* Trust Badge - fixed at bottom of left panel */
.aleph-trust-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 170px;
  background: #031b4e;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(3, 27, 78, 0.35);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.aleph-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  font-size: 18px;
}

.aleph-trust-text p {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.35;
  color: #cbd5e1;
}

.aleph-trust-text strong {
  color: #38bdf8;
  font-weight: 700;
}

/* Right Side - Fully transparent so background image shows through entire popup */
.aleph-popup-right {
  flex: 1;
  background: transparent;
  padding: 40px 40px 40px 100px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aleph-form-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0b2c67;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

.aleph-form-header h3 span {
  color: #0056c6;
}

.aleph-form-underline {
  width: 40px;
  height: 3px;
  background: #0056c6;
  border-radius: 2px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.aleph-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aleph-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.aleph-input-icon {
  position: absolute;
  left: 14px;
  color: #0056c6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.aleph-input-control {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: all 0.25s ease;
}

.aleph-input-control::placeholder {
  color: #94a3b8;
}

.aleph-input-control:focus {
  border-color: #0056c6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 86, 198, 0.1);
}

/* Submit Button */
.aleph-submit-btn {
  margin-top: 8px;
  width: 100%;
  background: #0056c6;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(0, 86, 198, 0.35);
  transition: all 0.3s ease;
}

.aleph-submit-btn:hover {
  background: #004199;
  box-shadow: 0 8px 25px rgba(0, 86, 198, 0.45);
  transform: translateY(-1px);
}

.aleph-btn-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   Mobile Responsive - Phone & Tablet
   ========================================== */
@media (max-width: 768px) {
  .aleph-popup-overlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .aleph-popup-modal {
    border-radius: 16px;
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .aleph-popup-overlay.active .aleph-popup-modal {
    transform: scale(1);
  }

  .aleph-popup-container {
    flex-direction: column;
    min-height: unset;
  }

  /* Left panel - compact on mobile */
  .aleph-popup-left {
    padding: 20px 16px 14px 16px;
    min-height: auto;
  }

  .aleph-left-header {
    margin-bottom: 6px;
  }

  .aleph-tagline {
    font-size: 0.85rem;
  }

  .aleph-heading {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .aleph-heading-underline {
    margin-top: 6px;
    height: 3px;
    width: 35px;
  }

  .aleph-logo-box {
    margin-top: 6px;
    margin-left: 0;
  }

  .aleph-popup-logo {
    max-height: 42px;
  }

  /* Trust card - relative on mobile, inline */
  .aleph-trust-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    gap: 10px;
  }

  .aleph-trust-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .aleph-trust-text p {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  /* Right panel - full width form */
  .aleph-popup-right {
    padding: 14px 16px 18px 16px;
    background: rgba(255, 255, 255, 0.95);
  }

  .aleph-form-header h3 {
    font-size: 1.05rem;
  }

  .aleph-form-underline {
    margin-top: 4px;
    margin-bottom: 12px;
    height: 3px;
    width: 30px;
  }

  .aleph-lead-form {
    gap: 8px;
  }

  .aleph-input-control {
    padding: 10px 12px 10px 38px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .aleph-input-icon {
    left: 12px;
  }

  .aleph-submit-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    margin-top: 4px;
    border-radius: 8px;
  }

  .aleph-btn-arrow {
    width: 24px;
    height: 24px;
  }

  /* Close button more visible on mobile */
  .aleph-popup-close {
    top: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
}

/* Tablet - side by side but compact */
@media (min-width: 769px) and (max-width: 992px) {
  .aleph-popup-modal {
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .aleph-popup-left {
    padding: 30px 20px 90px 28px;
  }

  .aleph-popup-right {
    padding: 30px 28px 30px 28px;
  }

  .aleph-trust-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}
