 
        body {
            font-family: Arial, sans-serif;
            background-color: #d1e9ff;
            color: #333;
            margin: 0;
            padding: 0;
        }

        /* Centered title section */
        header {
            text-align: center;
            padding: 20px;
            background-color: #d1e9ff;
            border-bottom: 2px solid #ccc;
        }

        h1 {
            color: #2c3e50;
            font-size: 2.5em;
            margin: 0;
        }

        /* Navigation container for centering */
        .nav-container {
            display: flex;
            justify-content: center;
            padding: 10px 0;
            background-color: #d1e9ff;
            border-bottom: 0.5px solid #b3d9ff;
        }

        nav {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            justify-content: center;
        }

        /* Text box styling for links */
        nav a, .dropbtn {
            text-decoration: none;
            color: #fff;
            background-color: #007BFF;
            padding: 10px 15px;
            border-radius: 5px;
            margin: 0 5px;
            transition: all 0.3s ease;
            border: 1px solid #ccc;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            cursor: pointer;
            font-family: Arial, sans-serif;
            font-size: 16px;
            border-bottom: 2pt solid #0056b3;
        }

        nav a:hover, .dropbtn:hover {
            background-color: #0056b3;
            box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
        }

        /* NEW: Style for disabled links */
        nav a.disabled {
            background-color: #aaa;
            cursor: not-allowed;
            /* REMOVED: pointer-events: none; */
            border-bottom: 2pt solid #888;
        }

        /* Dropdown specific styles */
        .dropdown {
            position: relative;
            display: inline-block;
            margin: 0 5px;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            border-radius: 5px;
            overflow: hidden;
            top: 100%;
        }

        .dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            border: none;
            background-color: #fff;
            box-shadow: none;
        }

        .dropdown-content a:hover {
            background-color: #111111;
            box-shadow: none;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        /* Main container and content from previous file */
        .container {
            max-width: 900px;
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            margin: 20px auto;
            text-align: left;
        }

        h2 {
            color: #34495e;
            font-size: 1.5em;
            margin-top: 5px;
            margin-bottom: 15px;
            text-align: center;
        }

        p {
            font-size: 1.1em;
            line-height: 1.6;
            margin-bottom: 25px;
            text-align: left;
        }

        ul {
            list-style-type: none;
            padding: 0;
            margin: 0 0 20px 0;
            text-align: left;
        }

        ul li {
            font-size: 12pt;
            line-height: 1.5;
            margin-bottom: 5px;
        }

        .cta-section {
            margin-top: 30px;
            text-align: center;
        }

        /* Default layout for desktop */
        .dropdowns {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .dropdown-group, .dropdown-row {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            width: auto;
        }

        .dropdowns select, .dropdown-group select {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 1em;
            cursor: pointer;
            min-width: 150px;
        }
        
        /* New styling for the text input and autocomplete results */
        .city-input-container {
            position: relative;
            min-width: 150px;
        }

        #city-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 1em;
            box-sizing: border-box;
        }

        #city-autocomplete-results {
            position: absolute;
            width: 100%;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            max-height: 200px;
            overflow-y: auto;
            z-index: 10;
            display: none;
            text-align: left;
        }

        #city-autocomplete-results div {
            padding: 10px;
            cursor: pointer;
        }

        #city-autocomplete-results div.selected,
        #city-autocomplete-results div:hover {
            background-color: #f1f1f1;
        }


        .dropdowns select:hover, .dropdown-group select:hover {
            border: 2pt solid goldenrod;
            transition: border-color 0.3s ease;
        }

        /* Popup modal styles */
        .modal {
            display: none; /* Hidden by default */
            position: fixed;
            z-index: 1001; /* High z-index to appear on top of other content */
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%); /* Center the modal */
            width: 80%;
            max-width: 600px;
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .modal-content {
            position: relative;
        }

        .close-button {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close-button:hover,
        .close-button:focus {
            color: black;
            text-decoration: none;
        }

        .overlay {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
        }

        #category-popup {
            display: none;
            position: fixed;
            top: 10%;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            padding: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            max-width: 90%;
            max-height: 80%;
            overflow-y: auto;
            z-index: 1000;
        }

        #popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: 900;
        }

        #popup-close {
            float: right;
            font-size: 1.5em;
            cursor: pointer;
            background: none;
            border: none;
            line-height: 1;
            padding: 0;
        }
        
        /* NEW STYLES FOR POPUP CARD LAYOUT */
        .provider-card {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            padding: 15px 0;
        }

        .provider-info {
            flex: 1;
            min-width: 150px;
        }

        .provider-info h4 {
            margin-top: 0;
            margin-bottom: 5px;
        }

        .provider-info p {
            margin: 0;
            line-height: 1.4;
            font-size: 0.9em;
        }

        .provider-profile {
            flex: 2;
            font-size: 0.9em;
            line-height: 1.4;
        }

        .provider-profile div {
            margin-bottom: 5px;
        }

        .provider-profile a {
            font-weight: bold;
            color: #3498db;
            text-decoration: none;
        }

        .provider-profile a:hover {
            text-decoration: underline;
        }
        /* END NEW STYLES */

        /* General form styling */
        .dynamic-form {
            display: flex;
            flex-direction: column;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            margin-bottom: 15px;
        }
        
        /* Horizontal row for grouped form fields */
        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        /* Styles for form fields that take up half a row */
        .form-group-half {
            display: flex;
            flex-direction: column;
            flex: 1; /* This will make each item take up half the space */
        }


        .form-group label,
        .form-group-half label {
            margin-bottom: 5px;
            font-weight: bold;
        }

        .form-group input,
        .form-group textarea,
        .form-group-half input {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 1em;
            width: 100%;
            box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
        }
        
        .form-group select {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 1em;
        }

        /* Contact Form Specific Layout Adjustments */
        .city-state-row .form-group-half:first-child {
            flex-grow: 3;
        }
        .city-state-row .form-group-half:last-child {
            flex-grow: 1;
        }
        
        /* Updated Flex-grow for City and State to reflect character limits */
        .city-state-row .form-group-half:first-child {
            flex-grow: 16; /* Represents 32 characters */
        }
        .city-state-row .form-group-half:last-child {
            flex-grow: 1; /* Represents 2 characters */
            max-width: calc(2ch + 20px + 2px); /* 2 characters + padding + border */
        }

        .form-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        .form-buttons button {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        #submit-button, #regSubmitBtn, #reviewSubmitBtn {
            background-color: #28a745;
            color: white;
            /* Disable button by default */
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        #submit-button.active, #regSubmitBtn.active, #reviewSubmitBtn.active {
            opacity: 1;
            cursor: pointer;
        }

        #submit-button.active:hover, #regSubmitBtn.active:hover, #reviewSubmitBtn.active:hover {
            background-color: #218838;
        }

        #reset-button, #regResetBtn, #reviewResetBtn {
            background-color: #ffc107;
            color: black;
        }

        #reset-button:hover, #regResetBtn:hover, #reviewResetBtn:hover {
            background-color: #e0a800;
        }

        #cancel-button, #regCancelBtn, #reviewCancelBtn {
            background-color: #dc3545;
            color: white;
        }

        #cancel-button:hover, #regCancelBtn:hover, #reviewCancelBtn:hover {
            background-color: #c82333;
        }

        /* Checkbox and Label styles */
        .checkbox-group {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .checkbox-group input[type="checkbox"] {
            margin-right: 10px;
            width: auto;
        }
        
        .checkbox-group label {
            font-weight: normal;
        }

        .terms-link {
            color: #007BFF;
            text-decoration: underline;
            cursor: pointer;
        }
        
        /* Confirmation message modal */
        #message-popup {
            text-align: center;
            max-width: 400px;
            z-index: 1002; /* Higher than contact form modal */
        }

        #message-text {
            font-size: 1.2em;
            font-weight: bold;
            margin-bottom: 20px;
            word-wrap: break-word; /* Allows long URLs to wrap */
        }

        .message-buttons {
            text-align: center;
        }
        
        /* Terms and Conditions Modal */
        #terms-modal {
            max-width: 800px;
            max-height: 90vh;
        }
        
        #terms-modal h3 {
            text-align: center;
        }
        
        #terms-content {
            padding: 10px;
            overflow-y: auto;
            max-height: 70vh;
            text-align: justify;
        }
        
        /* Registration Modal Custom Styles */
        .registration-type-toggle {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
        }

        .registration-type-toggle label {
            font-weight: bold;
            cursor: pointer;
            padding: 10px 15px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        .registration-type-toggle input[type="radio"] {
            display: none;
        }
        
        .registration-type-toggle input[type="radio"]:checked + label {
            background-color: #007BFF;
            color: white;
        }

        #user-fields, #provider-fields {
            display: none;
        }
        #user-fields.visible, #provider-fields.visible {
            display: block;
        }

        /* NEW: Styles for provider profile popup */
        .profile-modal {
            max-width: 800px;
            max-height: 90vh;
            text-align: left;
        }
        .profile-modal-content h3 {
            text-align: center;
            margin-bottom: 20px;
        }
        .profile-detail-section {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .profile-detail-section:last-child {
            border-bottom: none;
        }
        .profile-detail-section strong {
            display: block;
            margin-bottom: 5px;
            color: #555;
        }

        .profile-link {
            cursor: pointer;
            color: blue;
            text-decoration: underline;
        }
        /* End of NEW Styles */

        /* NEW: Reviews Modal Styles */
        #reviews-modal .modal-content {
            max-width: 500px;
            margin: auto;
        }
        #reviews-modal h3 {
            text-align: center;
        }
        #reviews-modal .reviews-container {
            max-height: 30vh;
            overflow-y: auto;
            border: 1px solid #ccc;
            padding: 10px;
            margin-bottom: 20px;
        }
        .review-card {
            border-bottom: 1px dashed #ccc;
            padding-bottom: 10px;
            margin-bottom: 10px;
        }
        .review-card:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        .review-card .rating {
            color: #f39c12;
            font-size: 1.2em;
        }
        .review-card .reviewer {
            font-weight: bold;
            margin-right: 10px;
        }
        .review-form-section h4 {
            margin-top: 0;
        }
        .star-rating {
            font-size: 2em;
            cursor: pointer;
            color: #ccc;
        }
        .star-rating:hover, .star-rating.selected {
            color: #f39c12;
        }
        /* End of NEW styles */
        
        /* NEW: General utility class for hiding elements */
        .hidden {
            display: none;
        }

        /* NEW: Provider review section styling */
        .provider-review-card {
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
            margin-bottom: 15px;
        }
        .provider-review-card .reviewer {
            color: #555;
            font-size: 0.9em;
        }
        .response-form-section {
            padding-top: 15px;
            margin-top: 10px;
            border-top: 1px dashed #ccc;
        }
        
        /* NEW: Login modal simple styling */
        #login-modal {
            max-width: 300px;
        }
        #login-modal p {
            font-size: 1em;
            text-align: center;
            margin-bottom: 20px;
        }
        .login-options {
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        .login-options button {
            padding: 10px 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f0f0f0;
            cursor: pointer;
        }
        .login-options button:hover {
            background-color: #e0e0e0;
        }
        /* END NEW STYLES */
        
        /* NEW: Added CSS for disabled checkbox and tooltip */
        .checkbox-group input[type="checkbox"]:disabled {
            cursor: not-allowed;
            background-color: #ccc;
        }

        .checkbox-group label.disabled-for-guests {
            cursor: not-allowed;
            color: #888;
        }

        .tooltip {
            position: relative;
            display: inline-block;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 200px;
            background-color: black;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%; /* Position the tooltip above the text */
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        /* Media Queries for Mobile Responsiveness */
        @media (max-width: 768px) {
            h1 {
                font-size: 2em;
            }

            h2 {
                font-size: clamp(0.8em, 2vw, 1.5em);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                text-align: center;
            }

            .nav-container {
                padding: 5px 0;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            nav {
                flex-wrap: nowrap;
                justify-content: flex-start;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            nav a, .dropbtn {
                margin: 0;
                padding: 8px 10px;
                flex-shrink: 0;
                font-size: clamp(12px, 2.5vw, 16px);
            }

            .dropdown {
                position: static;
                margin: 0;
            }

            .dropdown-content {
                position: static;
                width: 100%;
                box-shadow: none;
                border-top: 1px solid #ccc;
            }

            /* Mobile-specific layout for dropdowns */
            .dropdowns {
                flex-direction: column;
                align-items: center;
                gap: 5px;
            }
            
            /* This will put the state and city on the same row */
            .dropdown-row {
                display: flex;
                justify-content: center;
                gap: 10px;
                width: 100%;
            }

            .dropdown-group {
                flex: 1 1 48%; /* Allows elements to grow and take up space */
                justify-content: center;
                gap: 5px;
            }

            .dropdowns select, .dropdown-group select {
                width: 100%;
                box-sizing: border-box;
                min-width: unset;
                font-size: 1em;
            }
            
            #city-input, .dropdown-group select {
                flex: 1 1 48%;
                box-sizing: border-box;
                min-width: unset;
            }
            
            #city-autocomplete-results {
                position: static;
            }

            .container {
                margin: 10px;
                padding: 15px;
            }
            
            /* NEW: Contact form mobile layout */
            .form-row {
                flex-direction: column;
                gap: 0;
            }
            .form-group-half {
                margin-bottom: 15px;
            }
            
            /* Resetting the flex-grow on mobile to stack correctly */
            .city-state-row .form-group-half:first-child,
            .city-state-row .form-group-half:last-child {
                flex-grow: 1;
                max-width: none;
            }
        }
.login-options button {
    flex: 1;
}