/* ==========================================================================
   CUSTOM.CSS - Per-Company Customization
   ==========================================================================
   This file is loaded AFTER style.css and overrides the default theme.
   Each company gets their own copy of this file.

   PALETTE:  Blue #2f459d  |  Red #ed2426  |  White #ffffff
     - Header                -> WHITE  #ffffff  (black text on top)
     - Top nav bar           -> BLUE   #2f459d  (white text, red hover)
     - Footer                -> WHITE  #ffffff  (black text on top)
     - Main accents (links, icons, borders, nav) -> BLUE
     - CTA buttons / badges                       -> RED (white text on red)
     - Prices                                     -> BLUE

   INSTRUCTIONS:
   - Change ONLY the :root variables below to customize colors
   - Add company-specific overrides in Section 2
   - DO NOT edit style.css - it is shared across all installations
   ========================================================================== */


/* ==========================================================================
   1. COLOR VARIABLES
   ========================================================================== */
:root {

    /* === PRESET: Blue #2f459d + Red #ed2426 === */
    --accent-color: #2f459d;
    --accent-color-dark: #24357a;
    --accent-color-light: #6c7dc0;
    --accent-color-mid: #3a53bd;

    /* -----------------------------------------------------------------
       SECONDARY / CTA COLOR  ->  RED
       ----------------------------------------------------------------- */
    --cta-color: #ed2426;
    --cta-color-dark: #c11a1c;
    --cta-color-light: #f4666a;

    /* -----------------------------------------------------------------
       HIGHLIGHT COLOR  ->  RED
       ----------------------------------------------------------------- */
    --highlight-color: #ed2426;
    --highlight-color-dark: #c11a1c;
    --highlight-color-light: #f4666a;

    /* -----------------------------------------------------------------
       ACCENT TRANSPARENT VARIANTS  (BLUE)
       ----------------------------------------------------------------- */
    --accent-glow-strong: rgba(47, 69, 157, 1);
    --accent-glow: rgba(47, 69, 157, 0.7);
    --accent-glow-soft: rgba(47, 69, 157, 0.45);
    --accent-glow-dim: rgba(47, 69, 157, 0.35);
    --accent-glow-faint: rgba(47, 69, 157, 0.08);
    --accent-bg-subtle: rgba(47, 69, 157, 0.12);
    --accent-bg-glass: rgba(36, 53, 122, 0.10);
    --accent-bg-radial: rgba(47, 69, 157, 0.15);
    --accent-border-subtle: rgba(47, 69, 157, 0.22);
    --accent-border-medium: rgba(47, 69, 157, 0.30);
    --accent-text-85: rgba(47, 69, 157, 0.85);
    --accent-text-70: rgba(47, 69, 157, 0.70);

    /* -----------------------------------------------------------------
       CTA TRANSPARENT VARIANTS  (RED)
       ----------------------------------------------------------------- */
    --cta-glow: rgba(237, 36, 38, 0.7);
    --cta-glow-soft: rgba(237, 36, 38, 0.45);
    --cta-bg-subtle: rgba(237, 36, 38, 0.12);
    --cta-border-medium: rgba(237, 36, 38, 0.30);

    /* -----------------------------------------------------------------
       ACTION BUTTONS
       NOTE: --success/--success-dark were GREEN (#10B981/#059669).
       Remapped to the palette so no green appears on hover states.
       ----------------------------------------------------------------- */
    --warning: #ed2426;
    --error: #ed2426;
    --success: #2f459d;
    --success-dark: #24357a;

    /* -----------------------------------------------------------------
       TOP NAVIGATION BAR  ->  BLUE
       ----------------------------------------------------------------- */
    --topbar-bg: #2f459d;
    --topbar-text: #ffffff;

    /* -----------------------------------------------------------------
       TEXT COLORS
       ----------------------------------------------------------------- */
    --text-color: #333;
    --text-muted: #6c757d;

    /* -----------------------------------------------------------------
       BACKGROUNDS
       ----------------------------------------------------------------- */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-bg: #24357a;

    /* -----------------------------------------------------------------
       BORDERS
       ----------------------------------------------------------------- */
    --border-color: #e2e8f0;

    /* -----------------------------------------------------------------
       FLATPICKR DATE PICKER
       ----------------------------------------------------------------- */
    --flatpickr-hover-bg: #2f459d;
    --flatpickr-hover-text: #ffffff;
}


