/* Thank-you popup overlays for website forms */

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 11, 69, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(8, 16, 31, 0.25);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-card--wide {
  max-width: 560px;
  text-align: left;
}

.popup-overlay.open .popup-card {
  transform: scale(1) translateY(0);
}

.popup-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #d4af37;
}

.popup-card__title {
  font-family: "GT Ultra Median", Georgia, serif;
  color: #001f59;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.popup-card__text {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.popup-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 28px;
  background: #d4af37;
  color: #0b0b45;
  font-family: "GT Ultra Median", Georgia, serif;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-card__btn:hover {
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.form-error-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 360px;
}

.form-error-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.btn-loading {
  opacity: 0.75;
  pointer-events: none;
}

.btn-loading .spinner-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(11, 11, 69, 0.25);
  border-top-color: #0b0b45;
  border-radius: 50%;
  animation: popup-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes popup-spin {
  to { transform: rotate(360deg); }
}

.popup-field-error {
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #dc2626;
}

.popup-field-error.hidden {
  display: none;
}

.popup-input-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.popup-form-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
}

.popup-form-error.hidden {
  display: none;
}
