/*! Header Fixes - Remove top spacing */

/* Remove any top margin/padding from body and html */
html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove WordPress admin bar spacing */
body.admin-bar {
    margin-top: 0 !important;
}

/* Remove top spacing from header/nav */
.nav,
header,
.header,
.site-header,
.main-header {
    margin-top: 0 !important;
}

/* Remove top spacing from first section */
section:first-of-type,
.hero,
#home {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure hero starts at top */
.hero {
    margin-top: 0 !important;
}

/* Remove any spacers before hero */
.spacer,
.top-spacer,
[class*="spacing-top"] {
    display: none !important;
}

/* Fix for themes with wrapper spacing */
.site-content,
.main-content,
#content {
    padding-top: 0 !important;
}

/* Hero Form Visibility - FORCE SHOW (AGGRESSIVE) */
.hero-with-form,
.hero-form-grid,
.hero-form-card,
.hero-form-wrapper,
.hero-form-card *,
.hero-form-wrapper * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Make sure form inputs display correctly */
.hero-form-wrapper input,
.hero-form-wrapper textarea,
.hero-form-wrapper select,
.hero-form-wrapper button {
    display: block !important;
}

.hero-form-wrapper button.submit,
.hero-form-wrapper .submit-btn {
    display: block !important;
    width: 100% !important;
}

/* Ensure form is visible in hero */
.hero-form-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Grid layout for hero with form */
.hero-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: center !important;
}

/* Hero form card styling */
.hero-form-card {
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Hero form wrapper - ensure no hiding */
.hero-form-wrapper {
    width: 100% !important;
    opacity: 1 !important;
    display: block !important;
}

/* Override any hiding classes */
.hero-form-wrapper .contact_us,
.hero-form-wrapper .contact_us_area,
.hero-form-wrapper .prshor_shortcode {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 992px) {
    .hero-form-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .hero-form-card {
        padding: 25px 20px !important;
    }
}

/* Control form visibility in hero */
body.hide-hero-form .hero-form-card,
body.hide-hero-form .hero-form-wrapper {
    display: none !important;
}

body.hide-hero-form .hero-form-grid {
    grid-template-columns: 1fr !important;
}

body.hide-hero-form .hero-content {
    max-width: 100% !important;
    text-align: center;
}

