/* General styles for the contact page */
.banner {
    width: 100%;
    height: 500px;
    background: url('/img/contactbg_Mesa\ de\ trabajo\ 1_Mesa\ de\ trabajo\ 1.jpg') no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.banner-content h1 {
    color: white;
}

.banner-content p {
    color: white;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none;
    /* Oculto por defecto */
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.banner-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: rgb(18, 11, 46);
    display: flex;
    justify-content: space-between;
}

/* Practice areas section */
.practice-areas {
    /* margin: 30px 0; */
    padding: 30px 0;
    text-align: center;
    background-color: white;
}

/* .practice-areas h2{
    padding-top: 20px;
} */


.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    /* margin-top: 30px; */
}

.practice-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    /* border-radius: 8px; */
    overflow: hidden;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); */
    /* transition: transform 0.3s, box-shadow 0.3s; */
    text-align: left;
}

.maps-section {
    display: flex;
    flex-direction: column;
    background-color: rgb(236, 236, 236);
    padding: 30px;
    /* border-radius: 8px; */
    overflow: hidden;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); */
    /* transition: transform 0.3s, box-shadow 0.3s; */
    text-align: left;
}

.practice-image-placeholder {
    height: 275px;
    background-color: #ffffff;
    /* padding: 20px 20px 0px 20px; */
    overflow: hidden
}

.practice-image-placeholder img {
    width: 100%;
    /* border-radius: 6px 6px 0 0; */

}

.practice-card-content {
    padding: 0px 60px 20px 0px;
}

.practice-card-content ul {
    padding-left: 20px;
}

/* //FORMULARIO */
.form-container {
    background-color: #ebebeb;
    padding: 30px;
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
}

h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
}

.dm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dm p {
    /* margin-top: 0; */
    margin-bottom: 0px;
    color: #555;
    font-size: 14px;
}

.sn-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

input,
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background-color: #1c1c1c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #333;
}

.message {
    padding: 10px;
    margin-top: 10px;
    border-radius: 3px;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

.phone-input {
    display: flex;
    align-items: center;
}

.flag {
    margin-right: 5px;
    height: 20px;
}

@media (max-width: 768px) {

    .practice-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .practice-card-content {
        padding: 0px 0px 20px 0px !important;
    }

    .maps-section {
        padding: 5px !important;

    }

}