@font-face {
  font-family: "HurmeGeometricSans3";
  src: url("../fonts/HurmeGeometricSans3/HurmeGeometricSans3-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HurmeGeometricSans3";
  src: url("../fonts/HurmeGeometricSans3/HurmeGeometricSans3-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HurmeGeometricSans3";
  src: url("../fonts/HurmeGeometricSans3/HurmeGeometricSans3-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HurmeGeometricSans3";
  src: url("../fonts/HurmeGeometricSans3/HurmeGeometricSans3-Black.woff2")
    format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
#publishers-get-in-touch {
  font-family: "HurmeGeometricSans3", sans-serif !important;
  font-weight: 400;
  padding-top: 80px;

  background-image: url("../images/git-bcg.svg");
  background-repeat: no-repeat;
  background-position: center top; /* or just center if you prefer */
  background-size: cover;
}

#publishers-get-in-touch section {
  height: auto;
}

/* Intro section wrapper */
#git-intro-section {
  width: 100%;
  padding: 70px 30px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Background here is the page's main gradient; keep transparent so it sits on top */
  background: transparent;
  box-sizing: border-box;
}

/* Inner container to limit width and center content */
#git-intro-section .git-intro-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* Title: GET IN TOUCH */
#git-intro-section .git-intro-title {
  margin: 0 0 40px;
  font-family: "HurmeGeometricSans3", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  /* Black */
  font-size: 58px;
  line-height: 58px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000000;
}

/* Subtitle paragraph */
#git-intro-section .git-intro-subtitle {
  margin: 0;
  font-family: "HurmeGeometricSans3", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 26px;
  color: #000000;
}

/* Tablet */
@media (max-width: 900px) {
  #git-intro-section {
    padding: 70px 24px 32px;
  }

  #git-intro-section .git-intro-title {
    font-size: 44px;
    line-height: 48px;
    margin-bottom: 32px;
  }

  #git-intro-section .git-intro-subtitle {
    font-size: 18px;
    max-width: 308px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #git-intro-section {
    padding: 60px 20px 22px;
  }

  #git-intro-section .git-intro-title {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: 0.5px;
  }
}

/* ===========================
   FORM CARD LAYOUT
   =========================== */

#git-form-section {
  width: 100%;
  margin: 40px 0 0;
  padding: 0 30px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

#git-contact-form {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 17px;
  padding: 40px 40px 50px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* ===========================
     FORM FIELDS
     =========================== */

.form-field {
  margin-bottom: 31px;
}

.form-field label {
  display: inline-flex;
  align-items: center;

  font-family: "HurmeGeometricSans3", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 19.6px;
  color: #000000;
  margin-bottom: 6px;
}

.form-field label[for="PromotesFinancialInsuranceHomeServices"] {
  display: inline-block;
}

.form-field label[for="verticals"] {
  font-weight: 400;
}

.form-field .required {
  color: #ff4a64;
  font-size: 13px;
  margin-left: 3px;
}

/* Text inputs, selects, textareas */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 40px;
  height: 47.8px;
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  background: #fdfdfd;
  font-family: "HurmeGeometricSans3", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #000000;
  box-sizing: border-box;
  outline: none;
}

/* Select look to match Figma */
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%),
    linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #8b8d94;
  font-size: 18px;
}

/* Textareas (Verification URLs, Anything else) */
#verification-urls,
#additional-notes {
  height: auto;
  min-height: 96px;
  resize: vertical;
}

/* Verticals campaigns – single line but textarea‑like */
#verticals {
  height: auto;
  min-height: 40px;
}

/* Character counter under \"Anything Else\" */
.form-field .char-count {
  display: block;
  margin-top: 6px;
  font-family: "HurmeGeometricSans3", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #767676;
}

/* ===========================
     RADIO GROUP
     =========================== */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: "HurmeGeometricSans3", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #8b8d94;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option span {
  display: inline-flex;
  align-items: center;
  color: #8b8d94;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
}

.radio-option span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #c5c5c5;
  margin-right: 9px;
  box-sizing: border-box;
  position: relative;
}

