/*
Theme Name: Pando Costruzioni Theme
Theme URI: https://pandocostruzioni.com
Author: Pando Costruzioni
Description: Custom WordPress Theme for Pando Costruzioni S.r.l.
Version: 1.7
*/

:root {
  --color-primary: #00c753;
  --color-secondary: #00b34a;
  --color-bg: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-text: #262626;
  --color-text-secondary: #666666;
  --color-border: #ebebeb;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-1: 32px;
  --spacing-2: 64px;
  --spacing-3: 96px;
  --spacing-4: 128px;
  
  --spacing-sm-1: 8px;
  --spacing-sm-2: 12px;
  --spacing-sm-3: 16px;
  --spacing-sm-4: 24px;

  /* Border Radius */
  --radius-subtle: 4px;
  --radius-button: 4px;
  --radius-card: 4px;

  /* Shadows */
  --shadow-low: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  --shadow-high: rgba(0, 0, 0, 0.15) 0px 4px 16px 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

h1 {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 42px;
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm-3);
}

a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-1);
}

.section {
  padding: var(--spacing-3) 0;
}

.section-bg-alt {
  background-color: var(--color-bg-secondary);
}

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

.subtitle {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm-2);
}

.subtitle-hero {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm-3);
}

.divider {
  height: 2px;
  width: 48px;
  background-color: var(--color-primary);
  margin: 24px auto 0;
}

/* Components */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff !important;
  border-radius: var(--radius-button);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: #ffffff;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Header & Navigation */
header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 0;
  box-shadow: var(--shadow-low);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 4px;
}

.logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-subtitle {
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

nav ul li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

nav ul li a:hover {
  color: var(--color-text);
}

nav ul li a.btn {
  color: #ffffff !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeSlide 24s infinite;
  transform: scale(1.1);
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes fadeSlide {
  0% { opacity: 0; transform: scale(1.1); }
  10% { opacity: 1; transform: scale(1.05); }
  25% { opacity: 1; transform: scale(1.02); }
  35% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 25, 45, 0.65); /* Dark blueish-black overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
  color: #ffffff;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 700px;
}

.scroll-icon {
  margin-top: 48px;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-icon::before {
  content: '';
  width: 4px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  margin-top: 6px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-1);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-1);
}

/* specific sections */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Services Card */
.card-service {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-low);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border: 1px solid #e0f2e9; /* very light green border */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
  font-size: 24px;
}

/* Chi Siamo icons */
.feature-item {
  text-align: center;
}

.icon-circle-large {
  width: 80px;
  height: 80px;
  background: #e6f7ef; /* light green background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
  font-size: 32px;
}

.feature-item h4 {
  margin-bottom: 16px;
}

/* Portfolio Cards */
.card-project {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.card-project img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: 100%;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.card-project-content {
  padding: 24px;
}

.card-project-content h4 {
  margin-bottom: 12px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: var(--shadow-high);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* Forms */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-subtle);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

textarea.form-control {
  resize: vertical;
}

/* Testimonials */
.card-testimonial {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stars {
  color: var(--color-primary);
  margin-bottom: 24px;
  font-size: 18px;
  display: flex;
  gap: 4px;
}

.review-text {
  font-style: italic;
  margin-bottom: 32px;
  flex-grow: 1;
}

.reviewer strong {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-text);
}

.reviewer span {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.review-link {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.review-link:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-2);
}
.mobile-only-link {
  display: none !important;
}

.footer-col h4 {
  margin-bottom: var(--spacing-sm-4);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--spacing-sm-2);
}

.footer-col ul li a:hover {
  color: var(--color-primary) !important;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-1);
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero p { padding: 0 20px; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    justify-content: center;
  }
  
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-col li {
    justify-content: center !important;
    text-align: center;
  }
  
  .footer-col h4 {
    white-space: nowrap;
  }
  
  .footer-col-contact {
    display: none !important;
  }
  
  .mobile-only-link {
    display: list-item !important;
  }
  
  .footer-col:nth-child(1) .logo-container {
    justify-content: center;
  }
  
  /* Seguici (Full Width & Centered) */
  .footer-col:nth-child(3) {
    align-items: center;
    text-align: center;
  }
  
  .footer-bottom > div {
    flex-direction: column;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: var(--spacing-1);
    box-shadow: var(--shadow-low);
    text-align: center;
  }
  
  nav ul.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  
  .hero {
    min-height: 70vh;
    padding: var(--spacing-2) 0;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
  
  .logo-title {
    font-size: 16px;
    white-space: normal;
  }
  
  .logo-subtitle {
    font-size: 9px !important;
    white-space: normal;
    letter-spacing: 1px;
  }
  
  .logo {
    height: 48px;
  }
}

/* Metodo Section Interactive Cards */
.card-method {
  background-color: var(--color-bg);
  padding: 48px 32px;
  border-radius: var(--radius-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-low);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card-method:hover, .card-method:active {
  transform: translateY(-8px);
  box-shadow: var(--shadow-high);
  border-color: var(--color-primary);
}

.method-number {
  width: 64px;
  height: 64px;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

  .card-method:hover .method-number, .card-method:active .method-number {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 199, 83, 0.3);
  }

  /* Before/After Hover Slider */
  .before-after-container {
      position: relative;
      width: 100%;
      box-shadow: var(--shadow-high);
      cursor: pointer;
  }
  .before-after-container img {
      width: 100%;
      height: auto;
      display: block;
      transition: opacity 0.7s ease-in-out;
  }
  .before-after-container .img-after { 
      position: absolute;
      top: 0; left: 0;
      opacity: 0; 
  }
  .before-after-container:hover .img-after { opacity: 1; }
  .before-after-container:hover .img-before { opacity: 0; }
  .before-after-container:hover .hover-label { opacity: 0 !important; }

/* Render Grid Gallery */
.render-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.render-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-low);
    position: relative;
    aspect-ratio: 4 / 3;
}

