/* Reusable partner form. Loaded only on pages with hasPartnerForm. */

.partner-form {
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.form-heading {
  margin-bottom: 20px;
}
.form-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.form-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  gap: 15px;
}
.form-field {
  display: grid;
  gap: 7px;
}
.form-field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdced6;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #71858f;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #718c98;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: #007987;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25);
}
.form-span {
  grid-column: 1/-1;
}
.form-submit {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  padding: 13px 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #041117;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(0, 229, 255, 0.18);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  cursor: pointer;
  transition: 0.2s ease;
}
.form-submit:hover,
.form-submit:focus-visible {
  color: #fff;
  background: #006f7c;
  border-color: #006f7c;
}
.form-submit:focus-visible {
  outline: 3px solid #007987;
  outline-offset: 3px;
}
/* Compact Managed widget fits narrow phones; reserve height before it loads. */
.partner-turnstile {
  min-height: 140px;
  margin-bottom: 15px;
}
.form-note {
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
.form-status {
  display: none;
  margin: 0 0 18px !important;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.45 !important;
}
.form-status.success {
  display: block;
  color: #095b3c !important;
  background: #e7f8ef;
  border: 1px solid #8ddbb6;
}
.form-status.error {
  display: block;
  color: #8a2530 !important;
  background: #fff0f1;
  border: 1px solid #efb6bd;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
@media (max-width: 719px) {
  .partner-form {
    text-align: left;
  }
}
@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partner-form {
    padding: 30px;
  }
}
