/*
Theme Name: Taxback
Theme URI: https://ustaxback.com
Description: Custom brand styling for Taxback – U.S. casino winnings tax refund service.
Author: Andrew / Taxback
Version: 1.2.0
*/

/* =========================
   0. VARIABLES & RESET
   ========================= */

:root {
  --tb-blue: #0B3C88;
  --tb-red: #FF2222;
  --tb-dark: #05070B;
  --tb-bg: #F5F6FB;
  --tb-card-bg: #FFFFFF;
  --tb-border-soft: #E1E3EE;
  --tb-text: #111827;
  --tb-text-muted: #6B7280;
  --tb-radius-lg: 18px;
  --tb-radius-md: 12px;
  --tb-radius-pill: 999px;
  --tb-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --tb-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tb-text);
  background-color: var(--tb-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   1. TYPOGRAPHY & LINKS
   ========================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tb-dark);
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 2.6vw + 1.4rem, 3.2rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.9rem, 1.6vw + 1.1rem, 2.4rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--tb-text);
}

a {
  color: var(--tb-blue);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--tb-red);
}

/* Small helpers */
.tb-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--tb-blue);
}

.tb-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tb-text-muted);
}

/* =========================
   2. LAYOUT
   ========================= */

.tb-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.site-main {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

/* =========================
   3. HEADER & NAV
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, #05070B, #0B3C88);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.7rem 0;
}

/* Logo block */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-branding svg {
  display: block;
  max-height: 48px;
  width: auto;
}

.site-title-text {
  display: flex;
  flex-direction: column;
}

.site-title-text span:first-child {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E5E7EB;
}

.site-title-text span:last-child {
  font-size: 0.78rem;
  color: #9CA3AF;
}

/* Right side: nav + CTA */
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Nav */
.primary-navigation,
.primary-nav {
  display: flex;
  align-items: center;
}

.primary-navigation .primary-menu,
.primary-nav .primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.primary-navigation a,
.primary-nav a {
  color: #E5E7EB;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
}

/* underline hover */
.primary-navigation a::after,
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tb-red), var(--tb-blue));
  transition: width 0.2s ease;
}

.primary-navigation a:hover::after,
.primary-nav a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-nav .current-menu-item > a::after {
  width: 100%;
}

/* Phone CTA */
.tb-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.4rem;
  border-radius: var(--tb-radius-pill);
  border: 1px solid rgba(248, 250, 252, 0.35);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  color: #E5E7EB;
  text-decoration: none;
  white-space: nowrap;
}

.tb-header-phone strong {
  color: #ffffff;
  font-weight: 800;
}

/* No hamburger for now */
.tb-menu-toggle {
  display: none !important;
}

/* =========================
   4. BUTTONS
   ========================= */

a.button,
.button,
.tb-button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--tb-radius-pill);
  border: none;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tb-red), #FF5A3C);
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(248, 113, 113, 0.45);
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

a.button:hover,
.button:hover,
.tb-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 32px rgba(248, 113, 113, 0.55);
}

/* Hero CTA: subtle border so it pops on dark BG */
.hero a.button {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* “Learn More” on white card – no border */
.section-body a.button {
  border: none;
}

/* Ghost variant if needed */
.tb-button--ghost {
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.6);
  box-shadow: none;
}

/* =========================
   5. FORMS (GLOBAL BASE)
   ========================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background-color: rgba(15, 23, 42, 0.03);
  color: var(--tb-text);
  font-size: 0.9rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9CA3AF;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--tb-red);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
}

/* =========================
   6. FRONT PAGE – HERO
   ========================= */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 7, 11, 0.9), rgba(11, 60, 136, 0.88));
}

.hero-overlay {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: flex-start;
}

.hero-copy {
  max-width: 44rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-bottom: 0.65rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 2.6vw + 1.4rem, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #e5e7eb;
  max-width: 40rem;
  margin-bottom: 1.4rem;
}

.hero-ctas {
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: 0.88rem;
  color: #cbd5f5;
}

/* Hero form card */
.hero-form {
  background: #0f172a;
  border-radius: var(--tb-radius-lg);
  padding: 1.8rem 1.8rem 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.65);
}

.hero-form h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  color: #f9fafb;
}

.hero-form p {
  font-size: 0.92rem;
  color: #cbd5f5;
  margin-bottom: 1.1rem;
}

