/* Custom Contact Styles for Blue Eco Group */

.contact-info-beg {
    padding: 80px 0;
    background: #fff;
}

.contact-info-beg .sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #27A0D4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-beg .sec-explain {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 50px;
    color: #808080;
    max-width: 800px;
}

/* Branch Widgets */
.branch-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.branch-item {
    background: #fff;
    border: 1px solid #27A0D4;
    border-left: 5px solid #27A0D4;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.branch-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(39, 160, 212, 0.2);
    border-color: #27A0D4;
}

.branch-item i {
    font-size: 28px;
    color: #27A0D4;
    margin-right: 20px;
    background: rgba(39, 160, 212, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.branch-item .info h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #27A0D4;
}

.branch-item .info p {
    font-size: 16px;
    color: #808080;
    margin: 0;
    font-weight: 500;
}

/* Social Media Section */
.social-contact-wrapper {
    margin: 60px 0;
    padding: 40px 0;
    background: #fff;
    border: 1px solid #27A0D4;
    border-radius: 15px;
}

.social-contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.social-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    min-width: 150px;
    transition: all 0.3s ease;
}

.social-contact-item i {
    font-size: 28px;
    color: #fff;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Social Brand Colors */
.social-contact-item[href*="facebook"] i {
    background: #1877F2;
}

.social-contact-item[href*="linkedin"] i {
    background: #0077B5;
}

.social-contact-item[href*="instagram"] i {
    background: #E4405F;
}

.social-contact-item i.fa-envelope {
    background: #27A0D4;
}

.social-contact-item[href*="beg.mx"] i {
    background: #27A0D4;
}

.social-contact-item:hover i {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.social-contact-item span {
    font-size: 14px;
    font-weight: 700;
    color: #808080;
    text-align: center;
}

/* Map Section */
.mexico-map-section {
    padding: 60px 0;
}

.mexico-map-container {
    width: 100%;
    background: #fff;
    padding: 30px;


}

.mexico-map-container .map-title {
    font-size: 22px;
    font-weight: 700;
    color: #27A0D4;
    margin-bottom: 20px;
    text-align: center;
}

.map-image-wrapper {
    position: relative;
    width: 100%;
}

/* Interactive Map */
.mexico-map-img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.map-estado-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(39, 160, 212, 0.95);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(39, 160, 212, 0.4);
    pointer-events: none;
    z-index: 20;
}

.map-estado-label.active {
    opacity: 1;
}

area {
    cursor: pointer;
}

/* Hide SimpleMaps Trial Watermark */
#map a[href^="https://simplemaps.com"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Shift map labels above the location circles */
#map text {
    transform: translateY(-25px);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8), -1px -1px 2px rgba(255,255,255,0.8), 1px -1px 2px rgba(255,255,255,0.8), -1px 1px 2px rgba(255,255,255,0.8);
}

/* Captcha and Form refinement */
.form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #27A0D4;
}

.captcha-box {
    background: #fff;
    border: 1px solid #27A0D4;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.captcha-question {
    font-size: 16px;
    font-weight: 700;
    color: #27A0D4;
}

.captcha-input {
    width: 100px !important;
    height: 45px !important;
    margin: 0 !important;
    text-align: center;
    font-weight: 700;
    border: 2px solid #27A0D4 !important;
    color: #808080 !important;
}

/* Ensure all form inputs follow the palette */
.form-contact-2 input,
.form-contact-2 textarea {
    border-color: #27A0D4 !important;
    color: #808080 !important;
}

.form-contact-2 input::placeholder,
.form-contact-2 textarea::placeholder {
    color: #808080;
    opacity: 0.7;
}

/* Footer Social Colors */
.footer .icon li a i {
    transition: all 0.3s ease;
}

.footer .icon li a:hover i.fa-facebook-f {
    color: #1877F2 !important;
}

.footer .icon li a:hover i.fa-instagram {
    color: #E4405F !important;
}

.footer .icon li a:hover i.fa-linkedin-in {
    color: #0077B5 !important;
}