/**
 * HostOffers Global CSS — Site-wide overrides loaded on every page.
 *
 * Contains: WooCommerce/REHub lockdown, CTA button primitives,
 * custom footer. Page-specific styles live in separate files.
 *
 * @package HostOffers
 * @since   1.1.0
 */

/* ==========================================================================
   WooCommerce / REHub Lockdown — Hide storefront elements
   ========================================================================== */

/* Body background matches prototype (slate-50) */
body {
    background-color: #f8fafc !important;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #1E293B !important;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   HostOffers Custom Navbar — pixel-perfect match to prototype Layout.tsx
   ========================================================================== */

/* Hide old REHub header layout elements (logo-section, search, etc.) */
#main_header .logo_section_wrap.hideontablet,
#main_header .logo-section,
#main_header .head_search,
#main_header .search.head_search {
    display: none !important;
}

/* Keep the <header id="main_header"> wrapper minimal */
#main_header {
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#main_header .header_wrap {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide old REHub nav row — replaced by .ho-navbar */
#main_header .main-nav,
#main_header .search-form-inheader {
    display: none !important;
}

/* --- Navbar container --- */
.ho-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.ho-navbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .ho-navbar__inner {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .ho-navbar__inner {
        padding: 0 32px;
    }
}

/* --- Logo --- */
.ho-navbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.ho-navbar__logo-img {
    max-height: 32px;
    width: auto;
}

/* Fallback text logo (when no image logo is set) */
.ho-navbar__logo-icon {
    width: 32px;
    height: 32px;
    background-color: #003366;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.ho-navbar__logo-text {
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #003366;
    letter-spacing: -0.025em;
}

.ho-navbar__logo-accent {
    color: #00A859;
}

/* --- Desktop Navigation Links --- */
.ho-navbar__nav {
    display: none;
}

@media (min-width: 768px) {
    .ho-navbar__nav {
        display: flex;
        align-items: center;
    }
}

.ho-navbar__links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.ho-navbar__links li {
    margin: 0;
    padding: 0;
}

.ho-navbar__links li a {
    color: #475569;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.ho-navbar__links li a:hover {
    color: #003366;
}

/* Active nav link */
.ho-navbar__links li.current-menu-item > a,
.ho-navbar__links li.current_page_item > a {
    color: #00A859;
    font-weight: 700;
}

/* Hosting Quiz link — always green + bold */
.ho-navbar__links li#menu-item-1149 > a {
    color: #00A859;
    font-weight: 700;
}

/* Sub-menus (dropdown) */
.ho-navbar__links li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 100;
    list-style: none;
    margin: 0;
}

.ho-navbar__links li:hover > ul.sub-menu {
    display: block;
}

.ho-navbar__links li ul.sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.ho-navbar__links li ul.sub-menu li a:hover {
    color: #003366;
    background: #f8fafc;
}

/* --- CTA Button --- */
.ho-navbar__cta {
    background-color: #003366;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.ho-navbar__cta:hover {
    background-color: rgba(0, 51, 102, 0.9);
    color: #ffffff;
}

/* --- Mobile Menu Toggle --- */
.ho-navbar__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #003366;
}

@media (min-width: 768px) {
    .ho-navbar__mobile-toggle {
        display: none;
    }
}

/* Hide CTA on mobile when admin option "Show CTA on Mobile" is off */
@media (max-width: 767px) {
    .ho-navbar__cta--hide-mobile {
        display: none;
    }
}

/* CTA on very small screens — compact sizing */
@media (max-width: 480px) {
    .ho-navbar__cta {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* REHub floating compare badge & panel */
.re-compare-icon-toggle,
.rehub-compare-panel,
.rehub_woo_compare_wrapper,
.rh-compare-float-wrapper {
    display: none !important;
}

/* REHub header wishlist menu item & icon */
#menu-item-584,
.rh-wishlistmenu-link {
    display: none !important;
}

/* Hide WooCommerce add-to-wishlist and compare action buttons on single product */
.woocommerce-product-details .button_action,
.woo_default_full_width .button_action,
.ho-single-product-wrap .button_action {
    display: none !important;
}

/* ==========================================================================
   FTC Top Banner — slim disclosure bar below navbar (prototype match)
   ========================================================================== */

.ho-ftc-top-banner {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
    text-align: center;
}

.ho-ftc-top-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.ho-ftc-top-banner__text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    line-height: 1;
}

.ho-ftc-top-banner__icon {
    width: 12px;
    height: 12px;
    color: #00A859;
    flex-shrink: 0;
}

.ho-ftc-top-banner__link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ho-ftc-top-banner__link:hover {
    color: #003366;
}

@media (max-width: 480px) {
    .ho-ftc-top-banner__text {
        font-size: 9px;
        letter-spacing: 0.05em;
    }
}

/* ==========================================================================
   CTA Button Primitives (PHP shortcode — <a> tags directly)
   ========================================================================== */

.ho-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #00A859;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    padding: 16px 24px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    border: none;
    gap: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.ho-btn-primary:hover {
    background-color: #008a47;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.45);
}

.ho-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: rgba(255, 251, 235, 0.3);
    color: #d97706;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 24px;
    border: 1px solid #fef3c7;
    transition: background 0.2s;
    gap: 8px;
}

