/* Search Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    /* Increased bottom margin for breathing room */
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Softer, spread out shadow */
    border: 2px solid transparent;
    /* Prepare for focus state */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* Focus state for the entire form container */
.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(67, 160, 71, 0.2);
    transform: translateY(-2px);
    /* Subtle lift */
}

.search-box {
    flex: 1;
    border: none;
    padding: 1.2rem 1.5rem;
    /* Larger padding for touch targets */
    font-size: 1.05rem;
    outline: none;
    color: var(--text-color);
    background: transparent;
    font-family: inherit;
}

.search-box::placeholder {
    color: #aaa;
    transition: opacity 0.3s ease;
}

.search-box:focus::placeholder {
    opacity: 0.7;
}

.search-button {
    background: var(--primary-color);
    /* Colored button */
    border: none;
    padding: 0 1.8rem;
    /* Match container height */
    align-self: stretch;
    cursor: pointer;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    /* Ensure minimum click width */
}

.search-button:hover {
    background-color: var(--primary-dark);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .search-container {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .search-form {
        border-radius: 12px;
        /* Less rounded on very small screens if preferred, or keep 50px */
    }

    .search-box {
        padding: 1rem;
        font-size: 1rem;
    }

    .search-button {
        padding: 0 1.2rem;
    }
}