#contact .header-1 {
    padding: 0 30px;
}

#contact .header-1 .pretitle{
    margin: initial;
}

#contact-form > div{
    width: 50%;
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 60px;
}

#contact-form form{
    width: 100%;
}

#contact-form form fieldset{
    border: none;
    font-size: 19px;
}

.contact-field{
    width: 100%;
    margin: 30px 0px;
}

.contact-field > span{
    display: block;
    width: 100%;
    text-align: left;
    padding-bottom: 8px;
    transition: .2s all;
    font-family: 'MontserratBold', sans-serif;
    font-size: 16px;
}

/* --- Text inputs, ahora tipo "boxed" para calzar con select / cards / slider --- */
.input-text{
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    background-color: white;
    transition: .2s all;
    box-sizing: border-box;
}

.input-text:hover{
    border-color: #bbb;
}

.input-text:focus{
    border-color: #9747FF;
    box-shadow: 0 0 0 1px #9747FF;
}

select.input-text{
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

#submit-button{
    border: none;
    background-color: #9747FF;
    color: white;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    width: 240px;
    font-family: 'MontserratLight';
}

/* --- Need cards (multi-select) --- */
.need-cards{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.need-card{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s all;
}

.need-card:hover{
    border-color: #9747FF;
}

.need-card input[type="checkbox"]{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.need-card:has(input[type="checkbox"]:checked){
    border-color: #9747FF;
    box-shadow: 0 0 0 1px #9747FF;
    background-color: rgba(151, 71, 255, 0.04);
}

.need-icon{
    width: 22px;
    height: 22px;
    stroke: #333;
}

.need-card span{
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

/* --- Budget slider --- */
.budget-slider-wrap{
    margin-top: 5px;
}

#budget-current-label{
    font-family: 'MontserratBold', sans-serif;
    font-size: 18px;
    color: #9747FF;
    margin-bottom: 12px;
}

.budget-slider{
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
}

.budget-slider::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #9747FF;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.budget-slider::-moz-range-thumb{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 2px solid #9747FF;
    cursor: pointer;
}

.budget-labels{
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
}

@media only screen and (max-width: 599px) {
    #contact{
        margin-bottom: 100px;
    }

    #contact-form > div{
        width: 90%;
    }

    #contact-form form fieldset{
        font-size: 15px;
    }

    #submit-button{
        width: 100%;
    }

    .need-cards{
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width: 600px) and (max-width: 767px){
    #contact{
        margin-bottom: 100px;
    }

    #contact-form > div{
        width: 70%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px){
    #contact-form > div {
        width: 60%;
    }
}
