/* ==========================================================================
   Contact Us — UI polish (additive, safe to remove)
   Scoped under #contact / .map_form so nothing else on the site is touched.
   Palette: brand orange #ff5e1a, deep navy #163762.
   ========================================================================== */

#contact.map_form {
    padding: 70px 0;
    background:
        radial-gradient(1200px 400px at 90% -10%, rgba(255, 94, 26, 0.06), transparent 60%),
        radial-gradient(1000px 400px at -10% 110%, rgba(22, 55, 98, 0.05), transparent 60%),
        #f7f9fc;
}

#contact .row {
    align-items: stretch;
}

/* ---------- Form card ---------- */
#contact form {
    background: #fff;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(22, 55, 98, 0.08);
    border: 1px solid #eef2f7;
    height: 100%;
    position: relative;
}

#contact form::before {
    content: "Envíanos un mensaje / Send us a message";
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff5e1a;
    margin-bottom: 6px;
}

/* Optional heading above the fields */
#contact form::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: #ff5e1a;
    border-radius: 3px;
    margin: 8px 0 22px;
    display: none;
}

/* Inputs */
#contact .form-control {
    width: 100%;
    background: #f7f9fc;
    border: 1.5px solid #e5eaf2;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: #2b2f42;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

#contact .form-control::placeholder {
    color: #9aa3b3;
}

#contact .form-control:hover {
    background: #fff;
    border-color: #d5dde9;
}

#contact .form-control:focus {
    background: #fff;
    border-color: #ff5e1a;
    box-shadow: 0 0 0 4px rgba(255, 94, 26, 0.14);
}

#contact textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Submit button */
#contact form .btn-1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 22px;
    margin-top: 6px;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff5e1a 100%);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(255, 94, 26, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#contact form .btn-1::after {
    content: "\2192"; /* arrow */
    font-size: 18px;
    transition: transform 0.2s ease;
}

#contact form .btn-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 94, 26, 0.42);
    background: linear-gradient(135deg, #ff5e1a 0%, #e04a08 100%);
}

#contact form .btn-1:hover::after {
    transform: translateX(4px);
}

/* ---------- Sidebar info cards ---------- */
#contact .sidebar_form_content {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(22, 55, 98, 0.06);
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

#contact .sidebar_form_content:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(22, 55, 98, 0.1);
}

/* Keep the two narrow top cards the same height */
#contact .sidebar_form_content.CompanyAdd {
    min-height: 118px;
}

/* Icon chip: left column, spans both label + value rows */
#contact .sidebar_form_content::before {
    content: "";
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: #fff3ec;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
    grid-row: 1 / span 2;
    align-self: center;
}

/* Label + value stack in the right column */
#contact .sidebar_form_content > h3,
#contact .sidebar_form_content > p,
#contact .sidebar_form_content > a {
    grid-column: 2;
    min-width: 0;
}

/* SVG icons per card (rendered as data URIs so no extra files needed) */
#contact .sidebar_form_content.CompanyAdd:nth-of-type(1)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5e1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='16' rx='2'/><path d='M8 4v16M16 4v16M3 10h18'/></svg>");
}
#contact .sidebar_form_content.CompanyAdd:nth-of-type(2)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5e1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s-8-7.5-8-13a8 8 0 1 1 16 0c0 5.5-8 13-8 13z'/><circle cx='12' cy='9' r='2.5'/></svg>");
}
#contact .sidebar_form_content.box_color::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5e1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
}
#contact .sidebar_form_content.box_color2::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5e1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='M22 6l-10 7L2 6'/></svg>");
}

#contact .sidebar_form_content h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7b849a;
    line-height: 1.3;
}

#contact .sidebar_form_content p,
#contact .sidebar_form_content a {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #163762;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: anywhere;
}

#contact .sidebar_form_content a {
    text-decoration: none;
    transition: color 0.2s ease;
}
#contact .sidebar_form_content a:hover {
    color: #ff5e1a;
}

/* Highlight the phone card so it stands out */
#contact .sidebar_form_content.box_color {
    background: linear-gradient(135deg, #ff7a3d 0%, #ff5e1a 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 94, 26, 0.28);
}
#contact .sidebar_form_content.box_color::before {
    background: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}
#contact .sidebar_form_content.box_color h3 {
    color: rgba(255, 255, 255, 0.85);
}
#contact .sidebar_form_content.box_color a {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
#contact .sidebar_form_content.box_color a:hover {
    color: #fff;
    opacity: 0.9;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    #contact .f-w-vxs.col-lg-6 {
        width: 100%;
    }
    #contact form {
        margin-bottom: 24px;
    }
}

@media (max-width: 575px) {
    #contact.map_form {
        padding: 45px 0;
    }
    #contact form {
        padding: 24px 20px;
    }
    #contact .sidebar_form_content {
        padding: 18px 18px;
    }
}
