/* Styles for post-listing: moved out of the template inline <style> block(s). */

    /* Hide Bootstrap default dropdown arrow (::after) for location dropdowns in all form views */
    #venturesFormView .dropdown-toggle::after,
    #housingFormView .dropdown-toggle::after,
    #farmlandFormView .dropdown-toggle::after,
    #rentalsFormView .dropdown-toggle::after,
    #shopsFormView .dropdown-toggle::after,
    #hostelsFormView .dropdown-toggle::after,
    #hotelsFormView .dropdown-toggle::after,
    #resortsFormView .dropdown-toggle::after,
    #servicesFormView .dropdown-toggle::after,
    #resaleFormView .dropdown-toggle::after,
    #localAgentsFormView .dropdown-toggle::after,
    #loanAssistanceFormView .dropdown-toggle::after,
    #legalSupportFormView .dropdown-toggle::after,
    #liveCamFormView .dropdown-toggle::after {
        display: none !important;
    }
    
    /* Additional page-specific styles */
    .listing-option-card:hover {
        border-color: #0366d6 !important;
        background: #f6f8fa !important;
        box-shadow: 0 4px 12px rgba(3, 102, 214, 0.15) !important;
        transform: translateY(-2px) !important;
    }
    
    .listing-option-card:hover .option-icon {
        transform: scale(1.1) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    }
    
    .listing-option-card:hover h3 {
        color: #0366d6 !important;
    }
    
    .feature-card:hover {
        border-color: #c6cbd1 !important;
        background: #fafbfc !important;
    }
    
    .feature-card:hover .feature-icon-wrapper {
        background: #e1e4e8 !important;
        color: #0366d6 !important;
    }
    
    @keyframes starPulse {
        0%, 100% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.1);
            opacity: 0.8;
        }
    }
    
    /* Desktop/Web - Professional Header Layout */
    @media (min-width: 769px) {
        .post-listing-page-header {
            padding: 32px 28px !important;
            margin-bottom: 28px !important;
        }
        
        .post-listing-header-content {
            justify-content: flex-start !important;
            gap: 18px !important;
        }
        
        .post-listing-header-text {
            text-align: left !important;
        }
        
        .post-listing-page-header h1 {
            font-size: 26px !important;
            font-weight: 600 !important;
            margin: 0 0 6px !important;
        }
        
        .post-listing-page-header p {
            font-size: 14px !important;
        }
        
        .post-listing-logo {
            width: 56px !important;
            height: 56px !important;
        }
    }
    
    @media (max-width: 768px) {
        .listing-options {
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
            gap: 16px !important;
        }
        
        .features-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 16px !important;
        }
        
        .post-listing-page-header h1 {
            font-size: 22px !important;
        }
        
        .post-listing-body {
            padding: 24px !important;
        }
    }
    
    @media (max-width: 576px) {
        .listing-options {
            grid-template-columns: repeat(2, 1fr) !important;
        }
        
        .features-grid {
            grid-template-columns: 1fr !important;
        }
    }
    
    /* ===== PROFESSIONAL FORM STYLING ===== */
    .ventures-listing-form,
    .housing-listing-form,
    .farmland-listing-form,
    .rentals-listing-form,
    .shops-listing-form,
    .hostels-listing-form,
    .hotels-listing-form,
    .resorts-listing-form,
    .services-listing-form,
    .resale-listing-form,
    .localAgents-listing-form,
    .loanAssistance-listing-form,
    .legalSupport-listing-form,
    .liveCam-listing-form {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .form-header {
        margin-bottom: 24px;
        padding-bottom: 18px;
        border-bottom: 1px solid #e1e4e8;
    }
    
    .form-title-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    /* Removed form-page-number - single page form */
    
    .back-to-categories-btn {
        background: #f6f8fa;
        border: 1px solid #d1d5da;
        border-radius: 0;
        padding: 10px 20px;
        color: #24292e;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 24px;
        box-shadow: none;
    }
    
    .back-to-categories-btn:hover {
        background: #e1e4e8;
        border-color: #c6cbd1;
        color: #0366d6;
    }
    
    .form-title {
        font-size: 24px;
        font-weight: 600;
        color: #24292e;
        margin: 0;
    }
    
    .form-subtitle {
        font-size: 14px;
        color: #586069;
        margin: 8px 0 0 0;
        font-weight: 400;
    }
    
    /* Removed form-step pagination - all fields on one page */
    
    .form-section {
        margin-bottom: 28px;
        padding: 24px 22px;
        background: #fafbfc;
        border-radius: 0;
        border: 1px solid #e1e4e8;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
    }
    
    .form-section:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        border-color: #d1d9e0;
        background: #ffffff;
    }
    
    .form-section:last-child {
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 16px;
        font-weight: 600;
        color: #24292e;
        margin: 0 0 20px;
        padding: 12px 16px;
        background: #f6f8fa;
        border-radius: 0;
        border-left: 3px solid #0366d6;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: none;
    }
    
    .section-title i {
        color: #586069;
        font-size: 16px;
    }
    
    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 18px;
        align-items: start;
    }
    
    .form-group.full-width {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Better spacing for form sections */
    .form-section .form-grid {
        margin-top: 8px;
    }
    
    /* Remove any pagination elements from loaded forms */
    .form-step {
        display: block !important;
    }
    
    .btn-prev,
    .btn-next {
        display: none !important;
    }
    
    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: #586069;
        margin-bottom: 8px;
        letter-spacing: 0;
        line-height: 1.4;
    }
    
    .form-group label.required::after {
        content: ' *';
        color: #d73a49;
        font-weight: 600;
    }
    
    .form-control {
        width: 100%;
        padding: 7px 11px !important;
        font-size: 14px !important;
        border: 1px solid #d1d5da !important;
        border-radius: 0 !important;
        transition: all 0.2s ease;
        background: #ffffff !important;
        color: #24292e !important;
        box-shadow: none !important;
        font-weight: 400;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        line-height: 1.4 !important;
        box-sizing: border-box !important;
    }
    
    /* Specific styling for location fields - State, District, Mandal, Pincode, Latitude, Longitude */
    input[type="text"].form-control,
    input[type="number"].form-control,
    input[type="tel"].form-control,
    input[type="email"].form-control {
        padding: 7px 11px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
    
    .form-control:hover {
        border-color: #c6cbd1;
        background: #fafbfc;
    }
    
    .form-control:focus {
        outline: none;
        border-color: #0366d6;
        box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
        background: #ffffff;
    }
    
    textarea.form-control {
        resize: vertical;
        min-height: 75px;
        font-family: inherit;
        line-height: 1.5;
        padding: 7px 11px !important;
        height: auto !important;
        min-height: 75px !important;
    }
    
    select.form-control {
        cursor: pointer;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23586069' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        padding-right: 30px !important;
        background-color: #ffffff !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
    
    select.form-control:hover {
        background-color: #fafbfc;
    }
    
    select.form-control:focus {
        background-color: #ffffff;
    }
    
    /* CRITICAL: Force compact size for ALL location fields across ALL categories */
    #venturesFormView input[name="state"],
    #venturesFormView input[name="district"],
    #venturesFormView input[name="mandal"],
    #venturesFormView input[name="pincode"],
    #venturesFormView input[name="latitude"],
    #venturesFormView input[name="longitude"],
    #venturesFormView select[name="state"],
    #venturesFormView select[name="district"],
    #venturesFormView select[name="mandal"],
    #housingFormView input[name="state"],
    #housingFormView input[name="district"],
    #housingFormView input[name="mandal"],
    #housingFormView input[name="pincode"],
    #housingFormView input[name="latitude"],
    #housingFormView input[name="longitude"],
    #housingFormView select[name="state"],
    #housingFormView select[name="district"],
    #housingFormView select[name="mandal"],
    #farmlandFormView input[name="state"],
    #farmlandFormView input[name="district"],
    #farmlandFormView input[name="mandal"],
    #farmlandFormView input[name="pincode"],
    #farmlandFormView input[name="latitude"],
    #farmlandFormView input[name="longitude"],
    #farmlandFormView select[name="state"],
    #farmlandFormView select[name="district"],
    #farmlandFormView select[name="mandal"],
    #rentalsFormView input[name="state"],
    #rentalsFormView input[name="district"],
    #rentalsFormView input[name="mandal"],
    #rentalsFormView input[name="pincode"],
    #rentalsFormView input[name="latitude"],
    #rentalsFormView input[name="longitude"],
    #rentalsFormView select[name="state"],
    #rentalsFormView select[name="district"],
    #rentalsFormView select[name="mandal"],
    #shopsFormView input[name="state"],
    #shopsFormView input[name="district"],
    #shopsFormView input[name="mandal"],
    #shopsFormView input[name="pincode"],
    #shopsFormView input[name="latitude"],
    #shopsFormView input[name="longitude"],
    #shopsFormView select[name="state"],
    #shopsFormView select[name="district"],
    #shopsFormView select[name="mandal"],
    #hostelsFormView input[name="state"],
    #hostelsFormView input[name="district"],
    #hostelsFormView input[name="mandal"],
    #hostelsFormView input[name="pincode"],
    #hostelsFormView input[name="latitude"],
    #hostelsFormView input[name="longitude"],
    #hostelsFormView select[name="state"],
    #hostelsFormView select[name="district"],
    #hostelsFormView select[name="mandal"],
    #hotelsFormView input[name="state"],
    #hotelsFormView input[name="district"],
    #hotelsFormView input[name="mandal"],
    #hotelsFormView input[name="pincode"],
    #hotelsFormView input[name="latitude"],
    #hotelsFormView input[name="longitude"],
    #hotelsFormView select[name="state"],
    #hotelsFormView select[name="district"],
    #hotelsFormView select[name="mandal"],
    #resortsFormView input[name="state"],
    #resortsFormView input[name="district"],
    #resortsFormView input[name="mandal"],
    #resortsFormView input[name="pincode"],
    #resortsFormView input[name="latitude"],
    #resortsFormView input[name="longitude"],
    #resortsFormView select[name="state"],
    #resortsFormView select[name="district"],
    #resortsFormView select[name="mandal"],
    #servicesFormView input[name="state"],
    #servicesFormView input[name="district"],
    #servicesFormView input[name="mandal"],
    #servicesFormView input[name="pincode"],
    #servicesFormView input[name="latitude"],
    #servicesFormView input[name="longitude"],
    #servicesFormView select[name="state"],
    #servicesFormView select[name="district"],
    #servicesFormView select[name="mandal"],
    #resaleFormView input[name="state"],
    #resaleFormView input[name="district"],
    #resaleFormView input[name="mandal"],
    #resaleFormView input[name="pincode"],
    #resaleFormView input[name="latitude"],
    #resaleFormView input[name="longitude"],
    #resaleFormView select[name="state"],
    #resaleFormView select[name="district"],
    #resaleFormView select[name="mandal"],
    #localAgentsFormView input[name="state"],
    #localAgentsFormView input[name="district"],
    #localAgentsFormView input[name="mandal"],
    #localAgentsFormView input[name="pincode"],
    #localAgentsFormView input[name="latitude"],
    #localAgentsFormView input[name="longitude"],
    #localAgentsFormView select[name="state"],
    #localAgentsFormView select[name="district"],
    #localAgentsFormView select[name="mandal"],
    #loanAssistanceFormView input[name="state"],
    #loanAssistanceFormView input[name="district"],
    #loanAssistanceFormView input[name="mandal"],
    #loanAssistanceFormView input[name="pincode"],
    #loanAssistanceFormView input[name="latitude"],
    #loanAssistanceFormView input[name="longitude"],
    #loanAssistanceFormView select[name="state"],
    #loanAssistanceFormView select[name="district"],
    #loanAssistanceFormView select[name="mandal"],
    #legalSupportFormView input[name="state"],
    #legalSupportFormView input[name="district"],
    #legalSupportFormView input[name="mandal"],
    #legalSupportFormView input[name="pincode"],
    #legalSupportFormView input[name="latitude"],
    #legalSupportFormView input[name="longitude"],
    #legalSupportFormView select[name="state"],
    #legalSupportFormView select[name="district"],
    #legalSupportFormView select[name="mandal"],
    #liveCamFormView input[name="state"],
    #liveCamFormView input[name="district"],
    #liveCamFormView input[name="mandal"],
    #liveCamFormView input[name="pincode"],
    #liveCamFormView input[name="latitude"],
    #liveCamFormView input[name="longitude"],
    #liveCamFormView select[name="state"],
    #liveCamFormView select[name="district"],
    #liveCamFormView select[name="mandal"] {
        padding: 7px 11px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        font-size: 14px !important;
        border: 1px solid #d1d5da !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        line-height: 1.4 !important;
    }
    
    .btn-get-location {
        background: #f6f8fa;
        color: #24292e;
        border: 1px solid #d1d5da;
        border-radius: 0;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-get-location:hover {
        background: #e1e4e8;
        border-color: #c6cbd1;
        color: #0366d6;
    }
    
    .form-navigation {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #e1e4e8;
        gap: 12px;
    }
    
    .btn-submit {
        padding: 12px 32px;
        font-size: 14px;
        font-weight: 500;
        border: 1px solid #28a745;
        border-radius: 0;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #28a745;
        color: #ffffff;
        box-shadow: none;
        text-transform: none;
        letter-spacing: 0;
        min-width: 180px;
        justify-content: center;
    }
    
    .btn-submit:hover {
        background: #22863a;
        border-color: #22863a;
        color: #ffffff;
    }
    
    .btn-submit:active {
        background: #1e7e34;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    @media (max-width: 768px) {
        .post-listing-page-content {
            max-width: 100% !important;
            margin: 0 !important;
            border-radius: 0 !important;
            border-left: none !important;
            border-right: none !important;
        }
        
        .post-listing-page-header {
            max-width: 100% !important;
            border-left: none !important;
            border-right: none !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        
        .post-listing-body {
            padding: 20px 16px !important;
        }
        
        .form-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }
        
        .form-section {
            padding: 16px 14px;
            margin-bottom: 18px;
        }
        
        .section-title {
            font-size: 15px;
            padding: 10px 14px;
            margin-bottom: 16px;
        }
        
        .form-grid {
            gap: 14px;
        }
        
        .form-group {
            margin-bottom: 14px;
        }
        
        .form-navigation {
            flex-direction: column;
            margin-top: 24px;
            padding-top: 20px;
        }
        
        .btn-submit {
            width: 100%;
            justify-content: center;
            padding: 12px 24px;
            font-size: 14px;
        }
        
        .form-control {
            padding: 7px 11px !important;
            font-size: 14px !important;
            height: 36px !important;
            min-height: 36px !important;
            max-height: 36px !important;
        }
        
        input[type="text"].form-control,
        input[type="number"].form-control,
        input[type="tel"].form-control,
        input[type="email"].form-control {
            padding: 7px 11px !important;
            height: 36px !important;
            min-height: 36px !important;
            max-height: 36px !important;
        }
        
        select.form-control {
            padding-right: 30px !important;
            height: 36px !important;
            min-height: 36px !important;
            max-height: 36px !important;
        }
        
        textarea.form-control {
            min-height: 75px !important;
            padding: 7px 11px !important;
            height: auto !important;
        }
        
        /* Location fields - State, District, Mandal, Pincode, Latitude, Longitude */
        input[name="state"],
        input[name="district"],
        input[name="mandal"],
        input[name="pincode"],
        input[name="latitude"],
        input[name="longitude"],
        select[name="state"],
        select[name="district"],
        select[name="mandal"] {
            padding: 7px 11px !important;
            height: 36px !important;
            min-height: 36px !important;
            max-height: 36px !important;
            font-size: 14px !important;
        }
        
        .form-title {
            font-size: 20px;
        }
        
        .form-subtitle {
            font-size: 13px;
        }
        
        .back-to-categories-btn {
            padding: 8px 16px;
            font-size: 13px;
            margin-bottom: 20px;
        }
    }
    
    @media (min-width: 769px) and (max-width: 1200px) {
        .post-listing-page-content {
            max-width: 850px !important;
        }
    }

                    
                        #${stateDropdownId}::after { display: none !important; }
                    

                    
                        #${districtDropdownId}::after { display: none !important; }
                    

                    
                        #${mandalDropdownId}::after { display: none !important; }
                    