.ho-btn-secondary:hover {
    background-color: #fffbeb;
    color: #d97706;
}

/* ==========================================================================
   Footer — Custom HostOffers Footer (matches prototype)
   ========================================================================== */

.ho-footer {
    margin-top: 0;
    background-color: #0f172a;
    color: #ffffff;
    padding: 80px 0;
}

.ho-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 4-column grid — first column spans 2 */
.ho-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.ho-footer-brand-col {
    grid-column: span 2;
}

/* Logo row */
.ho-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ho-footer-site-name {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    line-height: 1.3;
}

.ho-footer-dot-com {
    color: #00A859;
}

/* Description */
.ho-footer .ho-footer-desc {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.625;
    margin: 0 0 24px;
    max-width: 448px;
}

/* FTC Disclosure */
.ho-footer-ftc {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ho-footer-ftc-svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ho-footer-ftc-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.4;
}

/* Link columns */
.ho-footer-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin: 0 0 24px;
}

.ho-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ho-footer-links li {
    margin-bottom: 16px;
}

.ho-footer-links li:last-child {
    margin-bottom: 0;
}

.ho-footer-links a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}

.ho-footer-links a:hover {
    color: #00A859;
}

/* Bottom bar */
.ho-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

/* Widget area integration — ensure widget wrappers don't add unwanted spacing */
.ho-footer-widget {
    margin: 0;
    padding: 0;
}

.ho-footer-bottom-widget {
    margin: 0;
    padding: 0;
}

/* Nav Menu widget rendered in footer — inherit link column styles */
.ho-footer-link-col .widget_nav_menu ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ho-footer-link-col .widget_nav_menu ul.menu li {
    margin-bottom: 16px;
}

.ho-footer-link-col .widget_nav_menu ul.menu li:last-child {
    margin-bottom: 0;
}

.ho-footer-link-col .widget_nav_menu ul.menu a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}

.ho-footer-link-col .widget_nav_menu ul.menu a:hover {
    color: #00A859;
}

/* REHub widget title override inside our footer columns */
.ho-footer-link-col .widget .title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin: 0 0 24px;
    padding: 0;
    border: none;
    background: none;
}

/* Hide REHub's default footer when our custom footer is active */
.footer-bottom {
    display: none !important;
}

#theme_footer {
    display: none !important;
}

/* ==========================================================================
   Responsive: Tablet & Mobile
   ========================================================================== */

@media (max-width: 767px) {

    .ho-footer {
        padding: 48px 0;
    }

    .ho-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .ho-footer-brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {

    .ho-footer-grid {
        grid-template-columns: 1fr;
    }

    .ho-footer-brand-col {
        grid-column: span 1;
    }
}

/* ==========================================================================
   General Page Template — legal, about, contact, info pages
   Layout is handled by REHub's rh-container / content_type classes.
   ========================================================================== */

/* Remove REHub's default content box border/shadow on general pages */
body.page-template-page-general:not(.noinnerpadding) .rh-post-wrapper {
    border: none;
    box-shadow: none;
    background: none transparent;
    margin-top: 20px;
    padding: 0;
}

.ho-general-header {
    margin-bottom: 32px;
}

.ho-general-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #003366;
    margin: 0 0 8px;
    line-height: 1.2;
}

.ho-general-updated {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.ho-general-content {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
}

.ho-general-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #003366;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.ho-general-content h2:first-child {
    margin-top: 0;
}

.ho-general-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin: 32px 0 12px;
}

.ho-general-content p {
    margin: 0 0 16px;
}

.ho-general-content ul,
.ho-general-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.ho-general-content li {
    margin-bottom: 8px;
}

.ho-general-content a {
    color: #00A859;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ho-general-content a:hover {
    color: #003366;
}

/* Contact form card styling (Gravity Forms, WPForms, etc.) */
.ho-general-content .gform_wrapper,
.ho-general-content .wpforms-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
}

