/*
 * This is the custom CSS for the ACF Gutenberg block.
 * This code would typically be placed in a file like 'style.css'
 * and enqueued in your WordPress theme or plugin.
 */

/* Main Container: Mobile-first styling */
.search-container{
    border-width: 1px 0px;
    border-style: solid;
    border-color: #52CEE6;
}
.search-block-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    max-width: 100%;
    background: #002856;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
}

/* Headline Text */
.search-block-headline {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    width: 100%;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    border-radius: 9999px; /* Full rounded corners */
    padding: 6px;
}

/* Search Input */
.search-input {
    flex-grow: 1;
    background-color: transparent;
    border: none;
    outline: none;
    padding-left: 1rem;
    color: #4b5563;
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Search Button */
.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-color: #52CEE6;
    transition-property: background-color;
    transition-duration: 200ms;
    outline: none;
}

.search-button:hover {
    background-color: #41b8d2;
}

.search-button:focus {
    box-shadow: 0 0 0 2px rgba(82, 206, 230, 0.5);
}

/* Search Icon */
.search-icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
}
.search-block-container #acf-search-form input {
    padding: 5px 16px;
    height: 56px;
}
/*
 * Media query for desktop screens
 * This switches the layout from vertical to horizontal.
 */
@media (min-width: 1024px) {
    .search-block-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .search-block-headline {
        width: auto;
        white-space: nowrap;
    }
}