/* ================================================================
   Dentaid Raffle Popup
   ================================================================ */

.dentaid-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dentaid-popup-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  display: grid;
  grid-template-columns: 42% 58%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* ---- Close button ---- */
.dentaid-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  z-index: 10;
  padding: 0;
}
.dentaid-popup-close:hover {
  color: #fff;
}

/* ---- Left: image panel ---- */
.dentaid-popup-left {
  position: relative;
  background-size: 220%;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 420px;
}

.dentaid-popup-sorteo-header {
  display: none;
}

.dentaid-popup-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #101828;
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.dentaid-popup-product-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.dentaid-popup-product-info strong {
  font-size: 23.23px;
  font-weight: 700;
  color: #101828;
}
.dentaid-popup-valorado {
  font-size: 10.45px;
  color: #4a5565;
}
.dentaid-popup-price {
  font-size: 17.42px;
  font-weight: 800;
  color: #101828;
  line-height: 1.1;
}

/* ---- Right: form panel ---- */
.dentaid-popup-right {
  background: linear-gradient(62deg, #cdb573 13%, #ebdc7f 35%, #cdb573 51%, #ebdc7f 69%, #cdb573 91%);
  padding: 36px 28px 32px 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  margin-left: -90px;
  clip-path: polygon(90px 0%, 100% 0%, 100% 100%, 0% 100%);
  position: relative;
  z-index: 1;
}

.dentaid-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  max-width: 397px;
  margin: 0 auto;
  width: 100%;
}

.dentaid-popup-gift-icon {
  width: 72.7px;
  height: 72.7px;
  flex-shrink: 0;
  transform: rotate(9.89deg);
}
.dentaid-popup-gift-icon img {
  width: 100%;
  height: 100%!important;
  object-fit: contain;
}

.dentaid-popup-title {
  font-size: 34.56px;
  font-weight: 700;
  color: #211c80;
  line-height: 1.2;
  margin: 0;
  text-align: center;
  max-width: 280px;
}
.dentaid-popup-title span {
  color: #101828;
}

.dentaid-popup-desc {
  font-size: 13.82px;
  color: #4a5565;
  line-height: 1.6;
  margin: 0 auto;
  text-align: center;
  max-width: 397px;
  width: 100%;
}

/* ---- Form card ---- */
.dentaid-popup-form-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dentaid-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dentaid-popup-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dentaid-popup-label {
  font-size: 12px;
  font-weight: 700;
  color: #101828;
  text-align: left;
}

.dentaid-popup-required {
  color: #e7000b;
}

.dentaid-popup-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 10px;
  height: 38px;
  background: #fff;
  transition: border-color 0.15s;
}
.dentaid-popup-field:focus-within {
  border-color: #211c80;
}
.dentaid-popup-field--error {
  border-color: #e7000b;
}
.dentaid-popup-field input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
  color: #101828;
  background: transparent;
}
.dentaid-popup-field input::placeholder {
  color: #99a1af;
}

.dentaid-popup-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dentaid-popup-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: #4a5565;
  line-height: 1.4;
  text-align: left;
}
.dentaid-popup-checkbox input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}
.dentaid-popup-checkbox label {
  text-align: left;
}
.dentaid-popup-checkbox a {
  color: #211c80;
  font-weight: 600;
}
.dentaid-popup-checkbox--error label {
  color: #e7000b;
}

.dentaid-popup-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 12px;
  padding: 8px 12px;
  line-height: 1.4;
}

.dentaid-popup-submit {
  background: #07061a;
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.dentaid-popup-submit:hover {
  background: #211c80;
}

/* ---- Success state ---- */
.dentaid-popup-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0 4px;
  text-align: center;
  font-size: 14px;
  color: #4a5565;
}

/* ================================================================
   Mobile-only elements (hidden on desktop)
   ================================================================ */
.dentaid-popup-mobile-title {
  display: none;
}

/* Footer note: visible on desktop and mobile */
.dentaid-popup-footer-note {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.5;
  padding: 4px 0 0;
}

/* ================================================================
   Mobile
   ================================================================ */
@media (max-width: 640px) {
  .dentaid-popup-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px 16px 32px;
  }

  .dentaid-popup-box {
    grid-template-columns: 1fr;
    /* max-height: 92vh;
    overflow-y: auto; */
    overflow: visible;
  }

  /* Image panel */
  .dentaid-popup-left {
    min-height: 405px;
    background-position: center center;
  }

  /* SORTEO header: no background, blue text, large */
  .dentaid-popup-sorteo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: none;
    color: #211c80;
    font-size: 38.02px;
    font-weight: 700;
    padding: 10px;
    letter-spacing: 0.5px;
    line-height: 1;
    z-index: 2;
  }
  .dentaid-popup-sorteo-header img {
    width: 54.74px;
    height: 54.74px;
  }

  /* Title overlay on image: 10px gap below SORTEO header (~58px tall) */
  .dentaid-popup-mobile-title {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 24.63px;
    font-weight: 700;
    color: #101828;
    padding: 0 20px;
    line-height: 1.3;
    z-index: 1;
  }
  .dentaid-popup-mobile-title span {
    color: #211c80;
  }

  /* NOVEDAD badge: hidden */
  .dentaid-popup-badge {
    display: none;
  }

  /* Product info: bottom-left, pushed up away from white card */
  .dentaid-popup-product-info {
    right: auto;
    left: 16px;
    bottom: 50px;
    text-align: left;
  }
  .dentaid-popup-product-info strong {
    display: none;
  }
  .dentaid-popup-valorado {
    font-size: 12.65px;
    color: #101828;
  }
  .dentaid-popup-price {
    font-size: 21.08px;
    color: #101828;
  }

  /* Close button: keep white to contrast blue header */
  .dentaid-popup-close {
    color: rgba(255, 255, 255, 0.85);
    z-index: 10;
  }

  /* Form panel: gold gradient stays, no overlap */
  .dentaid-popup-right {
    padding: 10px 16px 20px;
    gap: 10px;
    margin-left: 0;
    clip-path: none;
  }

  /* White card overlaps the image */
  .dentaid-popup-form-card {
    margin-top: -30px;
    position: relative;
    z-index: 3;
    border-radius: 16px 16px 10px 10px;
  }

  /* Hide desktop gift icon + title + desc */
  .dentaid-popup-header,
  .dentaid-popup-desc {
    display: none;
  }

  /* Checkbox font size */
  .dentaid-popup-checkbox {
    font-size: 14.98px;
  }

  /* Submit button font size */
  .dentaid-popup-submit {
    font-size: 22.83px;
  }

  /* Footer note (already visible, just tweak padding on mobile) */
  .dentaid-popup-footer-note {
    padding: 4px 0 0;
  }
}
