/* ==========================================================
   SSPKM – Contact Us page
   ========================================================== */

/* ---------- info cards ---------- */
#details {
    padding: 56px 0 20px !important;
    background: #fff;
}

#details .row.text-center {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

#details .row.text-center>[class*='col-'] {
    float: none;
    display: flex;
    padding: 0 12px;
    margin-bottom: 24px;
}

#details .row.text-center>[class*='col-']>* {
    width: 100%;
}

#details .row.text-center>[class*='col-'] {
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* the card itself = column content wrapper via background on a pseudo box */
#details .row.text-center>[class*='col-']::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 34px;
    bottom: 0;
    z-index: 0;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(11, 31, 58, .07);
    box-shadow: 0 10px 30px rgba(11, 31, 58, .08);
    transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}

#details .row.text-center>[class*='col-']:hover::before {
    box-shadow: 0 24px 50px rgba(11, 31, 58, .16);
    transform: translateY(-6px);
}

#details .row.text-center>[class*='col-']>* {
    position: relative;
    z-index: 1;
}

#details .row.text-center>[class*='col-'] {
    transition: transform .45s var(--ease);
}

#details .row.text-center>[class*='col-']:hover {
    transform: translateY(-6px);
}

#details .sec-head h2 {
    font-size: 34px;
    font-weight: 300;
    padding: 0;
}

#details .sec-head h2 b {
    font-weight: 700;
}

#details .row.text-center>[class*='col-']>i {
    width: 68px !important;
    flex: 0 0 68px;
}

#details i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 26px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    box-shadow: 0 12px 26px rgba(45, 95, 156, .35), 0 0 0 6px #fff;
    transition: transform .5s var(--ease);
}

#details .col-md-3:nth-child(2) i {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px rgba(249, 88, 60, .35), 0 0 0 6px #fff;
}

#details .col-md-3:hover i {
    transform: rotate(-10deg) scale(1.08);
}

#details h2 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    padding: 0 18px;
}

#details h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600 !important;
    color: var(--accent);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 0 18px;
}

#details p {
    font-size: 14.5px !important;
    line-height: 1.85;
    color: #3b4656;
    padding: 0 20px 26px;
    margin: 0;
}

#details p small {
    color: var(--muted);
    font-size: 12px;
}

#details p a {
    color: var(--brand) !important;
    font-weight: 500;
    transition: color .2s;
}

#details p a:hover {
    color: var(--accent) !important;
}

/* ---------- form + maps: form on the left, both maps stacked on the right ---------- */
#maps {
    padding: 30px 0 70px !important;
    background: linear-gradient(180deg, #fff, var(--bg-soft));
}

#maps>.container-fluid {
    max-width: 1170px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

#maps .row.text-center {
    display: grid !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    margin: 0;
    text-align: left !important;
}

#maps .row.text-center>[class*='col-'] {
    float: none;
    width: auto;
    padding: 0;
}

#maps .row.text-center> :nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

#maps .row.text-center> :nth-child(2) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

#maps .row.text-center> :nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

/* map cards */
#maps .row.text-center> :nth-child(1),
#maps .row.text-center> :nth-child(3) {
    background: #fff;
    border-radius: 22px;
    padding: 20px 20px 20px;
    border: 1px solid rgba(11, 31, 58, .07);
    box-shadow: 0 10px 30px rgba(11, 31, 58, .08);
}

#maps h3 {
    margin: 0 0 14px !important;
    font-size: 18px;
    font-weight: 700;
}

#maps .row.text-center> :nth-child(1) h3::before,
#maps .row.text-center> :nth-child(3) h3::before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    font-size: 15px;
    color: var(--accent);
}

#maps iframe {
    display: block;
    width: 100% !important;
    height: 250px !important;
    border: 0;
    border-radius: 14px;
}

/* form card */
#maps .row.text-center> :nth-child(2) {
    background: #fff;
    border-radius: 22px;
    padding: 30px 30px 30px;
    border: 1px solid rgba(11, 31, 58, .07);
    box-shadow: 0 18px 46px rgba(11, 31, 58, .12);
    position: relative;
    overflow: hidden;
}

#maps .row.text-center> :nth-child(2)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-2), var(--accent));
}

#maps .row.text-center> :nth-child(2) h3 {
    font-size: 24px;
    margin-bottom: 6px !important;
}

#maps .row.text-center> :nth-child(2) h3::after {
    content: "Send us your question and we will get back to you.";
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--muted);
}

#maps form {
    margin-top: 22px;
}

#maps .form-group {
    margin-bottom: 16px;
}

#maps input.form-control,
#maps textarea.form-control {
    margin-bottom: 0 !important;
    height: 50px;
    padding: 0 16px;
}

#maps textarea.form-control {
    height: 130px;
    padding: 14px 16px;
    resize: vertical;
}

#maps input[type=submit] {
    width: 100%;
    height: 50px;
    margin: 6px 0 0 !important;
    font-size: 16px;
}

/* result message (success / error) */
#maps .alert {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2px 10px;
    margin: 0 0 18px;
    padding: 13px 38px 13px 14px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

#maps .alert h4 {
    display: none;
}

#maps .alert::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 17px;
    line-height: 1.3;
}

#maps .alert-danger::before {
    content: "\f06a";
}

#maps .alert-success {
    background: #e8f7ee;
    color: #1a7a43;
    border: 1px solid #bfe6cf;
}

#maps .alert-danger {
    background: #fdecea;
    color: #b42318;
    border: 1px solid #f6c9c4;
}

#maps .alert .close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 20px;
    opacity: .5;
    color: inherit;
    text-shadow: none;
}

@media (max-width:991px) {
    #maps .row.text-center {
        grid-template-columns: minmax(0, 1fr);
    }

    #maps .row.text-center> :nth-child(1),
    #maps .row.text-center> :nth-child(2),
    #maps .row.text-center> :nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

    #maps .row.text-center> :nth-child(2) {
        order: -1;
    }
}

@media (max-width:767px) {
    #details {
        padding: 36px 0 6px !important;
    }

    #details .row.text-center>[class*='col-'] {
        width: 100%;
    }

    #maps {
        padding: 16px 0 44px !important;
    }

    #maps .row.text-center> :nth-child(2) {
        padding: 24px 18px;
    }

    #maps .row.text-center> :nth-child(1),
    #maps .row.text-center> :nth-child(3) {
        padding: 16px;
    }

    #maps iframe {
        height: 220px !important;
    }
}

@media (prefers-reduced-motion:reduce) {

    #details .row.text-center>[class*='col-']:hover,
    #details .row.text-center>[class*='col-']:hover::before {
        transform: none;
    }
}

/* submit button while the inquiry is being sent */
#maps input[type=submit].is-sending,
#maps input[type=submit][disabled] {
    opacity: .65;
    cursor: wait;
    transform: none !important;
    box-shadow: none !important;
}