/* Overlay */
.royal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center !important;
  align-items: center !important;
  z-index: 999999;
  padding: 20px;
  overflow-y: auto;
}

/* Popup Box */
.royal-popup {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-radius: 16px;
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  animation: slideUp 0.45s cubic-bezier(.2,.9,.2,1);
  position: relative;
  box-shadow: 0 12px 40px rgba(187,63,9,0.25);
  transform: translateY(60px);
  opacity: 0;
  transition: transform .5s ease, opacity .5s ease;
}

.royal-overlay.active .royal-popup {
  transform: translateY(0);
  opacity: 1;
}

@keyframes slideUp {
  from { transform: translateY(45px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Close button */
.royal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: white;
  background: transparent;
  border: none;
}

/* Top area */
.rp-top {
  text-align: center;
  margin-bottom: 6px;
}

/* Product Image */
.rp-img {
  width: 120px;
  height: 120px;
  margin: auto;
  display: block;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* Title */
.rp-title {
  text-align: center;
  color: #fff;
  margin: 12px 0;
  font-size: 20px;
  font-weight: 700;
}

/* Form styles */
.rp-form input,
.rp-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: box-shadow .12s, border-color .12s;
}

/* placeholder color */
.rp-form input::placeholder,
.rp-form textarea::placeholder {
  color: rgba(255,255,255,0.65);
}

/* input focus */
.rp-form input:focus,
.rp-form textarea:focus {
  border-color: rgba(187,63,9,0.95);
  box-shadow: 0 6px 24px rgba(187,63,9,0.12);
  background: rgba(255,255,255,0.03);
}

/* buttons */
.rp-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg,#BB3F09 0%, #D15620 100%);
  border: none;
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(187,63,9,0.14);
}

.rp-btn:hover {
  transform: translateY(-2px);
}

/* WhatsApp button */
.rp-wa {
  display: block;
  text-align: center;
  width: 100%;
  padding: 11px;
  margin-top: 10px;
  background: linear-gradient(90deg,#1eb974 0%, #25D366 100%);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}




/* Phone input intl-tel-input styling for flag + dropdown */
.iti { width: 100%; }
.iti input, .iti input[type='tel'] {
    background: rgba(255,255,255,0.12);
    color: #202124;
    border-radius: 8px;
    font-size: 15px;
    border: 1px solid rgba(148,163,184,0.28);
    height: 45px;
    padding-left: 60px !important;
}
.iti .iti__selected-flag {
    background: transparent !important;
    border-right: 0;
}
.iti__country-list {
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.iti input:focus {
    outline: 2px solid #38bdf8;
    background: rgba(255,255,255,0.18);
    color: #222;
}
@media (max-width: 540px) {
    .royal-popup { padding: 10px; max-width: 100vw; }
    .rp-img { width: 65px; height: 65px; }
    .iti input { font-size: 15px; height: 40px; }
    .rp-form input, .rp-form textarea { font-size: 15px; }
}