.hero-form form {
  display: grid;
  gap: 0.75rem;
}

/* =========================
   7. FRONT PAGE – SECTIONS
   ========================= */

.section {
  padding: 3.2rem 0;
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 1.75rem;
  padding: 0 1.25rem;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--tb-blue);
  margin-bottom: 0.4rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 1.6vw + 1.1rem, 2.4rem);
}

.section-lede {
  margin: 0;
  max-width: 30rem;
  color: var(--tb-text-muted);
}

/* Main body with flags image */
.section-body {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding: 2.75rem 3rem;
  border-radius: var(--tb-radius-lg);
  background: var(--tb-card-bg);
  border: 1px solid var(--tb-border-soft);
  box-shadow: var(--tb-shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.section-image img {
  width: 100%;
  height: auto;
  border-radius: var(--tb-radius-md);
  box-shadow: var(--tb-shadow-sm);
}

/* Cards – "Why choose Taxback?" */
.card-grid {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.card {
  background: #ffffff;
  border-radius: var(--tb-radius-md);
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--tb-border-soft);
  box-shadow: var(--tb-shadow-sm);
}

.card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.94rem;
  color: var(--tb-text-muted);
}

.card-icon {
  font-size: 2.1rem;
  line-height: 1;
}

/* =========================
   8. FOOTER
   ========================= */

.site-footer {
  border-top: 1px solid #111827;
  background: #05070B;
  color: #9CA3AF;
  padding-block: 2rem;
  font-size: 0.86rem;
}

.site-footer .tb-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: #E5E7EB;
}

.site-footer a:hover {
  color: var(--tb-red);
}

/* =========================
   9. UTILITIES
   ========================= */

.tb-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--tb-radius-pill);
  background: rgba(15, 23, 42, 0.92);
  color: #E5E7EB;
  font-size: 0.8rem;
}

.tb-text-muted {
  color: var(--tb-text-muted);
}

.tb-center {
  text-align: center;
}

/* =========================
   10. RESPONSIVE
   ========================= */

@media (max-width: 960px) {
  .header-inner {
    gap: 1rem;
  }

  .header-right {
    gap: 1.25rem;
  }

  .primary-navigation .primary-menu {
    gap: 1rem;
  }

  .hero-overlay {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-form {
    max-width: 480px;
    margin: 1.5rem auto 0;
  }

  .section-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 2rem 1.75rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .section-body {
    padding: 1.6rem 1.3rem;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   11. GRAVITY FORMS – HERO CARD
   ========================= */

.hero-form .gform_wrapper,
.hero-form .gform_wrapper.gravity-theme {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* Section / field labels */
.hero-form .gform_wrapper .gsection_title {
  font-size: 1rem;
  font-weight: 700;
  color: #f9fafb;
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
}

.hero-form .gform_wrapper .gfield_label,
.hero-form .gform_wrapper.gravity-theme .gfield_label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

/* "(Required)" */
.hero-form .gform_wrapper .gfield_required {
  color: #ff2222;
}

/* Inputs / selects / textareas in hero form */
.hero-form .gform_wrapper input[type="text"],
.hero-form .gform_wrapper input[type="email"],
.hero-form .gform_wrapper input[type="tel"],
.hero-form .gform_wrapper input[type="number"],
.hero-form .gform_wrapper select,
.hero-form .gform_wrapper textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background-color: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 0.9rem;
  box-shadow: none;
}

.hero-form .gform_wrapper input::placeholder,
.hero-form .gform_wrapper textarea::placeholder {
  color: #9ca3af;
}

.hero-form .gform_wrapper input:focus,
.hero-form .gform_wrapper select:focus,
.hero-form .gform_wrapper textarea:focus {
  outline: none;
  border-color: #ff2222;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.9);
}

/* Name fields side-by-side */
.hero-form .gform_wrapper .name_first,
.hero-form .gform_wrapper .name_last {
  width: 100%;
}

.hero-form .gform_wrapper .ginput_complex.ginput_container_name {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Field spacing */
.hero-form .gform_wrapper .gfield {
  margin-bottom: 0.9rem;
}

/* Error messages */
.hero-form .gform_wrapper .gfield_validation_message,
.hero-form .gform_wrapper .validation_message,
.hero-form .gform_wrapper .gform_validation_errors {
  border: none;
  background: rgba(220, 38, 38, 0.1);
  color: #fecaca;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
}

/* Submit button inside hero form */
.hero-form .gform_wrapper .gform_footer,
.hero-form .gform_wrapper .gform_page_footer {
  margin-top: 1.2rem;
  padding-top: 0.4rem;
}

.hero-form .gform_wrapper input[type="submit"] {
  width: 100%;
  justify-content: center;
}
/* === FINAL BUTTON OVERRIDES === */

/* Main CTA buttons (hero + Learn More + any .button links) */
a.button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, #ff2222, #ff5a3c) !important;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(248, 113, 113, 0.45);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

a.button:hover,
.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 32px rgba(248, 113, 113, 0.55);
}

/* Gravity Forms submit button in hero – match CTA style */
.hero-form .gform_wrapper input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, #ff2222, #ff5a3c) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(248, 113, 113, 0.45);
  text-decoration: none;
}
/* =========================
   TAX GUIDE PAGE
   ========================= */

/* Hero */
.withholding-guide .guide-hero {
  position: relative;
  padding: 3.5rem 0 2.75rem;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.withholding-guide .guide-hero-overlay {
  position: relative;
}

.withholding-guide .guide-hero::before,
.withholding-guide .guide-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 7, 11, 0.9), rgba(11, 60, 136, 0.88));
  mix-blend-mode: normal;
}

