/* Gerber Holdings – application-only styles.
   Load AFTER css/bootstrap.css, css/icomoon.css and css/style.css.
   Header, page title typography/spacing, footer, colors, font and offcanvas
   navigation come from the existing site stylesheet (style.css). */

/* The form pages use the same site-wide page title, without a background photo. */
.gh-page .gh-hero { background-color: #484848; }
.gh-page .gh-main { padding: 7em 0; background: #f7f7f7; clear: both; }
/* The theme floats its footer. Keep it in normal flow after the applications,
   so there is no unpainted space following the final copyright row. */
.gh-page #fh5co-footer { float: none; }

/* Application card and sticky section shortcuts. */
.gh-page .gh-card { background: #fff; border-radius: 3px; box-shadow: 4px 11px 35px -14px rgba(0,0,0,.3); }
.gh-page .gh-form-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; gap: 9px;
  padding: 24px 30px; background: #fff;
  border-bottom: 1px solid #eef0f2; border-radius: 3px 3px 0 0;
}
.gh-page .gh-form-nav a {
  background: #f0f6fc; color: #087bd3; border-radius: 20px;
  padding: 7px 13px; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.gh-page .gh-form-nav a:hover, .gh-page .gh-form-nav a:focus { background: #d9edfc; }
.gh-page .gh-section { scroll-margin-top: calc(var(--gh-nav-height, 80px) + 12px); border-bottom: 1px solid #e9edf0; }
.gh-page .gh-section:last-of-type { border-bottom: 0; }
.gh-page .gh-section-heading { padding: 18px 30px; background: #f4f7f9; border-left: 4px solid #118df0; }
.gh-page .gh-section-heading h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 600; }
.gh-page .gh-section-body { padding: 25px 30px 34px; }
.gh-page .gh-section-description { margin: 0 0 18px; }
.gh-page .gh-subhead { margin: 21px 0 11px; font-size: 15px; font-weight: 600; color: #118df0; }
.gh-page .gh-section-body > .gh-subhead:first-child,
.gh-page .gh-repeat > .gh-subhead:first-child { margin-top: 0; }

/* Responsive fields – site-wide text and color defaults stay inherited. */
.gh-page .gh-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 20px; margin-bottom: 8px; }
.gh-page .gh-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.gh-page .gh-field { display: flex; flex-direction: column; min-width: 0; }
.gh-page .gh-field label { display: block; margin-bottom: 6px; color: #414b54; font-size: 13px; font-weight: 600; line-height: 1.4; }
.gh-page .gh-required { color: #d54646; }
.gh-page .gh-control {
  width: 100%; min-width: 0; max-width: 100%; height: 44px;
  padding: 9px 11px; background: #fff; color: #2d3640;
  border: 1px solid #cbd3dc; border-radius: 4px;
  font-size: 16px; line-height: normal;
  scroll-margin-top: calc(var(--gh-nav-height, 80px) + 34px);
}
.gh-page .gh-control:focus { outline: none; border-color: #118df0; box-shadow: 0 0 0 3px rgba(17,141,240,.15); }
.gh-page .gh-control[aria-invalid="true"] { border-color: #bf3b3b; }
.gh-page .gh-repeat { margin-bottom: 15px; padding: 18px 19px 14px; background: #fbfcfd; border: 1px solid #ebeff2; border-radius: 6px; }
.gh-page .gh-notice { margin: 26px 30px; padding: 16px 19px; background: #eff6fc; border-left: 4px solid #118df0; border-radius: 2px; color: #3f5161; }
.gh-page .gh-notice-alert { background: #fff6f3; border-left-color: #dd7153; }
.gh-page .gh-notice ul { margin: 11px 0 0; padding-left: 22px; }
.gh-page .gh-notice li + li { margin-top: 5px; }
.gh-page .gh-section-body .gh-notice { margin: 23px 0; }
.gh-page .gh-legal { margin: 0 0 16px; color: #555; line-height: 1.75; }
.gh-page .gh-submit-zone { padding-top: 12px; }
.gh-page .gh-captcha-wrap { max-width: 100%; margin-bottom: 18px; }
.gh-page .gh-submit-button { min-height: 47px; padding: 10px 28px; margin-bottom: 7px; border-radius: 24px; }
.gh-page .gh-submit-hint { margin: 0; font-size: 13px; color: #6a747d; }
.gh-page .gh-submit-button:disabled { opacity: .62; cursor: wait; }
.gh-page .gh-submit-error { padding: 10px 13px; margin: 0 0 14px; font-size: 14px; color: #ad3434; background: #fff1f1; border-left: 3px solid #d9534f; }
.gh-page .gh-submit-error[hidden] { display: none !important; }

/* Confirmation popup uses the forms' card style and the site's typography. */
.gh-page.gh-modal-open { overflow: hidden; }
.gh-page .gh-modal[hidden], .gh-page .gh-close-notice[hidden] { display: none !important; }
.gh-page .gh-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; justify-content: center; align-items: center;
  overflow-y: auto; overscroll-behavior: contain; padding: 20px;
  background: rgba(26,33,42,.46);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.gh-page .gh-modal-panel {
  width: min(100%,780px); max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  min-height: 0; margin: auto; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 4px; box-shadow: 0 18px 68px rgba(0,0,0,.22);
}
.gh-page .gh-modal-card { margin: 0; padding: 42px 48px; text-align: center; box-shadow: none; }
.gh-page .gh-modal-card h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.4; }
.gh-page .gh-modal-card h2:focus { outline: none; }
.gh-page .gh-confirm-symbol { width: 54px; height: 54px; line-height: 54px; margin: 0 auto 18px; border-radius: 50%; background: #e1f4e5; color: #32933b; font-size: 30px; font-weight: bold; }
.gh-page .gh-fee-alert { margin: 25px 0; font-size: 15px; }
.gh-page .gh-payment-section { padding: 26px 0 9px; border-top: 1px solid #e8ecef; }
.gh-page .gh-payment-section h3 { margin: 0 0 11px; color: #118df0; font-weight: 600; font-size: 18px; }
.gh-page .gh-payment-section p { margin-bottom: 17px; }
.gh-page .gh-paypal-form { margin: 0 0 9px; }
.gh-page .gh-pay-button { min-height: 45px; padding: 10px 26px; background: #ffc439; color: #142c55; border: 1px solid #e3ad16; border-radius: 30px; font: 700 16px Arial,sans-serif; cursor: pointer; }
.gh-page .gh-pay-button:hover, .gh-page .gh-pay-button:focus { background: #ffcf56; }
.gh-page .gh-modal-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.gh-page .gh-modal-actions button { min-height: 44px; margin: 0; }
.gh-page .gh-close-page-button { padding: 8px 22px; background: #f8fafb; color: #485560; border: 2px solid #d9e1e7; border-radius: 24px; }
.gh-page .gh-close-page-button:hover, .gh-page .gh-close-page-button:focus { background: #edf2f6; color: #1c3346; border-color: #b6c3cd; }
.gh-page .gh-close-notice { margin: 15px 0 0; font-size: 13px; color: #586572; }
@supports not ((backdrop-filter: blur(7px)) or (-webkit-backdrop-filter: blur(7px))) {
  .gh-page.gh-modal-open #fh5co-page { filter: blur(7px); }
}

@media (max-width: 768px) {
  .gh-page .gh-main { padding: 3em 0; }
  .gh-page .gh-form-nav { padding: 17px 16px; gap: 8px; }
  .gh-page .gh-form-nav a { padding: 7px 11px; font-size: 12px; }
  .gh-page .gh-section-heading { padding: 15px 17px; }
  .gh-page .gh-section-heading h2 { font-size: 18px; }
  .gh-page .gh-section-body { padding: 19px 17px 26px; }
  .gh-page .gh-card > form > .gh-notice { margin: 18px 17px; }
  .gh-page .gh-field-grid, .gh-page .gh-cols-3 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .gh-page .gh-repeat { padding: 15px 14px 11px; }
}
@media (max-width: 600px) {
  .gh-page .gh-modal { padding: 12px; }
  .gh-page .gh-modal-panel { max-height: calc(100dvh - 24px); }
  .gh-page .gh-modal-card { padding: 30px 19px; }
  .gh-page .gh-modal-card h2 { font-size: 23px; }
  .gh-page .gh-modal-actions { flex-direction: column; }
  .gh-page .gh-modal-actions button { width: 100%; max-width: 320px; }
  .gh-page .gh-fee-alert { font-size: 14px; }
}
@media (max-width: 520px) {
  .gh-page .gh-field-grid, .gh-page .gh-cols-3 { grid-template-columns: minmax(0,1fr); }
  .gh-page .gh-submit-button { width: 100%; }
}
@media (max-width: 374px) {
  .gh-page .gh-captcha-wrap { height: 66px; }
  .gh-page .gh-captcha-wrap .g-recaptcha { transform: scale(.82); transform-origin: top left; }
}
@media (prefers-reduced-motion: reduce) { .gh-page #fh5co-page { transition: none; } }
@media print {
  .gh-page #fh5co-header, .gh-page .gh-hero, .gh-page #fh5co-footer,
  .gh-page .gh-form-nav, .gh-page .gh-captcha-wrap, .gh-page .gh-submit-button,
  .gh-page .gh-modal, .gh-page .fh5co-nav-toggle, .gh-page #fh5co-offcanvas { display: none !important; }
  .gh-page .gh-main { padding: 0; }
  .gh-page .gh-card, .gh-page .gh-repeat { box-shadow: none; border-color: #ddd; }
  .gh-page .gh-section { break-inside: avoid; }
  .gh-page .gh-section-body { padding: 12px; }
}

/* Proof-of-income upload field: form-specific styles, not shared theme styles. */
.gh-page .gh-upload-input {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  border: 1px solid #cbd3dc; border-radius: 4px;
  background: #fff; padding: 9px 12px; color: #2d3640;
  font: inherit; font-size: 15px;
}
.gh-page .gh-upload-input:focus-visible { outline: 2px solid #118df0; outline-offset: 2px; }
.gh-page .gh-upload-hint { margin: 9px 0 0; font-size: 13px; line-height: 1.5; color: #6a747d; }
.gh-page .gh-upload-feedback { margin: 6px 0 0; font-size: 13px; color: #3f5161; }
