/* GoodtoGive Church Accounts Health Check
   Scoped to .gtg-hc so WordPress themes cannot restyle the quiz. */

.gtg-hc {
  --gtg-green: #97c24e;
  --gtg-green-dark: #7aa33c;
  --gtg-green-deep: #5f862c;
  --gtg-gold: #f0c846;
  --gtg-gold-dark: #d4ad2e;
  --gtg-ink: #1e2718;
  --gtg-muted: #5d6756;
  --gtg-line: #e4ead8;
  --gtg-bg: #f5f8ee;
  --gtg-card: #ffffff;
  --gtg-red: #c45c4a;
  --gtg-amber: #d4921a;
  --gtg-shadow: 0 18px 50px rgba(30, 39, 24, 0.08);
  --gtg-radius: 22px;
  --gtg-font: "Manrope", "Segoe UI", sans-serif;
  --gtg-display: "Fraunces", Georgia, serif;

  box-sizing: border-box;
  font-family: var(--gtg-font);
  color: var(--gtg-ink);
  line-height: 1.55;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

.gtg-hc *,
.gtg-hc *::before,
.gtg-hc *::after {
  box-sizing: border-box;
}

.gtg-hc button,
.gtg-hc input,
.gtg-hc textarea,
.gtg-hc select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.gtg-hc a {
  color: var(--gtg-green-deep);
}

.gtg-hc-shell {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(151, 194, 78, 0.18), transparent 50%),
    radial-gradient(900px 360px at 110% 0%, rgba(240, 200, 70, 0.22), transparent 46%),
    var(--gtg-bg);
  border: 1px solid rgba(151, 194, 78, 0.18);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--gtg-shadow);
}

.gtg-hc-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.gtg-hc-logo {
  height: 54px;
  width: auto;
  max-width: min(220px, 80%);
  object-fit: contain;
  display: block;
}

.gtg-hc-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(151, 194, 78, 0.14);
  color: var(--gtg-green-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 14px;
  max-width: 100%;
  line-height: 1.3;
  text-align: center;
}

.gtg-hc-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gtg-green);
}

.gtg-hc h1,
.gtg-hc h2,
.gtg-hc h3 {
  font-family: var(--gtg-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--gtg-ink);
  margin: 0 0 12px;
  line-height: 1.2;
}

.gtg-hc h1 {
  font-size: clamp(28px, 5vw, 42px);
  text-align: center;
}

.gtg-hc h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.gtg-hc p {
  margin: 0 0 14px;
  color: var(--gtg-muted);
}

.gtg-hc-loading-shell {
  text-align: center;
  min-height: 180px;
}

.gtg-hc-lead {
  font-size: 17px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.gtg-hc-note {
  background: #fff;
  border: 1px solid var(--gtg-line);
  border-left: 4px solid var(--gtg-gold);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 22px 0 26px;
  text-align: left;
  font-size: 14.5px;
}

.gtg-hc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 28px;
}

.gtg-hc-chip {
  background: #fff;
  border: 1px solid var(--gtg-line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gtg-ink);
}

.gtg-hc-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--gtg-green);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(151, 194, 78, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: normal;
  line-height: 1.3;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(151, 194, 78, 0.22);
}

.gtg-hc-btn:hover,
.gtg-hc-btn:focus-visible {
  background: var(--gtg-green-dark);
}

@media (hover: hover) {
  .gtg-hc-btn:hover,
  .gtg-hc-btn:focus-visible {
    transform: translateY(-1px);
  }
}

.gtg-hc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gtg-hc-btn-ghost {
  background: transparent;
  color: var(--gtg-muted);
  box-shadow: none;
  border: 1px solid var(--gtg-line);
}

.gtg-hc-btn-ghost:hover,
.gtg-hc-btn-ghost:focus-visible {
  background: #fff;
  color: var(--gtg-ink);
}

.gtg-hc-btn-gold {
  background: var(--gtg-gold);
  color: var(--gtg-ink);
  box-shadow: 0 10px 22px rgba(240, 200, 70, 0.32);
}

.gtg-hc-btn-gold:hover,
.gtg-hc-btn-gold:focus-visible {
  background: var(--gtg-gold-dark);
}

.gtg-hc-progress {
  margin-bottom: 22px;
}

.gtg-hc-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.gtg-hc-progress-top span:last-child {
  color: var(--gtg-muted);
  font-weight: 600;
}

.gtg-hc-progress-bar {
  height: 8px;
  background: #e7eedc;
  border-radius: 999px;
  overflow: hidden;
}

.gtg-hc-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gtg-green), var(--gtg-gold));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.gtg-hc-section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gtg-green-deep);
  margin-bottom: 8px;
}

.gtg-hc-q {
  background: #fff;
  border-radius: var(--gtg-radius);
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--gtg-line);
  box-shadow: 0 10px 30px rgba(30, 39, 24, 0.05);
}

.gtg-hc-q h2 {
  font-size: clamp(20px, 3.4vw, 26px);
  margin-bottom: 8px;
}

