﻿

/* 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 */
}
/* 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;
    }
}