.withholding-guide .guide-hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem;
}

.withholding-guide .guide-hero-copy {
  max-width: 46rem;
}

.withholding-guide .guide-hero-subtitle {
  font-size: 0.98rem;
  color: #e5e7eb;
  max-width: 40rem;
  margin-top: 0.4rem;
}

/* Main layout */
.withholding-guide .guide-layout {
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
}

.withholding-guide .guide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Content column */
.withholding-guide .guide-content {
  background: transparent;
}

/* Sidebar form card */
.withholding-guide .guide-form {
  background: #ffffff;
  border-radius: var(--tb-radius-lg);
  padding: 1.8rem 1.8rem 2rem;
  box-shadow: var(--tb-shadow-soft);
  border: 1px solid var(--tb-border-soft);
}

.withholding-guide .guide-form h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.withholding-guide .guide-form p {
  font-size: 0.92rem;
  color: var(--tb-text-muted);
}

/* Gravity Form inside guide sidebar inheriting hero styles, but on light BG */
.withholding-guide .guide-form .gform_wrapper,
.withholding-guide .guide-form .gform_wrapper.gravity-theme {
  margin-top: 0.9rem;
  color: var(--tb-text);
  font-size: 0.9rem;
}

.withholding-guide .guide-form .gform_wrapper .gfield_label,
.withholding-guide .guide-form .gform_wrapper.gravity-theme .gfield_label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tb-text-muted);
  margin-bottom: 0.25rem;
}

.withholding-guide .guide-form .gform_wrapper .gfield_required {
  color: var(--tb-red);
}

.withholding-guide .guide-form .gform_wrapper input[type="text"],
.withholding-guide .guide-form .gform_wrapper input[type="email"],
.withholding-guide .guide-form .gform_wrapper input[type="tel"],
.withholding-guide .guide-form .gform_wrapper input[type="number"],
.withholding-guide .guide-form .gform_wrapper select,
.withholding-guide .guide-form .gform_wrapper textarea {
  background-color: #f9fafb;
  color: var(--tb-text);
  border-color: rgba(148, 163, 184, 0.9);
}

.withholding-guide .guide-form .gform_wrapper input::placeholder,
.withholding-guide .guide-form .gform_wrapper textarea::placeholder {
  color: #9ca3af;
}

.withholding-guide .guide-form .gform_wrapper input:focus,
.withholding-guide .guide-form .gform_wrapper select:focus,
.withholding-guide .guide-form .gform_wrapper textarea:focus {
  outline: none;
  border-color: var(--tb-red);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
}