.ho-general-content .gform_wrapper .gfield input[type="text"],
.ho-general-content .gform_wrapper .gfield input[type="email"],
.ho-general-content .gform_wrapper .gfield textarea,
.ho-general-content .gform_wrapper .gfield select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.ho-general-content .gform_wrapper .gfield input:focus,
.ho-general-content .gform_wrapper .gfield textarea:focus,
.ho-general-content .gform_wrapper .gfield select:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.ho-general-content .gform_wrapper .gform_button,
.ho-general-content .gform_wrapper input[type="submit"] {
    background: #00A859;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ho-general-content .gform_wrapper .gform_button:hover,
.ho-general-content .gform_wrapper input[type="submit"]:hover {
    background: #008a48;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 768px) {
    .ho-general-title {
        font-size: 28px;
    }

    .ho-general-content h2 {
        font-size: 20px;
        margin-top: 32px;
    }

    .ho-general-content .gform_wrapper,
    .ho-general-content .wpforms-container {
        padding: 20px 16px;
    }
}

/* ==========================================================================
   Contact Page — Prototype-Matched Styling (body.ho-contact-page)
   Scoped so it only applies to the Contact Us page (ID 1214).
   Prototype: bg-white, 2-col grid gap-20 (80px), rounded-[40px] form card.
   ========================================================================== */

/* Page background — white, generous vertical padding */
.ho-contact-page .rh-container {
    background: transparent;
}

.ho-contact-page .rh-content-wrap {
    padding-top: 0;
}

.ho-contact-page .main-side.page {
    padding: 60px 0 80px;
    border: none;
    box-shadow: none;
    background: none;
}

/* Remove REHub post wrapper box on this page */
body.ho-contact-page:not(.noinnerpadding) .rh-post-wrapper {
    border: none;
    box-shadow: none;
    background: none transparent;
    padding: 0;
}

/* ── Page title ─────────────────────────────────────────────────── */
.ho-contact-page .entry-title,
.ho-contact-page .page-title,
.ho-contact-page h1.wp-block-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #003366;
    margin: 0 0 24px;
    line-height: 1.1;
}

/* Description paragraph */
.ho-contact-page .wp-block-columns > .wp-block-column:first-child > p:first-of-type {
    font-size: 20px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 48px;
}

/* ── Two-column grid ────────────────────────────────────────────── */
.ho-contact-page .wp-block-columns {
    gap: 80px;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* Left info column */
.ho-contact-page .wp-block-columns > .wp-block-column:first-child {
    flex-basis: 42% !important;
    flex-grow: 0 !important;
}

/* Right form column */
.ho-contact-page .wp-block-columns > .wp-block-column:last-child {
    flex-basis: 55% !important;
    flex-grow: 0 !important;
}

/* ── Info box headings (Email Us / Our Office) ──────────────────── */
.ho-contact-page .wp-block-column:first-child h4.wp-block-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 4px;
    padding-left: 72px;
    position: relative;
    line-height: 1.4;
}

/* Icon box — rounded-2xl squares (prototype: w-14 h-14 rounded-2xl) */
.ho-contact-page .wp-block-column:first-child h4.wp-block-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.ho-contact-page .wp-block-column:first-child h4.wp-block-heading::after {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
}

/* Email icon — navy bg at 5% opacity (prototype: bg-[#003366]/5) */
.ho-contact-page .wp-block-column:first-child h4.wp-block-heading:first-of-type::before {
    background: rgba(0, 51, 102, 0.05);
}

.ho-contact-page .wp-block-column:first-child h4.wp-block-heading:first-of-type::after {
    content: '✉';
    color: #003366;
}

/* Office icon — green bg at 5% opacity (prototype: bg-[#00A859]/5) */
.ho-contact-page .wp-block-column:first-child h4.wp-block-heading:nth-of-type(2)::before {
    background: rgba(0, 168, 89, 0.05);
}

.ho-contact-page .wp-block-column:first-child h4.wp-block-heading:nth-of-type(2)::after {
    content: '📍';
    color: #00A859;
    font-size: 22px;
    left: 17px;
}

/* Info detail text under headings */
.ho-contact-page .wp-block-column:first-child h4.wp-block-heading + p {
    padding-left: 72px;
    color: #475569;
    font-size: 15px;
    margin-bottom: 4px;
}

.ho-contact-page .wp-block-column:first-child h4.wp-block-heading + p + p {
    padding-left: 72px;
    color: #94a3b8;
    font-size: 12px;
}

