.pc-popup[hidden] {
  display: none;
}

.pc-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.pc-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.pc-popup__dialog {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  max-width: 620px;
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  animation: pcPopupFadeUp 0.25s ease;
}

.pc-popup__dialog--form {
  padding: 28px 24px 24px;
}

.pc-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  color: #222222;
  cursor: pointer;
  z-index: 3;
}

.popup-contact-panel h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  color: #111111;
}

.popup-contact-panel p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #666666;
}

.popup-contact-panel form > div {
  margin-bottom: 14px;
}

.popup-contact-panel input,
.popup-contact-panel select,
.popup-contact-panel textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  color: #111111;
}

.popup-contact-panel input:focus,
.popup-contact-panel select:focus,
.popup-contact-panel textarea:focus,
.pc-popup__close:focus,
.pc-cancel-btn:focus,
.theme-btn:focus {
  outline: 2px solid #0b6bcb;
  outline-offset: 2px;
}

.pc-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pc-form-actions .theme-btn,
.pc-cancel-btn {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.pc-cancel-btn {
  background: #eeeeee;
  color: #222222;
}

body.pc-popup-open {
  overflow: hidden;
}

@keyframes pcPopupFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 575px) {
  .pc-popup__dialog--form {
    padding: 22px 16px 18px;
  }

  .popup-contact-panel h3 {
    font-size: 24px;
  }

  .pc-form-actions {
    flex-direction: column;
  }

  .pc-form-actions .theme-btn,
  .pc-cancel-btn {
    width: 100%;
  }
}