/* ==========================================================================
   QUICK REFERENCE
   ==========================================================================
   BLUE    #2f459d  -> Top nav bar, links, icons, borders, focus, cards,
                       selected states
   D-BLUE  #24357a  -> Hover states on blue elements
   RED     #ed2426  -> CTA buttons (Book Now etc.), badges -- WHITE text
   D-RED   #c11a1c  -> Hover states on red elements
   WHITE   #ffffff  -> Header & Footer background
   BLACK   #000000  -> Header & Footer text
   ========================================================================== */


/* 1. Labels */
.ez-sf-field label {
    font-weight: 600 !important;
    font-size: 0.73rem !important;
}


/* ==========================================================================
   2. TOP NAV BAR (BLUE)  --  WHITE TEXT, RED HOVER
   ========================================================================== */
.topbar,
.top-bar,
.ez-topbar,
.ez-top-bar {
    background-color: #2f459d !important;
    color: #ffffff !important;
}
.topbar a,
.top-bar a,
.ez-topbar a,
.ez-top-bar a,
.topbar i,
.top-bar i,
.ez-topbar i,
.ez-top-bar i {
    color: #ffffff !important;
}
.topbar a:hover,
.top-bar a:hover,
.ez-topbar a:hover,
.ez-top-bar a:hover {
    color: #ed2426 !important;
}


/* ==========================================================================
   3. HEADER (WHITE)  &  FOOTER (WHITE)  -- BLACK TEXT
   ========================================================================== */

/* --- Header --- WHITE background --- */
header.bg-gray-950.text-gray-300.shadow-sm.sticky.top-0.z-50 {
    background-color: #ffffff;
}

/* --- Nav links --- BLACK on white, hover BLUE --- */
.ez-nav-link {
    color: #000000 !important;
}
.ez-nav-link:hover {
    color: #2f459d !important;
}

button#nav-toggle {
    color: #000000;
}

/* --- Mobile nav --- WHITE (matches header) --- */
@media (max-width: 1024px) {
    #nav-menu.nav-menu--open {
        background-color: #ffffff;
    }
}


/* --- Footer --- WHITE background --- */
footer.bg-gray-950.text-gray-300.py-12.relative.overflow-hidden.font-sans {
    background-color: #ffffff;
}
footer .text-custom-accent {
    color: #2f459d;
}
footer .border-custom-accent\/30 {
    border-color: rgba(47, 69, 157, 0.30);
}

/* --- Footer texts --- BLACK --- */
footer .footer-link-item {
    color: #000000;
}
footer .footer-link-item:hover {
    color: #2f459d;
}
p.flex.items-center.text-gray-400.hover\:text-custom-accent.transition {
    color: #000000;
}
p.flex.items-center.text-gray-400.hover\:text-custom-accent.transition:hover {
    color: #2f459d;
}
p.text-gray-400.text-base.max-w-sm.leading-relaxed.hover\:text-custom-accent {
    color: #000000;
}
.text-center.md\:text-center.space-y-0\.5.w-full.mt-4 {
    color: #000000;
}
footer .hover\:text-custom-accent {
    color: #000000;
}
footer .hover\:text-custom-accent:hover {
    color: #2f459d;
}

/* --- Footer headings --- BLACK --- */
h5.font-bold.text-white.mb-4.uppercase.tracking-widest.text-sm.border-b.border-custom-accent\/30.pb-2 {
    color: #000000;
}
h5.font-bold.text-white.mb-5.uppercase.tracking-widest.text-sm.border-b.border-custom-accent\/30.pb-2 {
    color: #000000;
}