/* Spacing between info blocks (space-y-8 = 32px) */
.ho-contact-page .wp-block-column:first-child h4.wp-block-heading:nth-of-type(2) {
    margin-top: 32px;
}

/* ── Form card — prototype: bg-slate-50 p-10 rounded-[40px] ────── */
.ho-contact-page .ho-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 40px;
    padding: 40px;
    box-shadow: none;
}

.ho-contact-page .ho-card:hover {
    border-color: #f1f5f9;
    box-shadow: none;
}

/* Hide the "Contact Form" title rendered by Gravity Forms block */
.ho-contact-form .gform_title,
.ho-contact-form .gform_heading {
    display: none !important;
}

/* Also hide form description if any */
.ho-contact-form .gform_description {
    display: none !important;
}

/* ── Override Gravity Forms orbital theme variables ──────────────── */
/* GF injects an inline <style> with ID-based specificity; we need
   ID + class to beat it:  #gform_wrapper_4.gform-theme  */
.ho-contact-page #gform_wrapper_4.gform-theme,
.ho-contact-page .gform_wrapper.gform-theme {
    --gf-radius: 12px;
    --gf-ctrl-border-color: #e2e8f0;
    --gf-ctrl-bg-color: #ffffff;
    --gf-color-in-ctrl: #ffffff;
    --gf-color-in-ctrl-contrast: #0f172a;
    --gf-ctrl-label-color-primary: #003366;
    --gf-ctrl-label-color-secondary: #003366;
    --gf-color-primary: #003366;
    --gf-color-out-ctrl-light: #e2e8f0;
    --gf-color-out-ctrl-dark: #003366;
    --gf-color-out-ctrl-dark-darker: #003366;
    --gf-ctrl-btn-font-size: 18px;
    --gf-ctrl-btn-size: 60px;
}

/* ── Field labels (via ho-contact-form) ──────────────────────────── */
.ho-contact-form .gfield_label,
.ho-contact-form .gform-field-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
}

/* Hide "(Required)" text */
.ho-contact-form .gfield_required {
    display: none !important;
}

/* ── Field spacing ──────────────────────────────────────────────── */
.ho-contact-form .gform_fields {
    gap: 24px;
}

/* Name + Email side by side (prototype: grid-cols-2 gap-6) */
.ho-contact-form .ho-field-name,
.ho-contact-form .ho-field-email {
    flex-basis: calc(50% - 12px) !important;
}

/* ── Shared input styling ───────────────────────────────────────── */
.ho-contact-form .ho-field-name input,
.ho-contact-form .ho-field-email input,
.ho-contact-form .ho-field-subject select,
.ho-contact-form .ho-field-message textarea {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    block-size: auto !important;
    height: auto !important;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #0f172a !important;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Message textarea height */
.ho-contact-form .ho-field-message textarea {
    min-height: 140px;
    resize: vertical;
}

/* Placeholders */
.ho-contact-form .ho-field-name input::placeholder,
.ho-contact-form .ho-field-email input::placeholder,
.ho-contact-form .ho-field-message textarea::placeholder {
    color: #94a3b8;
}

/* Focus state */
.ho-contact-form .ho-field-name input:focus,
.ho-contact-form .ho-field-email input:focus,
.ho-contact-form .ho-field-subject select:focus,
.ho-contact-form .ho-field-message textarea:focus {
    border-color: #003366 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08) !important;
    background: #ffffff !important;
}

/* Subject dropdown arrow */
.ho-contact-form .ho-field-subject select {
    appearance: none;
    -webkit-appearance: none;
    color: #0f172a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z' fill='%2394a3b8'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}

/* Ensure dropdown option text is visible */
.ho-contact-form .ho-field-subject select option {
    color: #0f172a;
    background: #ffffff;
}

/* ── Submit button — prototype: py-5 rounded-2xl font-black text-lg shadow-xl ── */
.ho-contact-form .gform_button,
.ho-contact-submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100% !important;
    background: #003366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 20px 32px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 20px 25px -5px rgba(0, 51, 102, 0.15),
                0 8px 10px -6px rgba(0, 51, 102, 0.1) !important;
    letter-spacing: 0.3px;
    margin-top: 8px;
    line-height: 1;
}

.ho-contact-form .gform_button:hover,
.ho-contact-submit:hover {
    background: #002244 !important;
    box-shadow: 0 25px 30px -5px rgba(0, 51, 102, 0.25),
                0 10px 12px -6px rgba(0, 51, 102, 0.2) !important;
    transform: translateY(-1px);
}

/* ── Privacy disclosure after form ──────────────────────────────── */
.ho-contact-form .gform_footer,
.ho-contact-form .gform_page_footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

.ho-contact-form .gform_footer::after,
.ho-contact-form .gform_page_footer::after {
    content: 'BY CLICKING SEND, YOU AGREE TO OUR PRIVACY POLICY.';
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 24px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 781px) {
    .ho-contact-page .main-side.page {
        padding: 32px 0 48px;
    }

    .ho-contact-page .wp-block-columns {
        flex-direction: column;
        gap: 32px;
    }

    .ho-contact-page .wp-block-columns > .wp-block-column:first-child,
    .ho-contact-page .wp-block-columns > .wp-block-column:last-child {
        flex-basis: 100% !important;
    }

    .ho-contact-page .ho-card {
        padding: 28px 24px;
        border-radius: 24px;
    }

    .ho-contact-page .entry-title,
    .ho-contact-page h1.wp-block-heading {
        font-size: 32px;
    }

    .ho-contact-page .wp-block-columns > .wp-block-column:first-child > p:first-of-type {
        font-size: 17px;
    }
}

/* ==========================================================================
   Reusable Card Utility — add class "ho-card" to any Gutenberg Group block
   ========================================================================== */

.ho-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ho-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Heading inside a card */
.ho-card h3,
.ho-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: #003366;
    margin-top: 0;
}