/* Name fields side by side on desktop */
.withholding-guide .guide-form .gform_wrapper .ginput_complex.ginput_container_name {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.withholding-guide .guide-form .gform_wrapper .gfield {
  margin-bottom: 0.9rem;
}

/* Submit button */
.withholding-guide .guide-form .gform_wrapper .gform_footer,
.withholding-guide .guide-form .gform_wrapper .gform_page_footer {
  margin-top: 1.2rem;
  padding-top: 0.4rem;
}

.withholding-guide .guide-form .gform_wrapper input[type="submit"] {
  width: 100%;
  justify-content: center;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .withholding-guide .guide-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .withholding-guide .guide-form {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .withholding-guide .guide-hero {
    padding: 3rem 0 2.1rem;
  }
}
/* FOOTER LAYOUT DETAILS */

.footer-inner {
  width: 100%;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
}

.footer-brand strong {
  color: #E5E7EB;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand span {
  font-size: 0.8rem;
  color: #9CA3AF;
}

/* Footer nav */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  font-size: 0.86rem;
}

.footer-menu a {
  color: #E5E7EB;
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--tb-red);
}

/* Footer copyright */
.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #9CA3AF;
}

/* Stack nicely on small screens */
@media (max-width: 720px) {
  .site-footer .tb-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-menu {
    flex-wrap: wrap;
  }
}
/* =========================
   CONTACT PAGE
   ========================= */

.contact-page .contact-hero {
  background: linear-gradient(135deg, #05070B, #0B3C88);
  color: #ffffff;
  padding-top: 3.2rem;
  padding-bottom: 2.6rem;
}

.contact-page .contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.contact-page .contact-header h1 {
  margin-bottom: 0.7rem;
  color: #ffffff;
}

.contact-page .contact-subtitle {
  max-width: 34rem;
  font-size: 0.98rem;
  color: #e5e7eb;
}

/* Call / Email cards */
.contact-page .contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-page .contact-option {
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--tb-radius-lg);
  padding: 1.3rem 1.4rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.45);
}

.contact-page .contact-option h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #f9fafb;
}

.contact-page .contact-option p {
  margin: 0;
}

/* Main layout below hero */
.contact-page .contact-layout {
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
}

.contact-page .contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Content column */
.contact-page .contact-copy {
  background: transparent;
}

/* Sidebar form card */
.contact-page .contact-form-card {
  background: #ffffff;
  border-radius: var(--tb-radius-lg);
  padding: 1.8rem 1.8rem 2rem;
  box-shadow: var(--tb-shadow-soft);
  border: 1px solid var(--tb-border-soft);
}

.contact-page .contact-form-card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-page .contact-form-card p {
  font-size: 0.92rem;
  color: var(--tb-text-muted);
}

/* Gravity Form inside contact card – reuse light card styling */
.contact-page .contact-form-card .gform_wrapper,
.contact-page .contact-form-card .gform_wrapper.gravity-theme {
  margin-top: 0.9rem;
  color: var(--tb-text);
  font-size: 0.9rem;
}

.contact-page .contact-form-card .gform_wrapper .gfield_label,
.contact-page .contact-form-card .gform_wrapper.gravity-theme .gfield_label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tb-text-muted);
  margin-bottom: 0.25rem;
}

.contact-page .contact-form-card .gform_wrapper .gfield_required {
  color: var(--tb-red);
}

.contact-page .contact-form-card .gform_wrapper input[type="text"],
.contact-page .contact-form-card .gform_wrapper input[type="email"],
.contact-page .contact-form-card .gform_wrapper input[type="tel"],
.contact-page .contact-form-card .gform_wrapper input[type="number"],
.contact-page .contact-form-card .gform_wrapper select,
.contact-page .contact-form-card .gform_wrapper textarea {
  background-color: #f9fafb;
  color: var(--tb-text);
  border-color: rgba(148, 163, 184, 0.9);
}

.contact-page .contact-form-card .gform_wrapper input::placeholder,
.contact-page .contact-form-card .gform_wrapper textarea::placeholder {
  color: #9ca3af;
}

.contact-page .contact-form-card .gform_wrapper input:focus,
.contact-page .contact-form-card .gform_wrapper select:focus,
.contact-page .contact-form-card .gform_wrapper textarea:focus {
  outline: none;
  border-color: var(--tb-red);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
}

