/* Contact page: info cards, form card and map. Loaded only on that page. */

.cx-contact {
    --cx-navy: 0, 49, 104;
    --cx-lime: 203, 219, 42;
    --cx-line: #e4ebf2;
}

.cx-contact .cx-card {
    background: #fff;
    border: 1px solid var(--cx-line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(var(--cx-navy), .04);
}

.cx-contact h2 {
    color: rgb(var(--cx-navy));
    font-size: 21px;
    font-weight: 700;
}

/* ---------- info tiles ---------- */
.cx-info {
    display: grid;
    gap: 14px;
}

.cx-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--cx-line);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(var(--cx-navy), .04);
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}

.cx-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(var(--cx-navy), .1);
}

.cx-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(var(--cx-navy), .07);
    color: rgb(var(--cx-navy));
    font-size: 17px;
}

.cx-tile-body {
    min-width: 0;
}

.cx-tile-label {
    display: block;
    color: #6b7c91;
    font-size: 13px;
    margin-bottom: 4px;
}

.cx-tile-value {
    color: rgb(var(--cx-navy));
    font-size: 15px;
    font-weight: 600;
    line-height: 2.1;
    margin: 0;
}

.cx-tile-value a {
    color: rgb(var(--cx-navy));
    text-decoration: none;
}

.cx-tile-value a:hover {
    color: #02558f;
    text-decoration: underline;
}

/* phone numbers as chips, latin digits left to right */
.cx-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.cx-phone {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(var(--cx-navy), .06);
    color: rgb(var(--cx-navy)) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
}

.cx-phone:hover {
    background: rgb(var(--cx-navy));
    color: #fff !important;
}

/* ---------- form ---------- */
.cx-contact .form-floating > .form-control,
.cx-contact .form-floating > .form-select {
    border: 1px solid var(--cx-line);
    border-radius: 12px;
    min-height: 58px;
    background: #fff;
}

.cx-contact .form-floating > .form-control:focus,
.cx-contact .form-floating > .form-select:focus {
    border-color: rgb(var(--cx-navy));
    box-shadow: 0 0 0 3px rgba(var(--cx-navy), .09);
}

.cx-contact .form-floating > label {
    color: #7b8a9c;
}

.cx-contact .btn-primary {
    min-height: 50px;
    padding-inline: 28px;
    border-radius: 12px;
    font-weight: 700;
}

.cx-contact .help-block strong {
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
}

.cx-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #e8f7ee;
    border: 1px solid #b7e3c7;
    color: #176b39;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
}

/* ---------- map ---------- */
.cx-map {
    border: 1px solid var(--cx-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(var(--cx-navy), .06);
}

.cx-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

@media (max-width: 575px) {
    .cx-contact .cx-card,
    .cx-tile {
        padding: 16px;
    }

    .cx-map iframe {
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cx-contact * {
        transition: none !important;
    }
}

/* the decorative particles layer is position-absolute with no positioned parent, so it
   stretched over the whole page and greyed the map out */
.cx-contact {
    position: relative;
}