.render-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.render-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content-wrapper {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}
.lightbox-prev {
    left: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .render-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .render-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .lightbox-prev, .lightbox-next {
        font-size: 20px;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Gallery Collapse Logic */
.gallery-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease-in-out;
}

.gallery-collapse.open {
    max-height: 5000px;
    opacity: 1;
}

#toggle-gallery-btn:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}

.rotate-icon {
    transform: rotate(180deg);
}



/* WPForms Custom Styling to match theme */
.wpforms-container {
    margin: 0 !important;
}
.wpforms-container .wpforms-form .wpforms-field {
    padding: 0 !important;
    margin-bottom: 16px !important;
    clear: none !important;
}
.wpforms-container .wpforms-form .wpforms-field-label {
    display: none !important;
}
.wpforms-container .wpforms-form .wpforms-field input[type=text],
.wpforms-container .wpforms-form .wpforms-field input[type=email],
.wpforms-container .wpforms-form .wpforms-field input[type=tel],
.wpforms-container .wpforms-form .wpforms-field textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background-color: #ffffff !important;
    font-family: var(--font-body) !important;
    color: var(--color-text) !important;
    box-sizing: border-box !important;
    height: auto !important;
}
.wpforms-container .wpforms-form .wpforms-field textarea {
    min-height: 150px !important;
}
.wpforms-container .wpforms-form .wpforms-field input:focus,
.wpforms-container .wpforms-form .wpforms-field textarea:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 199, 83, 0.1) !important;
    background-color: #ffffff !important;
}
.wpforms-container .wpforms-form button[type=submit],
.wpforms-container .wpforms-form input[type=submit] {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    margin-top: 8px !important;
}
.wpforms-container .wpforms-form button[type=submit]:hover,
.wpforms-container .wpforms-form input[type=submit]:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-2px) !important;
}
.wpforms-container .wpforms-form .wpforms-field-checkbox ul {
    margin: 0 !important;
    padding: 0 !important;
}
.wpforms-container .wpforms-form .wpforms-field-checkbox ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
}
.wpforms-container .wpforms-form .wpforms-field-checkbox input[type=checkbox] {
    margin-top: 4px !important;
    accent-color: var(--color-primary) !important;
    width: auto !important;
}
.wpforms-container .wpforms-form .wpforms-field-checkbox label {
    font-size: 13px !important;
    color: var(--color-text-secondary) !important;
    line-height: 1.4 !important;
    font-weight: normal !important;
    display: inline !important;
}
.wpforms-container .wpforms-form .wpforms-field-checkbox label a {
    color: var(--color-primary) !important;
    text-decoration: underline !important;
}


/* Fix WPForms Grid Layouts for Side-by-Side */
.contact-form .wpforms-container form.wpforms-form .wpforms-field-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
}

.contact-form .wpforms-container form.wpforms-form .wpforms-field {
    width: 100% !important;
    margin-bottom: 16px !important;
}

.contact-form .wpforms-container form.wpforms-form .wpforms-one-half {
    width: calc(50% - 8px) !important;
    margin-left: 16px !important;
}

.contact-form .wpforms-container form.wpforms-form .wpforms-one-half.wpforms-first {
    margin-left: 0 !important;
}

@media (max-width: 768px) {
    .contact-form .wpforms-container form.wpforms-form .wpforms-one-half {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Force Header to be Fixed */
header#header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}
body {
    padding-top: 74px !important; /* Prevent content from hiding behind the fixed header */
}

/* Privacy Policy Specific Fixes */
.privacy-container {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.privacy-container h1 {
    font-size: 36px !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.5px !important;
}
.privacy-container h2 {
    font-size: 24px !important;
    margin-top: 40px !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.5px !important;
}
.privacy-container .last-updated {
    font-size: 14px !important;
    color: var(--color-text-secondary);
    margin-bottom: 32px !important;
}