/* ==========================================================================
   4. CTA BUTTONS  ->  RED   |   PRICES  ->  BLUE
   ========================================================================== */
.btn-primary,
.btn-cta,
.ez-btn-primary,
button[type="submit"] {
    background-color: #ed2426;
    border-color: #ed2426;
    color: #ffffff;
}
.btn-primary:hover,
.btn-cta:hover,
.ez-btn-primary:hover,
button[type="submit"]:hover {
    background-color: #c11a1c;
    border-color: #c11a1c;
    color: #ffffff !important;
}

/* --- Book Now / fleet CTA --- RED bg, WHITE text --- */
a[href*="book"].btn,
a[href*="booking"].btn,
.ez-book-btn,
.ez-btn-book-now,
.card .btn-primary,
.model-card .btn-primary,
.ez-fleet-card a,
.fleet .btn,
.fleet a.btn,
.fleet button,
.fleet-card .btn,
.ez-fleet-card .btn,
.model-card .btn,
.book-now,
.btn-book,
.btn-book-now,
.ez-book-now,
.ez-btn-book,
a.book-now {
    background-color: #ed2426 !important;
    border-color: #ed2426 !important;
    color: #ffffff !important;
}
.fleet .btn i,
.fleet-card .btn i,
.ez-fleet-card .btn i,
.model-card .btn i,
.book-now i,
.btn-book i,
.btn-book-now i,
.ez-book-now i,
.ez-btn-book i {
    color: #ffffff !important;
}
.fleet .btn:hover,
.fleet a.btn:hover,
.fleet button:hover,
.fleet-card .btn:hover,
.ez-fleet-card .btn:hover,
.model-card .btn:hover,
.book-now:hover,
.btn-book:hover,
.btn-book-now:hover,
.ez-book-now:hover,
.ez-btn-book:hover,
a.book-now:hover {
    background-color: #c11a1c !important;
    border-color: #c11a1c !important;
    color: #ffffff !important;
}

/* --- Prices --- BLUE --- */
.price,
.model-price,
.ez-price {
    color: #2f459d;
}


/* ==========================================================================
   5. FLEET / BOOK NOW BUTTONS  --  WHITE TEXT ON HOVER
   ========================================================================== */
.fleet .btn:hover,
.fleet a.btn:hover,
.fleet button:hover,
.fleet-card .btn:hover,
.ez-fleet-card .btn:hover,
.model-card .btn:hover,
.model-card a:hover,
.book-now:hover,
.btn-book:hover,
.btn-book-now:hover,
.ez-book-now:hover,
.ez-btn-book:hover,
a.book-now:hover {
    color: #ffffff !important;
}
.fleet .btn:hover i,
.fleet-card .btn:hover i,
.ez-fleet-card .btn:hover i,
.model-card .btn:hover i,
.book-now:hover i,
.btn-book:hover i,
.btn-book-now:hover i,
.ez-book-now:hover i,
.ez-btn-book:hover i {
    color: #ffffff !important;
}


/* ==========================================================================
   6. MISC ACCENTS
   ========================================================================== */
.model-spec-item:hover {
    border-color: #2f459d;
}
.model-includes-title i {
    color: #2f459d;
}

/* --- Form borders --- subtle GRAY --- */
.form-group input[type="text"], .form-group input[type="date"],
.form-group input[type="time"], .form-group select {
    border: 1px solid #c5c8c7;
}

/* --- Form focus --- BLUE --- */
.form-group input[type="text"]:focus, .form-group input[type="date"]:focus,
.form-group input[type="time"]:focus, .form-group select:focus {
    border-color: #2f459d;
    outline: none;
}

/* --- Form field icons --- */
.mf-field label i {
    color: #2f459d !important;
}
.model-spec-icon {
    color: #9f9b9b;
}


/* ==========================================================================
   7. NO-GREEN HOVER OVERRIDES
   ========================================================================== */