/* Stack cards vertically with consistent spacing (not inside columns) */
.ho-card + .ho-card:not(.wp-block-column) {
    margin-top: 24px;
}

/* Side-by-side cards via Columns block — equal width columns */
.wp-block-columns .wp-block-column.ho-card {
    flex-basis: 0;
    flex-grow: 1;
}

/* Nested card inside a column */
.wp-block-columns .wp-block-column .ho-card {
    height: 100%;
}

@media (max-width: 768px) {
    .ho-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
}

/* ==========================================================================
   Sidebar Widgets — Shared dark-card overrides
   Override ho-sidebar-card and ho-intel-sidebar__card wrapper styles
   so the dark navy background renders cleanly everywhere.
   ========================================================================== */

.ho-widget-sentiment,
.ho-widget-top-rated,
.ho-intel-sidebar__card.ho-widget-sentiment,
.ho-intel-sidebar__card.ho-widget-top-rated,
.ho-sidebar-card.ho-widget-sentiment,
.ho-sidebar-card.ho-widget-top-rated {
    background: #0a1f38 !important;
    border-radius: 20px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden;
}

/* ==========================================================================
   User Sentiment Aggregate Widget
   ========================================================================== */

.ho-sentiment-widget {
    padding: 28px;
    color: #ffffff;
}

.ho-sentiment-widget__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.ho-sentiment-widget__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.ho-sentiment-widget__row {
    margin-bottom: 24px;
}

.ho-sentiment-widget__row:last-of-type {
    margin-bottom: 28px;
}

.ho-sentiment-widget__row-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ho-sentiment-widget__cat-label {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.ho-sentiment-widget__cat-pct {
    font-size: 17px;
    font-weight: 700;
    color: #00A859;
}

.ho-sentiment-widget__bar-track {
    height: 10px;
    background: #1a3a5c;
    border-radius: 5px;
    overflow: hidden;
}

.ho-sentiment-widget__bar-fill {
    height: 100%;
    background: #00A859;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.ho-sentiment-widget__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.ho-sentiment-widget__count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.ho-sentiment-widget__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #00A859;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.ho-sentiment-widget__link:hover {
    color: #00d46e;
}

.ho-sentiment-widget__link--center {
    justify-content: center;
    width: 100%;
}

.ho-sentiment-widget__empty {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 16px 0;
    margin: 0 0 16px;
}

/* ==========================================================================
   Top Rated for Category Widget
   ========================================================================== */

.ho-top-rated-widget {
    padding: 28px;
    color: #ffffff;
}

.ho-top-rated-widget__title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px;
    font-family: 'Montserrat', sans-serif;
}

.ho-top-rated-widget__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ho-top-rated-widget__item:last-of-type {
    margin-bottom: 24px;
}

.ho-top-rated-widget__item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.ho-top-rated-widget__name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.ho-top-rated-widget__score {
    font-size: 17px;
    font-weight: 700;
    color: #00A859;
}

.ho-top-rated-widget__arrow {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    line-height: 1;
}

.ho-top-rated-widget__compare {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #00A859;
    text-decoration: none;
    transition: color 0.2s;
}

.ho-top-rated-widget__compare:hover {
    color: #00d46e;
}
