/**
 * LJUSA Luxury Lead Capture Modal Stylesheet
 * Clean White Card with High-Contrast Deep Black Typography & Solid Black CTA
 */

.ljusa-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.ljusa-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ljusa-popup-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Close button */
.ljusa-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ljusa-popup-close:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: rotate(90deg);
}

/* Left Hero Visual */
.ljusa-popup-visual {
  width: 44%;
  background-size: cover;
  background-position: center top;
  position: relative;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ljusa-visual-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  padding: 24px;
  box-sizing: border-box;
}

.ljusa-badge-pill {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ljusa-visual-caption {
  font-size: 13.5px;
  color: #f3f4f6;
  font-weight: 500;
  line-height: 1.4;
}

/* Right Content Area (Clean White & Crisp Black) */
.ljusa-popup-content {
  width: 56%;
  padding: 36px 36px 32px 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #111827;
  background: #ffffff;
}

.ljusa-logo-wrap {
  margin-bottom: 14px;
}

.ljusa-popup-logo {
  max-width: 140px;
  height: auto;
  display: block;
}

.ljusa-popup-tagline {
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ljusa-popup-heading {
  font-size: 27px;
  font-weight: 900;
  color: #000000;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.ljusa-popup-desc {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 18px 0;
}

/* Preference Selector */
.ljusa-segment-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.ljusa-gender-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ljusa-gender-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  color: #111827 !important; /* Ensure 100% dark readable text */
  box-sizing: border-box;
}

.ljusa-gender-opt input {
  display: none;
}

.ljusa-gender-opt:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #000000 !important;
}

.ljusa-gender-opt.active {
  background: #f3f4f6;
  border-color: #000000;
  color: #000000 !important;
  font-weight: 800;
  box-shadow: 0 0 0 1px #000000;
}

.ljusa-gender-opt span {
  color: #111827 !important;
}

.ljusa-gender-opt.active span {
  color: #000000 !important;
}

/* Biker / Rider Row */
.ljusa-biker-row {
  margin-bottom: 16px;
  background: #f9fafb;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.ljusa-biker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}

.ljusa-biker-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #000000;
  cursor: pointer;
  margin: 0;
}

.ljusa-biker-text {
  font-size: 12.5px;
  color: #111827;
  line-height: 1.35;
}

/* Input Fields */
.ljusa-input-group {
  margin-bottom: 10px;
}

.ljusa-input-group input {
  width: 100%;
  padding: 13px 14px;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  font-size: 13.5px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ljusa-input-group input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.ljusa-input-group input::placeholder {
  color: #9ca3af;
}

/* Error Alert */
.ljusa-error-text {
  color: #b91c1c;
  font-size: 12.5px;
  margin-bottom: 10px;
  background: #fef2f2;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

/* Solid Black Submit Button with White Text */
.ljusa-btn-black {
  width: 100%;
  background: #000000;
  color: #ffffff !important;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ljusa-btn-black:hover {
  background: #27272a;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.ljusa-privacy-notice {
  font-size: 11.5px;
  color: #6b7280;
  text-align: center;
  margin-top: 10px;
}

/* Success View */
.ljusa-success-icon {
  width: 52px;
  height: 52px;
  background: #f0fdf4;
  border: 2px solid #22c55e;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  margin: 0 auto 15px auto;
}

.ljusa-coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafb;
  border: 2px dashed #111827;
  border-radius: 10px;
  padding: 14px 20px;
  margin: 16px 0;
}

.ljusa-coupon-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  font-weight: 900;
  color: #000000;
  letter-spacing: 3px;
}

.ljusa-btn-copy {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ljusa-btn-copy:hover {
  background: #27272a;
}

.ljusa-copied-text {
  color: #16a34a;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  margin-top: -6px;
  margin-bottom: 12px;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
  .ljusa-popup-card {
    flex-direction: column;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .ljusa-popup-visual {
    display: none; /* Hide visual so content fits mobile screen without scrolling */
  }

  .ljusa-popup-content {
    width: 100%;
    padding: 32px 24px 26px 24px;
    text-align: center; /* Center-align container */
  }

  /* Center-align logo and text on mobile */
  .ljusa-logo-wrap {
    text-align: center;
    margin-bottom: 12px;
  }

  .ljusa-popup-logo {
    margin: 0 auto !important; /* Center-align logo */
  }

  .ljusa-popup-tagline {
    text-align: center;
  }

  .ljusa-popup-heading {
    text-align: center;
    font-size: 23px;
  }

  .ljusa-popup-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .ljusa-segment-label {
    text-align: center;
  }

  .ljusa-biker-row {
    text-align: left; /* Keep checkbox and label aligned nicely */
  }
}