/* --- Generic link hover --- BLUE --- */
a:hover {
    color: #2f459d;
}

/* --- Success / green-ish buttons --- BLUE --- */
.btn-success,
.ez-btn-success,
.btn-secondary {
    background-color: #2f459d;
    border-color: #2f459d;
    color: #ffffff;
}
.btn-success:hover,
.ez-btn-success:hover,
.btn-secondary:hover {
    background-color: #24357a;
    border-color: #24357a;
    color: #ffffff;
}

/* --- Outline / ghost buttons --- BLUE on hover --- */
.btn-outline:hover,
.ez-btn-outline:hover {
    background-color: #2f459d;
    border-color: #2f459d;
    color: #ffffff;
}

/* --- Cards / list items --- BLUE border on hover --- */
.card:hover,
.model-card:hover,
.ez-card:hover {
    border-color: #2f459d;
}

/* --- Icons --- BLUE on hover --- */
a:hover i,
.icon:hover,
.ez-icon:hover {
    color: #2f459d;
}

/* --- Badges / tags --- RED --- */
.badge-success,
.tag-success {
    background-color: #ed2426;
    color: #ffffff;
}

/* --- Flatpickr selected/hover --- BLUE --- */
.flatpickr-day:hover,
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #2f459d;
    border-color: #2f459d;
    color: #ffffff;
}

/* --- Dropdown / select option hover --- BLUE --- */
option:checked,
option:hover,
.select-option:hover {
    background-color: #2f459d;
    color: #ffffff;
}


/* ==========================================================================
   8. BOX-SHADOW  --  NO GREEN
   ========================================================================== */

/* --- Buttons --- BLUE glow --- */
.btn:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-outline:hover,
.ez-btn-success:hover,
.ez-btn-outline:hover {
    box-shadow: 0 4px 14px rgba(47, 69, 157, 0.35);
}

/* --- CTA (red) buttons keep an RED glow --- */
.btn-cta:hover,
.btn-primary:hover,
.ez-btn-primary:hover,
button[type="submit"]:hover {
    box-shadow: 0 4px 14px rgba(237, 36, 38, 0.35);
}

/* --- Focus rings on inputs --- BLUE --- */
.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group select:focus,
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(47, 69, 157, 0.20);
}

