body {
    font-family: Arial, sans-serif;
    background-color: white;
/*    display: flex;*/
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.search-container {
    background-color: #fff;
    padding: 20px;
    padding-top:15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin:0 auto;

}

.wrapper-container {
    position: relative;
    height: auto; /* Adjust based on the total height of both containers */
}

.search-container {
/*    position: absolute;*/
}

.search-container + .search-container {
    top: 50px; /* Adjust this value based on the vertical distance you want between the two containers */
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top:0px;
    text-align: center;
    text-align: left;
}

.dropdown-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.dropdown {
    position: relative;
/*    width: 200px;*/
}
.aidropdown {
    position: relative;
    width: 85%;
}

.dropdown label, .aidropdown label {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 12px;
    color: #999;
    pointer-events: none; /* Ensures the label is not selectable */
    transition: all 0.2s ease-in-out;
    z-index: 1;
}

.custom-select, .custom-input {
    padding: 24px 10px 10px; /* Increased height with space for label */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
/*    width: 100%;*/
    box-sizing: border-box;
    position: relative;
}

.custom-select option, .custom-input::placeholder {
    color: #333;
}

.custom-select:focus, .custom-input:focus {
    border-color: #2E3A8C;
}

.custom-select:not(:placeholder-shown) + label,
.custom-input:valid + label {
    font-size: 10px;
    top: -8px;
    color: #333;
}

.search-button {
    padding: 12px 20px;
    background-color: #2E3A8C;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 140px;
}

.search-button:hover {
    background-color: #1b2974;
}

@media (max-width: 768px) {
    .dropdown-container {
        flex-direction: column;
        align-items: stretch;
    }
}

#aisearch {
    width:100%;
}

.faq-container {
/*
    display: flex;
    flex-wrap: wrap;
*/
    justify-content: space-between;
    align-items: center;
    padding: 20px;  
    max-width: 1080px;
    margin: 0 auto;
}

#settle_results1, #county_results, #postcode_results {
    position: absolute;
    top: 24%;
    left: 11px;
    right: 6px;
    background-color: white;
    border: 1px solid #5f5a5a;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 2px 2px 2px black;    
}
#settle_results1{
    display:none;
}
#county_results {
    display:none;
}
#postcode_results{
    display: none;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    background-color: #28a745;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px; /* Adds space between the image and button */
    margin-bottom: 20px;
        
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: #218838;
}

.view-more-btn::after {
    content: '➔';
    margin-left: 10px;
    font-size: 1.2em;
    color: #ffffff;
}