/* inner black circle when checked */
.radio-option input[type="radio"]:checked + span::before {
  border-color: #000; /* optional: darker outline */
  background: radial-gradient(circle, #000 0, #000 50%, transparent 51%);
}

/* ===========================
     SUBMIT BUTTON
     =========================== */

.submit-field {
  margin-top: 35px;
  margin-bottom: 0;
}

#git-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 36px 17px 24px;
  border-radius: 4px;
  border: none;
  background: #ff4a64;
  /* Pink/Pink-4 */
  color: #ffffff;
  font-family: "HurmeGeometricSans3", sans-serif;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

#git-submit-btn::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 48%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url(../images/arrow-white.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#git-submit-btn:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

#git-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

#git-submit-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

/* ===========================
     LOADING MASK (SUBMITTING)
     =========================== */

.loading-overlay {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0%;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none; /* JS toggles to flex */
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  z-index: 2;
  align-items: end;
}

.loading-overlay-inner {
  width: 100%;
  text-align: center;
  background: #fff;
}

.loading-spinner {
  margin: 20px auto 54px 0;
  width: 28px;
  height: 28px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #7b7b7b;
  border-radius: 50%;
  animation: git-spinner 1s linear infinite;
  display: none; /* Hidden by default, shown via JS */
}

@keyframes git-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===========================
     SUCCESS / ERROR MASK STATES
     =========================== */

.form-message {
  max-width: 620px;
  width: 100%;
  margin: 0 auto 24px;
  padding: 28px 0 20px;
  border-radius: 17px;
  box-sizing: border-box;
  font-family: "HurmeGeometricSans3", sans-serif;
  font-size: 14px;
  line-height: 19.6px;
  display: none;
  /* JS toggles display */
}

/* Success style (matches white card) */
.form-message.success-message {
  background: rgba(255, 255, 255, 0.8);
  color: #000000;
  text-align: center;
  font-weight: 600;
}

/* Error style with icon/message stacked, as in Figma */
.form-message.error-message {
  background: rgba(255, 255, 255, 0.8);
  color: #000000;
  display: none;
}

.form-message.error-message p {
  margin: 0;
}

.form-message.success-message,
.form-message.error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.status-message-content {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 16px;
}

.status-message-content .status-icon {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
}

.status-message-content > div {
  text-align: left;
}

.status-message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 19.6px;
}

/* ===========================
     RESPONSIVE BREAKPOINTS
     =========================== */

/* Tablet */
@media (max-width: 900px) {
  #git-form-section {
    padding: 0 24px 30px;
  }

  #git-contact-form {
    padding: 34px 24px 40px;
    max-width: 560px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #git-form-section {
    padding: 0 20px 30px;
  }

  #git-contact-form {
    padding: 30px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  }

  .radio-option {
    font-size: 16px;
  }

  .form-message {
    padding: 20px 0;
  }
}

@media (max-width: 600px) {
  .form-field label {
    max-width: 290px;
    white-space: normal;
  }
  .form-field .required {
    white-space: nowrap; /* * never wraps to its own line */
  }
}
@media (max-width: 420px) {
  #git-form-section {
    padding: 0 4px 30px;
  }
}
/* ===========================
   PARTNER LOGOS SECTION (updated)
   =========================== */

#git-partners-section {
  width: 100%;
  padding: 40px 30px 120px;
  box-sizing: border-box;
  text-align: center;
}

#git-partners-section .git-partners-title {
  margin: 0 0 32px;
  font-family: "HurmeGeometricSans3", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000000;
}

/* Desktop: 5 columns, aligned to the form width */
.partners-logos-container {
  max-width: 620px; /* match git-contact-form width */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px; /* row / column gap tuned for 5 cols within 620px */
  align-items: center;
  justify-items: center;
}

.partner-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.partner-logo img {
  max-width: 110px;
  max-height: 32px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Tablet: 3 columns */
@media (max-width: 900px) {
  #git-partners-section {
    padding: 32px 24px 90px;
  }

  .partners-logos-container {
    max-width: 560px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 18px;
  }

  .partner-logo img {
    max-width: 105px;
    max-height: 30px;
  }
  .partners-logos-container .partner-logo:nth-child(8) {
    display: none;
  }
}

/* Mobile: 3 columns */
@media (max-width: 600px) {
  #git-partners-section {
    padding: 28px 20px 70px;
  }

  .partners-logos-container {
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .partner-logo img {
    max-width: 95px;
    max-height: 28px;
  }
}
