/* GHP Content Restriction Pro - Frontend Styles */

.ghp-crp-content-preview {
  position: relative;
  margin-bottom: 20px;
}

.ghp-crp-preview-content {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
}

.ghp-crp-preview-fade {
  position: relative;
  max-height: 200px; /* or however tall your preview is */
  overflow: hidden;
}

.ghp-crp-preview-fade::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px; /* height of the fade */
  background: linear-gradient(to top, #fff, transparent);
  pointer-events: none; /* so it doesn’t block clicks */
}

.ghp-crp-restriction-notice {
  background: linear-gradient(135deg, #d4772b 0%, #ef755d 100%);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 124, 186, 0.1);
  margin-bottom: 10px;
}

.ghp-crp-restriction-notice h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ghp-crp-restriction-notice p {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.ghp-crp-action-buttons {
  margin-top: 20px;
}

.ghp-crp-btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 0 8px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 120px;
}

.ghp-crp-btn-primary,
.ghp-crp-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.ghp-crp-btn-primary:hover,
.ghp-crp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Form Styles */
.ghp-crp-form-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}
.ghp-crp-corner-decoration-1, .ghp-crp-corner-decoration-2{
  position: absolute;
  left: 0;
  width: 200px;
  height: 200px;
  z-index: 0;
}
.ghp-crp-corner-decoration-1{
  bottom: 0;
}
.ghp-crp-corner-decoration-2{
  rotate: 90deg;
  top: 0;
}
.ghp-crp-illustration {
  flex: 1;
}
.ghp-crp-illustration img {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: auto;
}
.ghp-crp-form {
  flex: 1;
  padding: 30px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  z-index: 10;
}

.ghp-crp-form h3 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 34px;
  font-weight: 600;
}

.ghp-crp-form-group {
  margin-bottom: 20px;
}

.ghp-crp-form label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: 500;
}

.ghp-crp-form input[type="text"],
.ghp-crp-form input[type="email"],
.ghp-crp-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e1e1;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.ghp-crp-form input[type="text"]:focus,
.ghp-crp-form input[type="email"]:focus,
.ghp-crp-form input[type="password"]:focus {
  border-color: #d4772b;
  outline: none;
  box-shadow: 0 0 5px #d4772b;
}

.ghp-crp-checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
}

.ghp-crp-checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  margin-bottom: 0;
}

.ghp-crp-form button {
  width: 100%;
  padding: 12px;
  background: #d4772b;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ghp-crp-form button:hover {
  background: #d4772b;
}

.ghp-crp-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.ghp-crp-form-links {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e1e1;
}

.ghp-crp-form-links p {
  margin: 8px 0;
}

.ghp-crp-form-links a {
  color: #d4772b;
  text-decoration: none;
  font-weight: 500;
}

.ghp-crp-form-links a:hover {
  text-decoration: underline;
}

/* Message Styles */
.ghp-crp-message {
  margin-block: 15px;
  padding: 10px;
  border-radius: 5px;
  display: none;
}

.ghp-crp-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.ghp-crp-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.ghp-crp-message.show {
  display: block;
}

/* Loading State */
.ghp-crp-form.loading button {
  position: relative;
}

.ghp-crp-form.loading button:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ghp-spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes ghp-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Container fixed to top-right */
#ghp-crp-logout-container {
  background-color: #f97316;
  text-align: right;
  padding: 5px 16px;
  position: relative;
  z-index: 100;
}

/* Button styling */
#ghp-crp-logout-container .ghp-crp-logout-btn {
  color: #ffffff;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ghp-crp-form-container {
    padding: 10px;
  }

  .ghp-crp-form {
    padding: 20px;
  }

  .ghp-crp-restriction-notice {
    padding: 20px;
    margin: 10px;
  }

  .ghp-crp-btn {
    display: block;
    margin: 8px 0;
    width: 100%;
  }
}
@media (max-width: 991px) {
  .ghp-crp-illustration {
    display: none;
  }
}
/* Print Styles */
@media print {
  .ghp-crp-restriction-notice,
  .ghp-crp-form-container {
    display: none;
  }
}
