/* Category Protection Modal Styles */
.apc-modal-overlay {
  position: fixed;
  top: var(--apc-modal-overlay-top);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
}

.apc-password-form {
  background: #fff;
  padding: 48px 64px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: apc-fadeIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 32px;

  @media (max-width: 768px) {
    padding: 32px;
    max-width: 90%;
    margin: 16px;
  }
}

@keyframes apc-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.apc-password-form h3 {
  margin-bottom: 16px;
  color: #c31330;
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  line-height: 1.2;

  @media (max-width: 768px) {
    font-size: 24px;
  }
}

.apc-password-desc {
  color: var(--clr-primary-blue);
  font-size: var(--fs-base);
  text-align: center;
  margin-bottom: 24px;
  font-weight: var(--fw-normal);
}

.apc-password-form input[type="password"] {
  width: 500px;
  padding: 16px 24px;
  margin: 0 auto 28px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #dddce0;
  display: block;

  @media (max-width: 768px) {
    width: 100%;
    padding: 12px 24px;
  }
}

.apc-password-form input[type="password"]:focus {
  outline: none;
}

.apc-password-form button {
  background: #358f90;
  color: white;
  border: none;
  padding: 10px 36px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 16px;
  width: auto;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 0 auto;
  display: block;
}

.apc-password-form button:hover {
  opacity: 0.8;
}

.apc-link-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
}

.apc-link-button {
  display: inline-block;
}

.apc-link-button a {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-base);
  color: var(--clr-primary-teal);
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apc-link-button a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.apc-link-button-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
}

.apc-link-button a:hover .apc-link-button-icon {
  transform: translateX(3px);
}

.apc-error {
  color: #dc3232;
  margin: 0 0 15px 0;
  padding: 10px 12px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 16px;
  font-size: 16px;
}