/* --- Cards / panels --- NEUTRAL gray shadow --- */
.card,
.model-card,
.ez-card,
.panel {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.card:hover,
.model-card:hover,
.ez-card:hover,
.panel:hover {
    box-shadow: 0 6px 18px rgba(47, 69, 157, 0.18);
}

/* --- Selected / active states --- no glow --- */
.selected,
.is-active,
.active {
    box-shadow: 0 0 0 2px rgba(47, 69, 157, 0) !important;
}

/* --- Badges / tags --- no colored glow --- */
.badge,
.badge-success,
.tag,
.tag-success {
    box-shadow: none;
}

/* --- Flatpickr --- */
.flatpickr-day.selected,
.flatpickr-day:hover {
    box-shadow: none;
}
.flatpickr-calendar {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}


/* ==========================================================================
   9. BOOKING FORM BUTTON  --  TARGETED OVERRIDE  (RED CTA)
   ========================================================================== */

.booking-form button {
    background-color: #ed2426 !important;
    border-color: #ed2426 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(237, 36, 38, 0.30) !important;
}

.booking-form button:hover {
    background-color: #c11a1c !important;
    border-color: #c11a1c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(237, 36, 38, 0.40) !important;
}

.booking-form button:focus,
.booking-form button:focus-visible {
    box-shadow: 0 0 0 3px rgba(237, 36, 38, 0.30) !important;
    outline: none !important;
}

.booking-form button:active {
    background-color: #961416 !important;
    box-shadow: 0 1px 4px rgba(237, 36, 38, 0.30) !important;
}


/* ==========================================================================
   10. INSURANCE / PRICE CARDS  --  NO GREEN
   ========================================================================== */

.ez-ins-card:hover {
    border-color: #2f459d !important;
    box-shadow: 0 6px 18px rgba(47, 69, 157, 0.18) !important;
}

.ez-ins-card:hover i,
.ez-ins-card:hover .ez-ins-title,
.ez-ins-card:hover a {
    color: #2f459d !important;
}

.ez-price-card--selected {
    background-color: rgba(237, 36, 38, 0.12) !important;
    border-color: #ed2426 !important;
}

.border-green-500 {
    border-color: #ed2426 !important;
}

.affiliateNextBtn {
    box-shadow: 0 6px 15px rgba(47, 69, 157, 0.14);
}
.affiliateNextBtn:hover {
    box-shadow: 0 10px 20px rgba(47, 69, 157, 0) !important;
}



.ez-accent-link:hover
 {
    color: #24357a;
}


/* ==========================================================================
   11. FLEET PAGE (car.fleet.php)  --  BOOK NOW  ->  RED #ed2426
   ========================================================================== */

.ez-fleet-book-btn {
    background: #ed2426 !important;
    background-color: #ed2426 !important;
    background-image: linear-gradient(135deg, #ed2426 0%, #f4666a 100%) !important;
    border-color: #ed2426 !important;
}
.ez-fleet-book-btn,
.ez-fleet-book-btn *,
.ez-fleet-book-btn i,
.ez-fleet-book-btn span,
.ez-fleet-book-btn:visited,
.ez-fleet-book-btn:focus,
.ez-fleet-book-btn:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.ez-fleet-book-btn:hover {
    background: #c11a1c !important;
    background-color: #c11a1c !important;
    background-image: linear-gradient(135deg, #c11a1c 0%, #ed2426 100%) !important;
    border-color: #c11a1c !important;
}
.ez-fleet-book-btn:hover,
.ez-fleet-book-btn:hover *,
.ez-fleet-book-btn:hover i,
.ez-fleet-book-btn:hover span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* ==========================================================================
   12. POLISH  --  smooth, consistent, uniform
   ========================================================================== */

/* --- One transition curve everywhere --- */
a, button, .btn, .card, .model-card, .ez-card, .ez-ins-card,
.ez-fleet-book-btn, input, select, textarea, .badge, .tag {
    transition: background-color .22s ease, border-color .22s ease,
                color .22s ease, box-shadow .22s ease, transform .22s ease;
}

/* --- CTA lift on hover --- */
.btn-primary:hover,
.btn-cta:hover,
.ez-btn-primary:hover,
.ez-fleet-book-btn:hover,
.booking-form button:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
}
.btn-primary:active,
.btn-cta:active,
.ez-fleet-book-btn:active,
.booking-form button:active {
    transform: translateY(0);
}

/* --- Animated nav underline (navy) --- */
.ez-nav-link {
    position: relative;
}
.ez-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #2f459d;
    transition: width .25s ease;
}
.ez-nav-link:hover::after {
    width: 100%;
}

/* --- Cards: silver border, navy lift --- */
.card,
.model-card,
.ez-card,
.ez-ins-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

/* --- Pill badges --- */
.badge,
.tag,
.badge-success,
.tag-success {
    border-radius: 999px;
    padding: .25em .75em;
    font-weight: 600;
}

/* --- Inputs: silver border, navy focus glow --- */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
input, textarea, select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* --- Buttons: consistent radius --- */
.btn, button, .ez-fleet-book-btn, .booking-form button {
    border-radius: 8px;
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    a, button, .btn, .card, .model-card, .ez-card, .ez-ins-card,
    .ez-fleet-book-btn, input, select, textarea, .badge, .tag,
    .ez-nav-link::after {
        transition: none !important;
    }
    .btn-primary:hover,
    .btn-cta:hover,
    .ez-btn-primary:hover,
    .ez-fleet-book-btn:hover,
    .booking-form button:hover,
    button[type="submit"]:hover {
        transform: none !important;
    }
}