@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: 'Smithen Script';
    src: url('../fonts/smithenscript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.amsearch-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #F8F4ED;
}

.amsearch-form {
    background: #F8F4ED;
    padding: 20px;
    border-radius: 40px 20px 40px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.amsearch-required-note {
    font-size: 14px;
    color: #3C6E94;
    margin-bottom: 15px;
    font-style: italic;
}

.amsearch-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.amsearch-criterion {
    display: flex;
    flex-direction: column;
}

.amsearch-criterion label {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #3C6E94;
    font-family: "Montserrat", sans-serif;
}

.amsearch-criterion select {
    padding: 10px;
    border: 1px solid #9FCAD0;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #3C6E94;
}

.amsearch-number-results {
    font-size: 14px;
    color: #3C6E94;
    margin-bottom: 15px;
    font-style: italic;
    text-align: center;
}

.amsearch-number-results span {
    font-weight: 700;
}

.amsearch-submit {
    text-align: center;
    margin-top: 20px;
}

.amsearch-cta a,
.amsearch-button {
    background-color: #0B4F6C;
    color: #F8F4ED;
    padding: 12px 24px;
    border: none;
    border-radius: 40px 20px 40px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.3s;
    text-decoration: none;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
}

.amsearch-cta a:hover,
.amsearch-button:hover {
    background-color: #b88a86;
}

.amsearch-results {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.amsearch-result-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.amsearch-result-item:hover {
    transform: translateY(-5px);
}

.amsearch-result-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.amsearch-result-content {
    padding: 15px;
}

.amsearch-result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #9FCAD0;
}

.amsearch-result-marque {
    font-size: 14px;
    color: #3C6E94;
    margin-bottom: 8px;
}

.amsearch-result-description {
    font-size: 14px;
    color: #3C6E94;
    margin-bottom: 8px;
    line-height: 1.5;
}

.amsearch-result-budget {
    font-size: 14px;
    color: #3C6E94;
    margin-bottom: 15px;
    font-style: italic;
}

.amsearch-result-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #CA9C98;
    color: #FFF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.amsearch-result-link:hover {
    background-color: #b88a86;
}

.amsearch-cta,
.amsearch-email-collector {
    grid-column: 1 / -1;
    background: #F8F4ED;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.amsearch-cta{
    margin-top: 0;
    display: flex;
	align-items: center;
	justify-content: center;
}

.amsearch-email-message {
    margin-bottom: 20px;
}

.amsearch-email-message h3 {
    font-family: 'Smithen Script', cursive;
    color: #0B4F6C;
    font-size: 32px;
    margin-bottom: 10px;
}

.amsearch-email-message p {
    color: #3C6E94;
    font-size: 16px;
    margin-bottom: 20px;
}

.amsearch-email-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.amsearch-email-form input[type="email"] {
    padding: 12px;
    border: 1px solid #9FCAD0;
    border-radius: 4px;
    min-width: 300px;
    font-size: 16px;
}

.amsearch-email-form .amsearch-button {
    background-color: #CA9C98;
    color: #FFF;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.amsearch-email-form .amsearch-button:hover {
    background-color: #b88a86;
}

/* Responsive Design */
@media (max-width: 768px) {
    .amsearch-criteria {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .amsearch-results {
        grid-template-columns: 1fr;
    }

    .amsearch-email-form {
        flex-direction: column;
    }

    .amsearch-email-form input[type="email"] {
        min-width: 100%;
    }
} 

/* Select2 */
.select2-container--classic .select2-selection--single,
.select2-container--classic .select2-selection--multiple {
    font-size: 14px;
    color: #3C6E94;
    margin-bottom: 15px;
}

.select2-container--classic .select2-selection--single .select2-selection__rendered,
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
    font-size: 14px;
    color: #3C6E94;
}

.select2-container--classic .select2-results__option {
    font-size: 14px;
    color: #3C6E94;
}

.select2-container--classic .select2-selection--multiple{
    min-height: 29px!important;
}

.select2-container--classic .select2-selection--single .select2-selection__placeholder,
.select2-container--classic .select2-selection--multiple .select2-search__field::placeholder{
    color: #3C6E94!important;
}

.select2-container--classic.select2-container--open .select2-dropdown {
	top: -9px !important;
}

.select2-container--classic .select2-search--inline .select2-search__field {
    font-family: "Manrope", sans-serif!important;
}

.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--classic .select2-selection--multiple .select2-selection__choice{
    background-color: #CA9C98!important;
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice{
    border-color: #CA9C98!important;
    color: #FFF!important;
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{
    color: #FFF!important;
}
