/* ========================================
   FRESH LEAD WIZARD FORM
   ======================================== */

/* Container */
.lead-wizard {
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Bar */
.wizard-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.wizard-progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 30px;
}

/* Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 25px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-card {
    padding: 20px 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.category-card:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.category-card.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.category-icon {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 10px;
}

.category-card.selected .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.category-card.selected .category-name {
    color: #007bff;
}

/* Navigation Buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.wizard-nav .btn {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-nav .btn-secondary {
    background: #6c757d;
    color: #fff;
}

.wizard-nav .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.wizard-nav .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    flex: 1;
}

.wizard-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.wizard-nav .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    flex: 1;
}

.wizard-nav .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.wizard-nav .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 25px;
}

/* Modal Adjustments */
#leadWizardModal .lead-wizard {
    padding: 20px;
}

#leadWizardModal .modal-content {
    border-radius: 20px;
}

#leadWizardModal .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* CTA Section */
.cta-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.cta-container:hover {
    transform: translateY(-5px);
}

.cta-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4) !important;
}

/* Responsive */
@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-nav {
        flex-direction: column;
    }

    .wizard-nav .btn {
        width: 100%;
    }
}

/* Professional Step Badges */
.step-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary, #007bff) 0%, var(--color-primary, #0056b3) 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.step-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 16px;
}

/* Enhanced Progress Indicators with Icons */
.wizard-step-indicator i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.wizard-step-indicator.active i {
    transform: scale(1.2);
}

.wizard-step-indicator.completed i::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Enhanced Form Controls */
.wizard-container input.form-control:focus,
.wizard-container textarea.form-control:focus,
.wizard-container select.form-control:focus {
    border-color: var(--color-primary, #007bff);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.wizard-container .form-control::placeholder {
    color: #999;
    font-style: italic;
}

/* Label Icons */
.wizard-container .form-label i {
    font-size: 14px;
    opacity: 0.8;
}

/* Security/Info Text */
.wizard-container small {
    display: block;
    margin-top: 6px;
}

.wizard-container small i {
    font-size: 11px;
}

.filter-chips-container {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.filter-chips-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.filter-chip {
    flex: 0 0 auto;
    padding: 8px 16px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--color-primary);
    color: #fff !important;
    border-color: var(--color-primary);
}

.filter-chip i {
    margin-right: 5px;
}

.ticker-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.ticker-item strong {
    color: var(--color-primary);
}

.ticker-item i {
    color: #ff9500;
    margin-right: 5px;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.ticker-content:hover {
    animation-play-state: paused;
}

:root {
    --color-primary: #007bff;
    --color-primary-hover: #0056b3;
    --color-red: #ff3b30;
    --color-orange: #ff9500;
    --color-green: #34c759;
    --color-purple: #af52de;
    --color-cyan: #5ac8fa;
    --color-pink: #ff2d55;
    --ring-offset-width: 0px;
    --ring-width: 3px;
    --ring-color: rgba(0, 123, 255, 0.4);
    --color-indigo: #5856d6;
    --color-dark: #333;
    --color-gray-light: #f8f9fa;
    --color-border: #e0e0e0;
}

/* Nav Search Ring Effects */
.nav-input-group {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border-radius: 8px;
}

.nav-input-group:focus-within {
    box-shadow: 0 0 0 var(--ring-width) var(--ring-color);
    border-color: var(--color-primary);
    z-index: 10;
}

.nav-input-group .form-control:focus {
    box-shadow: none !important;
}

/* ========================================
   1. MAIN NAVBAR (Modern-Style)
   ======================================== */

.modern-main-navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.modern-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px;
    gap: 15px;
    flex-wrap: nowrap;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .modern-navbar-content {
        padding: 12px 40px;
        gap: 20px;
    }
}

/* Logo */
.modern-logo {
    flex-shrink: 0;
    margin-right: 15px;
}

.modern-logo img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Navbar Search Bar */
.modern-search-bar {
    flex: 2;
    max-width: 1200px;
    min-width: 300px;
    /* Updated from 400px per user request */
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    overflow: visible;
    transition: all 0.3s ease;
    width: 100%;
    height: 48px;
}

.search-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input,
.location-input {
    border: none;
    height: 100%;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-input {
    flex: 1 1 60%;
    padding: 0 15px;
}

.location-search-group {
    display: flex;
    align-items: center;
    flex: 1 1 40%;
    height: 100%;
}

.location-icon {
    color: #ff6b6b;
    font-size: 16px;
    padding-left: 5px;
    padding-right: 5px;
    flex-shrink: 0;
}

.location-input {
    flex: 1;
    padding: 0;
}

.search-divider {
    width: 1px;
    height: 30px;
    background: #ddd;
    flex-shrink: 0;
}

.gps-location-btn,
.search-submit-btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gps-location-btn {
    background: transparent;
    border-left: 1px solid #eee;
    color: #666;
    font-size: 16px;
}

.gps-location-btn:hover {
    color: var(--color-primary-hover);
    background: #f0f7ff;
}

.search-submit-btn {
    background: var(--color-primary);
    color: white;
    font-size: 16px;
}

.search-submit-btn:hover {
    background: var(--color-primary-hover);
}

/* Action Buttons */
.modern-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced from 25px per user request */
    flex-shrink: 0;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.action-link:hover {
    color: var(--color-primary);
}

.action-link.free-listing {
    padding-right: 65px;
}

.badge-business {
    position: absolute;
    top: -8px;
    right: 0;
    background: #dc3545;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Login Button */
.btn-login {
    background: var(--color-primary);
    color: white !important;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* ========================================
   2. HOMEPAGE BANNER SEARCH
   ======================================== */

.banner-search-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    min-height: 80px;
    position: relative;
    z-index: 10;
}

/* ========================================
   5. WHATSAPP STICKY BUTTON (Mobile)
   ======================================== */
.whatsapp-sticky-btn {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.whatsapp-sticky-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-sticky-btn i {
    margin-top: 2px;
}

/* Pulse Animation */
.whatsapp-sticky-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-whatsapp 2s infinite;
    opacity: 0.7;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (min-width: 768px) {
    .whatsapp-sticky-btn {
        display: none !important;
    }
}

/* Hero Slider Styles */
.hero-banner-3 {
    position: relative;
    overflow: hidden;
    min-height: 650px !important;
    height: 650px !important;
    background: #000;
    z-index: 1;
}

.hero-banner-3 .home-slider,
.hero-banner-3 .swiper-container,
.hero-banner-3 .swiper-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
}

.hero-banner-3 .home-slider {
    z-index: 1;
}

.hero-banner-3 .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-banner-3 .container-content {
    position: relative;
    z-index: 50 !important;
    padding-top: 180px;
    padding-bottom: 100px;
}

.hero-banner-3 .container-content * {
    pointer-events: auto;
}

.hero-banner-3 .content,
.hero-banner-3 .banner-search-wrapper {
    position: relative;
    z-index: 51 !important;
}

.hero-banner-3 .swiper-pagination {
    bottom: 30px !important;
    z-index: 15;
}

.hero-banner-3 .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.6;
    width: 12px;
    height: 12px;
}

.hero-banner-3 .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary) !important;
}

