.title-contact {
    font-size: 70px;
    background: -webkit-linear-gradient(#d5d5d5, #5A595F) ;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

@media (max-width: 992px) {
    .title-contact {
        font-size: 120px;
    }
}

/* Estilos para la vista previa de los archivos */
#file-preview {
    display: flex;
    flex-direction: column;
}
#country-code {
    max-width: fit-content; /* Ajusta el ancho al contenido */
    width: 100%; /* Asegura que tome el ancho completo disponible */
    margin-right: 1rem; /* Agrega un margen inferior */
    overflow-y: auto;
    max-height: 100px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid; /* Reduce border width */
    border-image: linear-gradient(to right, #373232, #48676a, #76ABAE) 1; /* Gradient with grey, dark grey, and light color */
    transition: all 0.3s ease-in-out;
    color: #9fa7ba; /* Color gris para el texto */
    cursor: pointer; /* Cambia el cursor al pasar sobre el elemento */
}

::placeholder{
    color: #6b7280; /* Color gris para el texto */
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #f9f9f9;
}

.file-item span {
    flex-grow: 1;
}

.file-item a {
    margin-left: 16px;
    color: #007bff;
    text-decoration: none;
}

.file-item a:hover {
    text-decoration: underline;
}

/* Initial state of the input field */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid; /* Reduce border width */
    border-image: linear-gradient(to right, #373232, #48676a, #76ABAE) 1; /* Gradient with grey, dark grey, and light color */
    transition: all 0.3s ease-in-out;
}

/* Animation when the input field is focused */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-image: linear-gradient(to right, #ccc, #ccc 80%, #9089fc) 1; /* Predominantly gray with purple */
    box-shadow: 0 0 10px #76ABAE;
    transform: scale(1.05);
}
/* Default dark mode styles */
#country-dropdown {
    background: radial-gradient(circle at 20% 30%, #76ABAE, transparent 40%),
    radial-gradient(circle at 80% 70%, #48676a, transparent 40%),
    #000000; /* Dark gray background */
    backdrop-filter: blur(15px); /* Increased blur effect */
    -webkit-backdrop-filter: blur(15px); /* Increased blur effect for WebKit browsers */
    color: #fff; /* Text color */
    font-size: 1.25em; /* Increase text size */
    max-height: 400px; /* Maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    width: auto; /* Adjust width */
    min-width: 20%; /* Minimum width */
    position: absolute; /* Absolute positioning */
    left: -7px; /* Align with the left edge */
    border-radius: 10px; /* Rounded borders */
    padding: 10px; /* Add padding */
}


#country-dropdown li {
    padding: 10px; /* Add padding to dropdown items */
}

/* Custom scrollbar styles */
#country-dropdown::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}


#country-dropdown::-webkit-scrollbar-thumb {
    background: #48676a; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded corners for the thumb */
}


#country-dropdown::-webkit-scrollbar-thumb:hover {
    background: #31363F; /* Color of the scrollbar thumb on hover */
}

.hidden {
    display: none;
}
@media (prefers-color-scheme: light) {
    #country-dropdown {
        background: radial-gradient(circle at 20% 30%, #76ABAE, transparent 40%),
        radial-gradient(circle at 80% 70%, #48676a, transparent 40%),
        #e0e0e0; /* Softer white background */
        backdrop-filter: blur(15px); /* Increased blur effect */
        -webkit-backdrop-filter: blur(15px); /* Increased blur effect for WebKit browsers */
        color: #000; /* Text color in light mode */
        left: -7px; /* Align with the left edge */
    }
}

@media (max-width: 1000px) {
    #titol {
        font-size: 120px;
        padding-top: 60px;
        padding-bottom: 80px;
    }
    #phrase {
        font-size: 35px;
        line-height: 50px;
        padding-bottom: 60px;
    }
    #contact-form {
        width: 100%;
        font-size: 1.2em; /* Increase text size */
        line-height: 1.5; /* Increase line spacing */
    }
    #contact-form label {
        font-size: 1.5em; /* Increase label text size */
        display: block; /* Ensure labels are block elements */
        margin-bottom: 40px; /* Add some space below labels */
        margin-top:60px;
    }
    #contact-form input[type="text"],
    #contact-form input[type="email"],
    #contact-form input[type="tel"],
    #contact-form textarea {
        height: 100px; /* Increase input height */
        border-radius: 10px;
    }
    #contact-form textarea {
        height: 300px; /* Increase textarea height */
        border-radius: 10px;
    }
    #contact-form input::placeholder,
    #contact-form textarea::placeholder {
        font-size: 2em; /* Increase placeholder text size */
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
    }
    #country-dropdown {
        font-size: 1.25em; /* Increase dropdown text size */
        max-height: 400px; /* Set maximum height for dropdown */
        overflow-y: auto; /* Enable vertical scrolling */
        min-width: 20%; /* Ensure it doesn't shrink smaller than the country code field */
        position: absolute; /* Position it absolutely */
        left: -10px;
    }
    #country-dropdown li {
        padding: 100px; /* Add padding to dropdown items */
    }

    button[type="submit"] {
        height: 100px; /* Adjust the height to match the input fields */
        width: 100%; /* Ensure the button takes the full width */
        padding: 10px; /* Adjust padding to match the input fields */
        font-size: 2em; /* Adjust font size to match the input fields */
        display: flex;
        justify-content: center; /* Center the text horizontally */
        align-items: center; /* Center the text vertically */
        border-radius: 10px;
    }
}
@media (max-width: 992px) {
    #country-code {
        max-width: 175px; /* Adjust the width to be smaller */
        height: 100px; /* Adjust the height */
        font-size: 1.5em; /* Adjust the font size */
        display: flex;
        justify-content: center; /* Center the text horizontally */
        align-items: center; /* Center the text vertically */
        border-radius: 10px; /* Adjust the border radius */
        margin-right: 1rem; /* Add a right margin */
    }

    .form__contact {
        margin-top: 50px;
    }
}

@media (prefers-color-scheme: light) {
    .title-contact{
        background: -webkit-linear-gradient(#000000, #8f8f95);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
