﻿

/* From Uiverse.io  */
.search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

}

.form button {
    border: none;
    background: none;
    color: #8b8ba7;
}
/* styling of whole input container */
.form {
    --timing: 0.3s;
    --width-of-input: 400px;
    --height-of-input: 50px;
    --border-height: 2px;
    --input-bg: #fff;
    --border-color: #7B1A1A;
    --border-radius: 30px;
    --after-border-radius: 1px;
    position: relative;
    width: var(--width-of-input);
    height: var(--height-of-input);
    display: flex;
    align-items: center;
    padding-inline: 0.8em;
    border-radius: var(--border-radius);
    transition: border-radius 0.5s ease;
    background: var(--input-bg,#fff);
    border: 2px solid #EBEBEB; /* Contorno completo */
}

.form {
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border: 1px solid #e6e6e6;
    height: 50px;
}


/* styling of Input */
.input {
    font-size: 0.9rem;
    background-color: transparent;
    width: 150%;
    height: 100%;
    padding-inline: 0.5em;
    padding-block: 0.7em;
    border: none;
}
/* styling of animated border */
.form:before {
    content: "";
    position: absolute;
    background: var(--border-color);
    transform: scaleX(0);
    transform-origin: center;
    width: 100%;
    height: var(--border-height);
    left: 0;
    bottom: 0;
    border-radius: 1px;
    transition: transform var(--timing) ease;
}
/* Hover on Input */
.form:focus-within {
    border-radius: var(--after-border-radius);
}

input:focus {
    outline: none;
}
/* here is code of animated border */
.form:focus-within:before {
    transform: scale(1);
}
/* styling of close button */
/* == you can click the close button to remove text == */
.reset {
    border: none;
    background: none;
    opacity: 0;
    visibility: hidden;
}
/* close button shown when typing */
input:not(:placeholder-shown) ~ .reset {
    opacity: 1;
    visibility: visible;
}
/* sizing svg icons */
.form svg {
    width: 17px;
    margin-top: 3px;
}

.steps {
    display: flex;
    gap: 22px; /* Espacio horizontal entre columnas */
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}
/* ---------From Uiverse.io --------------------- */


@media (max-width: 768px) {


    .form {
        height: 42px;
        --width-of-input: 100%;
        width: 100%;
        padding-inline: 1rem;
        border-radius: 20px;
    }
    .input {
        font-size: 0.85rem;
        padding-block: 0.5em;
    }
    .search-row {
        justify-content: center;
        padding: 0.5rem;
    }
}


@media (max-width: 480px) {
    .form {
        height: 40px; /* opcional: más compacto en móviles */
        width:100%;
        padding-inline: 0.6em;
        border-radius: 30px; /* más suave en pantallas pequeñas */
    }
    .search-row {
        justify-content: center;
        padding: 0.5rem;
    }

    .input {
        font-size: 0.85rem;
        padding-block: 0.5em;
    }

    .form svg {
        width: 15px;
    }
}



.awesomplete {
    width: 100% !important;
}

    .awesomplete > ul {
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12) !important;
        padding: 6px 0 !important;
        margin: 4px 0 0 0 !important;
        border: 1px solid #e9e9e9 !important;
        max-height: 260px !important;
        overflow-y: auto !important;
        transition: opacity 0.15s ease-in-out, transform 0.15s ease !important;
    }

        .awesomplete > ul[hidden] {
            display: block !important;
            opacity: 0 !important;
            transform: translateY(-6px) !important;
            pointer-events: none !important;
        }

        .awesomplete > ul > li {
            padding: 10px 16px !important;
            font-size: 14px !important;
            color: #333 !important;
            cursor: pointer !important;
            display: flex !important;
            align-items: center !important;
            transition: background 0.12s ease, padding-left 0.12s !important;
            border-bottom: 1px solid #f2f2f2 !important;
        }

            .awesomplete > ul > li:last-child {
                border-bottom: none !important;
            }

            /* Hover estilizado */
            .awesomplete > ul > li:hover {
                background: #fdf7fa !important;
                padding-left: 20px !important;
            }

            /* Selección con teclado (resaltado) */
            .awesomplete > ul > li[aria-selected="true"] {
                background: #e8f0fe !important;
                color: #7B1A1A !important;
                font-weight: 600 !important;
            }

    /* Texto resaltado de coincidencia */
    .awesomplete mark {
        background: transparent !important;
        color: #7B1A1A !important;
        font-weight: 700 !important;
    }