.hero-banner-3 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

.hero-banner-3 .hero-slider-img,
.hero-banner-3 .bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.banner-filter-form .form-wrapper {
    background: #fff;
    border-radius: 60px !important;
    padding: 8px 10px 8px 25px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.banner-search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    overflow: visible;
    transition: all 0.3s ease;
    width: 100%;
}

.banner-search-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.banner-search-input,
.banner-location-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.banner-gps-btn {
    background: transparent;
    border: none;
    border-left: 1px solid var(--color-border);
    padding: 0 15px;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 18px;
    flex-shrink: 0;
}

#searchBtn2 {
    border-radius: 50px !important;
    height: 40px;
    /* User set to 40px from 54px */
    padding: 0 35px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    border: none !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

#searchBtn2:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 94, 98, 0.4);
}

/* ========================================
   3. RESPONSIVE BREAKPOINTS (Tablets/Mobile)
   ======================================== */

/* Hidden elements at 768px+ (Tablet & Desktop) */
@media (min-width: 768px) {

    .main-responsive-nav,
    .mobile-menu,
    .mobile-search-bar,
    .mobile-only-sections {
        display: none !important;
    }

    .modern-main-navbar,
    .main-navbar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Hide menu items on medium tablets (768px - 980px) to save space per User Request */
@media (min-width: 768px) and (max-width: 980px) {

    .desktop-only,
    .navbar-collapse {
        display: none !important;
    }
}

/* Show menu items on large tablets/desktop (981px+) */
@media (min-width: 981px) {

    .desktop-only,
    .navbar-collapse {
        display: flex !important;
    }
}

/* Hide Leads/Advertise below 1200px (Only show on full desktop) */
@media (max-width: 1199px) {

    .leads-link,
    .advertise-link {
        display: none !important;
    }
}

/* Mobile Overrides (Max 767px) */
@media (max-width: 767px) {
    .modern-main-navbar {
        display: none !important;
    }

    .modern-action-buttons .action-link:not(.free-listing) {
        display: none !important;
    }

    .banner-search-input-wrapper {
        flex-direction: column !important;
        gap: 10px;
        background: transparent !important;
        border: none !important;
    }

    .banner-search-input-group,
    .banner-location-group,
    .banner-category-group {
        width: 100% !important;
        background: var(--color-gray-light) !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        min-height: 54px !important;
    }
}

/* ========================================
   4. STICKY MODES
   ======================================== */

body.search-sticky-mode .modern-main-navbar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    animation: slideDown 0.3s ease-out;
}

body.search-sticky-mode .modern-logo,
body.search-sticky-mode .desktop-only,
body.search-sticky-mode .modern-action-buttons,
body.search-sticky-mode .modern-location-selector {
    display: none !important;
}

body.search-sticky-mode .modern-search-bar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    flex: 0 0 100%;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Mobile Specific Enhancements for AI Features */
@media (max-width: 480px) {
    .banner-search-input-group {
        padding: 5px 10px !important;
    }

    .banner-search-input {
        font-size: 13px !important;
    }

    #ai-magic-btn {
        padding: 5px !important;
    }

    .listing-card-v2 .card-body {
        padding: 10px !important;
    }

    .listing-card-v2 .btn-sm {
        font-size: 11px !important;
        padding: 8px 5px !important;
    }

    .listing-card-v2 h6 {
        font-size: 14px !important;
    }

    .wizard-container {
        padding: 15px;
        margin: 10px;
    }
}

/* Ensure Navbar Location Dropdown is Visible */
.nav-input-group {
    overflow: visible !important;
    position: relative;
}

/* Ensure Banner Location Dropdown is Visible */
.banner-location-group {
    overflow: visible !important;
    position: relative;
    z-index: 1000;
}

.full-width {
    width: 100% !important;
}