.gtg-hc-q-text {
  font-size: clamp(17px, 2.6vw, 20px);
  color: var(--gtg-ink);
  font-weight: 650;
  margin: 10px 0 22px;
  line-height: 1.45;
}

.gtg-hc-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.gtg-hc-rate {
  appearance: none;
  border: 1.5px solid var(--gtg-line);
  background: #fbfcf7;
  border-radius: 16px;
  min-height: 52px;
  min-width: 0;
  padding: 10px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(151, 194, 78, 0.22);
}

.gtg-hc-rate strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.gtg-hc-rate span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--gtg-muted);
}

.gtg-hc-rate:hover,
.gtg-hc-rate:focus-visible {
  border-color: var(--gtg-green);
}

@media (hover: hover) {
  .gtg-hc-rate:hover,
  .gtg-hc-rate:focus-visible {
    transform: translateY(-2px);
  }
}

.gtg-hc-rate[data-value="1"].is-selected {
  background: #c45c4a;
  border-color: #c45c4a;
  color: #fff;
}
.gtg-hc-rate[data-value="2"].is-selected {
  background: #e0894a;
  border-color: #e0894a;
  color: #fff;
}
.gtg-hc-rate[data-value="3"].is-selected {
  background: var(--gtg-gold);
  border-color: var(--gtg-gold);
  color: var(--gtg-ink);
}
.gtg-hc-rate[data-value="4"].is-selected {
  background: #b5cc5c;
  border-color: #b5cc5c;
  color: var(--gtg-ink);
}
.gtg-hc-rate[data-value="5"].is-selected {
  background: var(--gtg-green);
  border-color: var(--gtg-green);
  color: #fff;
}

.gtg-hc-rate.is-selected span {
  color: inherit;
  opacity: 0.92;
}

.gtg-hc-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.gtg-hc-scale-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--gtg-muted);
  margin-top: 10px;
  font-weight: 600;
}

.gtg-hc-scale-legend span {
  flex: 1;
  min-width: 0;
}

.gtg-hc-scale-legend span:first-child {
  text-align: left;
}

.gtg-hc-scale-legend span:nth-child(2) {
  text-align: center;
}

.gtg-hc-scale-legend span:last-child {
  text-align: right;
}

.gtg-hc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gtg-hc-result h2 {
  text-align: center;
  width: 100%;
}

.gtg-hc-result .gtg-hc-kicker {
  margin-left: auto;
  margin-right: auto;
}

.gtg-hc-score-ring {
  width: 168px;
  height: 168px;
  margin: 8px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), #e7eedc 0);
  position: relative;
}

.gtg-hc-score-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  background: #fff;
  border-radius: 50%;
}

.gtg-hc-score-inner {
  position: relative;
  z-index: 1;
}

.gtg-hc-score-num {
  font-family: var(--gtg-display);
  font-size: 42px;
  font-weight: 680;
  line-height: 1;
}

.gtg-hc-score-den {
  font-size: 13px;
  font-weight: 700;
  color: var(--gtg-muted);
}

.gtg-hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

.gtg-hc-badge.red { background: rgba(196, 92, 74, 0.14); color: var(--gtg-red); }
.gtg-hc-badge.amber { background: rgba(240, 200, 70, 0.28); color: #8a6410; }
.gtg-hc-badge.green { background: rgba(151, 194, 78, 0.18); color: var(--gtg-green-deep); }

.gtg-hc-result-copy {
  max-width: 540px;
  margin: 0 auto 24px;
  font-size: 16px;
}

.gtg-hc-breakdown {
  display: grid;
  gap: 10px;
  text-align: center;
  width: 100%;
  margin: 0 0 28px;
}

.gtg-hc-row {
  background: #fff;
  border: 1px solid var(--gtg-line);
  border-radius: 14px;
  padding: 14px 16px;
  width: 100%;
}

.gtg-hc-row-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.gtg-hc-row-score {
  font-family: var(--gtg-display);
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.gtg-hc-mini {
  height: 7px;
  background: #e7eedc;
  border-radius: 999px;
  overflow: hidden;
}

.gtg-hc-mini span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.gtg-hc-calendar-wrap {
  background: #fff;
  border: 1px solid var(--gtg-line);
  border-radius: var(--gtg-radius);
  padding: 18px;
}

.gtg-hc-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gtg-hc-cal-head h3 {
  margin: 0;
  font-size: 20px;
  min-width: 0;
  overflow-wrap: break-word;
}

.gtg-hc-icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--gtg-line);
  background: #fbfcf7;
  cursor: pointer;
  font-size: 18px;
  touch-action: manipulation;
}

.gtg-hc-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gtg-hc-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gtg-muted);
  text-align: center;
}

.gtg-hc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.gtg-hc-day {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 44px;
  min-width: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(151, 194, 78, 0.22);
}

.gtg-hc-day.is-muted {
  color: #c3cbb8;
  cursor: default;
}

