/**
 * The Giovision Giveback — blue + white theme, open-amount donation.
 */

body.gv-giveback-page .breadcrumb-title-wrapper h1.heading-title,
body.gv-giveback-page .breadcrumb-title-wrapper .page-title,
body.gv-giveback-page .breadcrumb-title-wrapper h1,
body.gv-giveback-page #main > .page .entry-title,
body.gv-giveback-page .page-container .entry-header .entry-title {
  display: none !important;
}

body.gv-giveback-page .breadcrumb-title-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

.gv-giveback {
  --gv-gb-ink: var(--gv-color-text, #1a1a1a);
  --gv-gb-muted: var(--gv-color-text-secondary, #4a5568);
  --gv-gb-blue: var(--gv-color-blue, #1f2a7c);
  --gv-gb-border: var(--gv-color-border, rgba(31, 42, 124, 0.16));
  --gv-gb-border-strong: var(--gv-color-border-strong, rgba(31, 42, 124, 0.3));
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--gv-space-4, 16px) var(--gv-gutter, 16px) var(--gv-section-y, 48px);
  color: var(--gv-gb-ink);
}

.gv-giveback__hero {
  position: relative;
  margin-bottom: clamp(20px, 2.5vw, 28px);
  border-radius: var(--gv-radius-md, 12px);
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(31, 42, 124, 0.08), transparent 55%),
    linear-gradient(135deg, #eef1fb 0%, #ffffff 48%, #f5f7fb 100%);
  border: 1px solid var(--gv-gb-border);
}

.gv-giveback__hero-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 3.5vw, 40px);
}

.gv-giveback__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gv-giveback__logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

.gv-giveback__hero-copy {
  min-width: 0;
}

.gv-giveback__eyebrow {
  display: none;
}

.gv-giveback__title {
  margin: 0 0 var(--gv-space-4, 16px);
  max-width: 22ch;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--gv-gb-blue);
  letter-spacing: -0.01em;
}

.gv-giveback__lede {
  margin: 0;
  max-width: 48ch;
  font-size: var(--gv-text-md, 1rem);
  line-height: var(--gv-leading-relaxed, 1.65);
  color: var(--gv-gb-muted);
}

.gv-giveback__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: start;
}

.gv-giveback__copy,
.gv-giveback__donate-inner {
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: var(--gv-radius-md, 12px);
  background: #fff;
  border: 1px solid var(--gv-gb-border);
}

.gv-giveback__copy {
  font-size: var(--gv-text-md, 1rem);
  line-height: var(--gv-leading-relaxed, 1.65);
  color: var(--gv-gb-muted);
}

.gv-giveback__copy p {
  margin: 0 0 var(--gv-space-4, 16px);
}

.gv-giveback__copy p:last-child {
  margin-bottom: 0;
}

.gv-giveback__copy a {
  color: var(--gv-gb-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gv-giveback__h2 {
  margin: var(--gv-space-5, 24px) 0 var(--gv-space-3, 12px);
  font-size: var(--gv-text-lg, 1.25rem);
  line-height: var(--gv-leading-tight, 1.2);
  font-weight: 700;
  color: var(--gv-gb-blue);
}

.gv-giveback__copy .gv-giveback__h2:first-child {
  margin-top: 0;
}

.gv-giveback__donate-inner {
  box-shadow: 0 8px 24px rgba(31, 42, 124, 0.06);
  border-color: var(--gv-gb-border-strong);
}

.gv-giveback__donate-kicker {
  margin: 0 0 8px;
  font-size: var(--gv-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--gv-gb-muted);
}

.gv-giveback__donate-note {
  margin: 0 0 20px;
  font-size: var(--gv-text-sm, 0.875rem);
  line-height: var(--gv-leading-normal, 1.5);
  color: var(--gv-gb-muted);
}

.gv-giveback__form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.gv-giveback__qty-label {
  font-size: var(--gv-text-xs, 0.8rem);
  font-weight: 600;
  color: var(--gv-gb-ink);
}

/* One control — kill theme nested input borders/shadows */
.gv-giveback__amount-row {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--gv-gb-border-strong) !important;
  border-radius: var(--gv-radius-sm, 8px) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.gv-giveback__amount-row:focus-within {
  border-color: var(--gv-gb-blue) !important;
  box-shadow: 0 0 0 3px rgba(31, 42, 124, 0.14) !important;
}

.gv-giveback__currency {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 2px 0 14px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--gv-gb-blue) !important;
  user-select: none;
}

.gv-giveback .gv-giveback__amount,
.gv-giveback__form input.gv-giveback__amount[type='number'] {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 0 14px 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 48px !important;
  color: var(--gv-gb-blue) !important;
  -webkit-appearance: none !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.gv-giveback .gv-giveback__amount:focus,
.gv-giveback .gv-giveback__amount:focus-visible,
.gv-giveback__form input.gv-giveback__amount[type='number']:focus {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.gv-giveback__amount::-webkit-outer-spin-button,
.gv-giveback__amount::-webkit-inner-spin-button {
  margin: 0 4px 0 0;
  height: 32px;
}

.gv-giveback__cta.button,
.gv-giveback__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  padding: 12px 18px;
  border-radius: var(--gv-radius-sm, 8px);
  border: 1px solid var(--gv-gb-blue) !important;
  background: var(--gv-gb-blue) !important;
  color: #fff !important;
  font-size: var(--gv-text-md, 1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.gv-giveback__cta.button:hover,
.gv-giveback__cta.button:focus-visible,
.gv-giveback__cta:hover,
.gv-giveback__cta:focus-visible {
  background: #fff !important;
  color: var(--gv-gb-blue) !important;
  border-color: var(--gv-gb-blue) !important;
  transform: translateY(-1px);
}

.gv-giveback__error {
  padding: var(--gv-space-5, 24px);
  color: var(--gv-color-error, #b91c1c);
}

@media (max-width: 900px) {
  .gv-giveback__hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gv-giveback__title,
  .gv-giveback__lede {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .gv-giveback__body {
    grid-template-columns: 1fr;
  }

  .gv-giveback__donate {
    order: -1;
  }
}

@media (max-width: 560px) {
  .gv-giveback__hero-inner {
    padding: 22px 18px 26px;
  }

  .gv-giveback__logo {
    max-height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-giveback__cta.button:hover,
  .gv-giveback__cta:hover {
    transform: none;
  }
}
