/* Federation custom forms: popup modal + success message. */

.fed-form-success {
  background: #f5f4f2;
  border-left: 3px solid #ea3323;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 12px 0;
  font-family: Inter, system-ui, sans-serif;
  color: #1d2225;
  line-height: 1.5;
}
.fed-form-success h2 {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  margin: 0 0 6px;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.fed-form-success p { margin: 0; }

.fed-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.fed-modal.open { display: block; }
.fed-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 12, 12, 0.6);
  animation: fedFade 0.25s ease;
}
.fed-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 34px 32px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  font-family: Inter, system-ui, sans-serif;
  color: #1d2225;
  animation: fedPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 86vh;
  overflow: auto;
}
.fed-modal-card h2 {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-size: 1.5rem;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.fed-modal-card > p { color: #6a6a6a; margin: 0 0 20px; font-size: 0.95rem; line-height: 1.5; }
.fed-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 28px; line-height: 1;
  color: #9a9a9a; cursor: pointer;
}
.fed-modal-close:hover { color: #ea3323; }
.fed-modal-form { display: grid; gap: 14px; }
.fed-modal-form label {
  display: grid; gap: 5px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #585858;
}
.fed-modal-form input, .fed-modal-form textarea {
  font: inherit; font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid #dcdcdc; border-radius: 8px;
  color: #1d2225; background: #fff; width: 100%; box-sizing: border-box;
}
.fed-modal-form input:focus, .fed-modal-form textarea:focus {
  outline: 2px solid rgba(234, 51, 35, 0.3); outline-offset: 0; border-color: #ea3323;
}
.fed-modal-submit {
  background: #ea3323; color: #fff; border: none; border-radius: 8px;
  padding: 13px; font: inherit; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
  transition: background 0.15s ease;
}
.fed-modal-submit:hover { background: #c92a1c; }
.fed-modal-submit:disabled { opacity: 0.6; cursor: default; }

@keyframes fedFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fedPop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) { .fed-modal-card { margin-top: 4vh; padding: 28px 22px 24px; } }