.gtg-hc-day.is-available {
  background: rgba(151, 194, 78, 0.12);
}

.gtg-hc-day.is-available:hover {
  background: rgba(151, 194, 78, 0.22);
}

.gtg-hc-day.is-selected {
  background: var(--gtg-green);
  color: #fff;
}

.gtg-hc-tz {
  font-size: 12px;
  color: var(--gtg-muted);
  margin: 10px 0 0;
  text-align: center;
}

.gtg-hc-slots {
  margin-top: 18px;
}

.gtg-hc-slots h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.gtg-hc-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.gtg-hc-slot {
  appearance: none;
  border: 1px solid var(--gtg-line);
  background: #fbfcf7;
  border-radius: 12px;
  padding: 10px 8px;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(151, 194, 78, 0.22);
}

.gtg-hc-slot:hover {
  border-color: var(--gtg-green);
}

.gtg-hc-slot.is-selected {
  background: var(--gtg-green);
  border-color: var(--gtg-green);
  color: #fff;
}

.gtg-hc-slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.gtg-hc-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.gtg-hc-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.gtg-hc-optional {
  font-weight: 500;
  color: #6b7464;
}

.gtg-hc-field input,
.gtg-hc-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1.5px solid var(--gtg-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  outline: none;
  font-size: 16px;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.gtg-hc-field textarea {
  min-height: 96px;
  resize: vertical;
}

.gtg-hc-field input:focus,
.gtg-hc-field textarea:focus {
  border-color: var(--gtg-green);
  box-shadow: 0 0 0 4px rgba(151, 194, 78, 0.16);
}

.gtg-hc-summary {
  background: rgba(151, 194, 78, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
}

.gtg-hc-error {
  color: var(--gtg-red);
  font-size: 14px;
  font-weight: 700;
}

.gtg-hc-gdpr {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gtg-muted);
  margin: 4px 0 0;
  text-align: left;
}

.gtg-hc-gdpr a {
  color: var(--gtg-green-deep);
  text-decoration: underline;
}

.gtg-hc-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(151, 194, 78, 0.16);
  display: grid;
  place-items: center;
  font-size: 34px;
}

.gtg-hc-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.gtg-hc-embed {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  min-height: 680px;
  border: 1px solid var(--gtg-line);
}

.gtg-hc-embed iframe {
  width: 100%;
  min-height: 680px;
  border: 0;
}

@media (max-width: 560px) {
  .gtg-hc {
    padding: 4px 0 12px;
  }

  .gtg-hc-shell {
    padding: 16px 12px 22px;
    border-radius: 16px;
  }

  .gtg-hc-logo {
    height: 44px;
    max-height: 44px;
  }

  .gtg-hc h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .gtg-hc h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .gtg-hc-progress-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .gtg-hc-q {
    padding: 16px 12px;
  }

  .gtg-hc-rate span {
    display: none;
  }

  .gtg-hc-rate {
    min-height: 52px;
    padding: 8px 2px;
  }

  .gtg-hc-scale {
    gap: 6px;
  }

  .gtg-hc-scale-legend {
    font-size: 11px;
  }

  .gtg-hc-nav {
    flex-direction: column-reverse;
  }

  .gtg-hc-btn {
    width: 100%;
  }

  .gtg-hc-calendar-wrap {
    padding: 12px 8px;
  }

  .gtg-hc-cal-head h3 {
    font-size: 16px;
    text-align: center;
    padding: 0 4px;
  }

  .gtg-hc-dow {
    font-size: 10px;
    letter-spacing: 0;
  }

  .gtg-hc-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gtg-hc-score-ring {
    width: 148px;
    height: 148px;
  }

  .gtg-hc-embed,
  .gtg-hc-embed iframe {
    min-height: 520px;
  }

  .gtg-hc-row {
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .gtg-hc-scale {
    gap: 4px;
  }

  .gtg-hc-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gtg-hc-scale-legend {
    font-size: 10px;
  }
}

/* WordPress theme overrides */
.entry-content .gtg-hc h1,
.entry-content .gtg-hc h2,
.entry-content .gtg-hc h3,
.gtg-hc h1,
.gtg-hc h2,
.gtg-hc h3 {
  margin-top: 0;
}

.gtg-hc button.gtg-hc-btn {
  background: var(--gtg-green) !important;
  color: #fff !important;
  border: 0 !important;
  text-decoration: none !important;
}

.gtg-hc button.gtg-hc-btn-ghost {
  background: transparent !important;
  color: var(--gtg-muted) !important;
  border: 1px solid var(--gtg-line) !important;
}

.gtg-hc button.gtg-hc-btn-gold {
  background: var(--gtg-gold) !important;
  color: var(--gtg-ink) !important;
}

.gtg-hc-result .gtg-hc-btn {
  margin-left: auto;
  margin-right: auto;
}

.entry-content .gtg-hc-result,
.entry-content .gtg-hc-result h2,
.entry-content .gtg-hc-result p {
  text-align: center;
}