/* Name fields side-by-side on desktop */
.contact-page .contact-form-card .gform_wrapper .ginput_complex.ginput_container_name {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-page .contact-form-card .gform_wrapper .gfield {
  margin-bottom: 0.9rem;
}

/* Submit button – full width, gradient already set by global overrides */
.contact-page .contact-form-card .gform_wrapper .gform_footer,
.contact-page .contact-form-card .gform_wrapper .gform_page_footer {
  margin-top: 1.2rem;
  padding-top: 0.4rem;
}

.contact-page .contact-form-card .gform_wrapper input[type="submit"] {
  width: 100%;
  justify-content: center;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .contact-page .contact-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-page .contact-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-page .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-page .contact-form-card {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .contact-page .contact-hero {
    padding-top: 2.8rem;
    padding-bottom: 2.2rem;
  }
}
/* =========================
   CONTACT PAGE TWEAKS
   ========================= */

/* 1) Make Call / Email buttons fill their cards */
.contact-page .contact-option .button {
  width: 100%;
  justify-content: center;
}

/* 2) Make contact form take full width of the page content */
.contact-page .contact-inner {
  display: block;              /* stop using two-column grid */
}

.contact-page .contact-form-card {
  margin-top: 2rem;            /* spacing below the copy */
  width: 100%;                 /* full tb-container width */
}
/* CONTACT PAGE – CALL / EMAIL BUTTON REFINEMENTS */
.contact-page .contact-option p {
  margin: 0;
}

.contact-page .contact-option .button {
  display: flex;               /* override inline-flex if needed */
  width: 100%;                 /* fill the card’s inner width */
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: normal;         /* allow wrapping for the email address */
  padding-block: 0.85rem;
}
/* CONTACT PAGE – FORCE FULL-WIDTH CALL / EMAIL BUTTONS */
.contact-page .contact-option p {
  margin: 0;
}

.contact-page .contact-option .button {
  display: block !important;        /* stop being inline-flex */
  width: 100% !important;           /* fill the card width */
  max-width: 100%;
  box-sizing: border-box;

  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3;

  white-space: normal !important;   /* allow wrapping for long email */
  overflow-wrap: break-word;
  padding: 0.85rem 1.2rem;          /* comfy vertical + side padding */
}
/* CONTACT PAGE – SINGLE-LINE CALL / EMAIL BUTTONS */
.contact-page .contact-option {
  text-align: center;
}

.contact-page .contact-option .button {
  display: inline-flex !important;   /* back to pill style */
  align-items: center;
  justify-content: center;
  width: auto !important;            /* no full-width */
  max-width: 100%;
  margin: 0 auto;                    /* center in card */

  white-space: nowrap !important;    /* keep on one line */
  font-size: 0.9rem;
  padding: 0.75rem 1.6rem;
}
/* CONTACT PAGE – FINAL CALL / EMAIL BUTTON TWEAKS */
.contact-page .contact-option {
  text-align: center;
}

.contact-page .contact-option .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  margin: 0 auto;

  white-space: nowrap !important;   /* keep single line on desktop */
  font-size: 0.8rem;                /* slightly smaller so it fits in card */
  padding: 0.6rem 1.4rem;           /* trim padding a bit */
}

/* On very small screens, allow wrapping so it doesn't get cut off */
@media (max-width: 600px) {
  .contact-page .contact-option .button {
    white-space: normal !important;
  }
}
/* ================================
   MOBILE FIXES (max-width: 768px)
   ================================ */
@media (max-width: 768px) {

  /* Header */
  .site-header {
    padding: 10px 15px;
  }

  .site-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Logo and Tagline */
  .site-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .site-title {
    font-size: 22px;
    line-height: 1.1;
  }

  .site-description {
    font-size: 12px;
    max-width: 250px;
    line-height: 1.3;
  }

  /* Navigation */
  .main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 15px;
  }

  .main-navigation ul li a {
    padding: 4px 0;
  }

  /* CTA Button */
  .header-cta .button,
  .header-cta a {
    font-size: 14px !important;
    padding: 8px 14px !important;
    white-space: nowrap;
  }

  /* Hero */
  .home .hero {
    padding: 60px 20px 50px;
  }

  .home .hero h1 {
    font-size: 32px;
    line-height: 1.15;
  }

  .home .hero .hero-subtitle {
    font-size: 15px;
  }
}
/* Make TAX bright blue everywhere */
.logo-tax {
  color: #33d3ff; /* pick whatever bright blue you like */
}

/* If you only want to bump it on desktop */
@media (min-width: 1024px) {
  .logo-tax {
    color: #33d3ff;
  }
}
