/* ---- Signup modal ---- */
#modal .modal-dialog {
  max-width: 480px;
}

/* Legacy decorative background — a single "cover" image on the dialog
   itself (not a repeating tile). .modal-content stays transparent so
   the image shows through around the logo/heading at the top and
   behind the sign-in line at the bottom; the opaque .form-control
   fields are what block it through the middle. Real asset, ported
   as-is from assets.3.0/img/bg-modal.png (see style.1.0.6.css
   .bg-modal rule). */
#modal .modal-dialog {
  background: url("../../../../assets.3.0/img/bg-modal.png") no-repeat center
    center / cover;
  border-radius: var(--ce-radius-md);
}

#modal .modal-content {
  border: none;
  background: transparent;
  border-radius: var(--ce-radius-md);
  padding: 40px 36px 32px;
  position: relative;
}

#modal .modal-logo img {
  width: 140px;
  margin-bottom: 24px;
}

#modal h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ce-color-navy);
  margin-bottom: 24px;
}

#modal .form-group {
  margin-bottom: 14px;
}

#modal .form-control {
  width: 100%;
  border: 1px solid #e2e6ee;
  border-radius: var(--ce-radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--ce-color-navy);
}

#modal .form-control:focus {
  outline: none;
  border-color: var(--ce-color-primary);
  box-shadow: 0 0 0 3px rgba(41, 82, 227, 0.15);
}

#modal .form-check-ht {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  text-align: left;
}

#modal .form-check-ht input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--ce-color-primary);
  flex-shrink: 0;
}

#modal .form-check-ht label {
  font-size: 0.85rem;
  color: #4b5567;
}

#modal .form-check-ht label a {
  color: var(--ce-color-primary);
}

#modal .cf-turnstile {
  margin: 4px 0 14px;
}

#modal .btn-register {
  width: 100%;
  background: var(--ce-color-primary);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 14px;
  border-radius: 999px;
  font-size: 1rem;
}

#modal .btn-register:hover {
  background: var(--ce-color-primary-dark);
}

#modal .sign-in {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #4b5567;
}

#modal .sign-in a {
  color: var(--ce-color-primary);
  font-weight: 600;
}

#modal .close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ce-color-primary);
  font-size: 1.3rem;
}

/* ---- Video modal (Watch demo) ---- */

#videoModal .modal-dialog {
  max-width: 900px;
}
#imageLightboxModal .modal-content {
  background: transparent;
  border: none;
}

#imageLightboxModal img {
  width: 100%;
  height: auto;
  border-radius: var(--ce-radius-md);
  display: block;
}

#imageLightboxModal .btn-close {
  position: absolute;
  top: -40px;
  right: 0;
  filter: invert(1);
}
#videoModal .modal-content {
  border: none;
  border-radius: var(--ce-radius-md);
  overflow: hidden;
  background: #000;
}

#videoModal .ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

#videoModal iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#videoModal .btn-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  filter: invert(1);
  opacity: 0.9;
}
