/* ------------------------------------------------ */
/* 1. ABSOLUTE SCREEN CENTERING */
/* ------------------------------------------------ */
.center-screen-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
}

/* ------------------------------------------------ */
/* 2. FORM CONTAINER & INPUT/ICON WRAPPER */
/* ------------------------------------------------ */
.search-form-vanilla {
    width: 100%;
    max-width: 512px;
}

.search-input-wrapper {
    position: relative;
    /* Context for absolute positioning */
    display: flex;
    align-items: center;
}

/* ------------------------------------------------ */
/* 3. INPUT FIELD STYLING */
/* ------------------------------------------------ */
.search-field-vanilla {
    width: 100%;
    /* Creates space for the icon */
    padding: 12px 50px 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out;
    box-sizing: border-box;
    /* Reset Tailwind/Browser styles */
    appearance: none;
}

.search-field-vanilla:focus {
    border-color: #1380ec;
    outline: none;
}

/* ------------------------------------------------ */
/* 4. ICON BUTTON STYLING AND POSITIONING */
/* ------------------------------------------------ */
.search-submit-icon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 48px;
    background: none;
    border: none;
    cursor: pointer;

    /* Center the SVG icon inside the button */
    display: flex;
    align-items: center;
    justify-content: center;

    color: #888;
    transition: color 0.15s ease-in-out;
}

.search-submit-icon:hover {
    color: #1380ec;
}

/* A11y: Hides screen reader text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}