/* Search container */
.baby-search {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

/* Search form */
.baby-search form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 52px;
    padding: 5px 7px 5px 20px;

    background: #ffffff;
    border: 2px solid #dddddd;
    border-radius: 50px;

    box-sizing: border-box;

    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Focus effect */
.baby-search form:focus-within {
    border-color: rgb(252, 201, 209);
    box-shadow: 0 0 0 4px rgba(252, 201, 209, 0.25);
}

/* Input */
.baby-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px 0 0;

    border: none;
    outline: none;
    background: transparent;

    color: #212529;
    font-family: inherit;
    font-size: 16px;
}

/* Placeholder */
.baby-search input::placeholder {
    color: #888888;
    opacity: 1;
}

/* Search button */
.baby-search button {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #212529;
    color: #ffffff;

    cursor: pointer;

    transition: background 0.3s ease,
                transform 0.2s ease;
}

/* Hover */
.baby-search button:hover {
    background: #444444;
    transform: scale(1.05);
}

/* Icon */
.baby-search button svg {
    display: block;
}

/* Mobile */
@media (max-width: 500px) {
    .baby-search {
        max-width: 100%;
        margin: 15px auto;
    }

    .baby-search form {
        height: 48px;
    }

    .baby-search button {
        width: 36px;
        height: 36px;
    }

    .baby-search input {
        font-size: 15px;
    }
}