/* Overlay Styling */
.entrance-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  direction: rtl;
}

body.admin-bar .entrance-popup-overlay {
  top: var(--wp-admin--admin-bar--height, 32px);
  height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
  body.admin-bar .entrance-popup-overlay {
    top: 46px;
    height: calc(100% - 46px);
  }
}

.entrance-popup-overlay.is-active {
  opacity: 1;
}

/* Container Styling */
.entrance-popup-container {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.entrance-popup-overlay.is-active .entrance-popup-container {
  transform: scale(1);
}

/* Close Button */
.entrance-popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #888888;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.entrance-popup-close-btn:hover {
  background-color: #f0f0f0;
  color: #333333;
}

/* Content styling */
.entrance-popup-content {
  text-align: center;
}

.entrance-popup-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.entrance-popup-title {
  font-size: 24px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.entrance-popup-text {
  font-size: 16px;
  color: #666666;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Form Styles */
.entrance-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entrance-popup-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  text-align: right;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entrance-popup-field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Submit Button */
.entrance-popup-submit-btn {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.entrance-popup-submit-btn:hover {
  background-color: #2563eb;
}

.entrance-popup-submit-btn:active {
  transform: scale(0.98);
}

.entrance-popup-submit-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Response Message */
.entrance-popup-message {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.entrance-popup-message.success {
  color: #10b981;
  display: block;
}

.entrance-popup-message.error {
  color: #ef4444;
  display: block;
}
