﻿/* =========================================================
   IBS CONTACT US - COMPACT PROFESSIONAL DESIGN
========================================================= */

:root {
    --ibs-red: #d71920;
    --ibs-red-dark: #b51218;
    --dark: #222;
    --text: #555;
    --muted: #777;
    --border: #e5e5e5;
    --bg: #f6f7f8;
    --white: #fff;
}


/* =========================================================
   MAIN SECTION
========================================================= */

.prog-section {
    padding: 55px 0 70px;
    background: #f7f7f7;
}


/* =========================================================
   HEADING
========================================================= */

.prog-section .heading {
    text-align: center;
    margin: 0 auto 30px;
}

.prog-section .heading h1 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.prog-section .heading h1::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    margin: 10px auto 0;
    background: var(--ibs-red);
    border-radius: 3px;
}

.prog-section .heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   TABS
========================================================= */

.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin: 0 auto 25px;
    padding: 4px;

    width: fit-content;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tab-btn {
    min-width: 220px;

    padding: 11px 20px;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: #555;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s ease;
}

.tab-btn i {
    margin-right: 7px;
}

.tab-btn:hover {
    color: var(--ibs-red);
    background: #fff3f3;
}

.tab-btn.active {
    background: var(--ibs-red);
    color: #fff;

    box-shadow: 0 3px 10px rgba(215,25,32,0.18);
}


/* =========================================================
   TAB CONTENT
========================================================= */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    position: relative;

    max-width: 600px;

    margin: 0 auto 25px;
}

.search-box::before {
    content: "\f002";

    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    font-family: "Font Awesome 5 Free";
    font-weight: 900;

    color: #999;

    font-size: 13px;

    z-index: 2;
}

.search-box input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 15px 0 42px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fff;

    color: #333;

    font-size: 14px;

    outline: none;

    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--ibs-red);

    box-shadow:
        0 0 0 3px rgba(215,25,32,0.07);
}


/* =========================================================
   CARD GRID
========================================================= */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {
    position: relative;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.04);

    opacity: 0;

    transform: translateY(15px);

    transition:
        opacity 0.4s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.contact-card.on {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    border-color: #ddd;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.09);

    transform: translateY(-3px);
}


/* =========================================================
   TOP RED BORDER
========================================================= */

.contact-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--ibs-red);
}


/* =========================================================
   CARD INNER
========================================================= */

.contact-card-inner {
    display: flex;

    flex-direction: column;

    height: 100%;

    box-sizing: border-box;

    padding: 20px 20px 18px;
}


/* =========================================================
   ICON
========================================================= */

.contact-card-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-bottom: 11px;

    border-radius: 7px;

    background: #fff0f1;

    color: var(--ibs-red);

    font-size: 16px;
}


/* =========================================================
   CARD TITLE
========================================================= */

.contact-card h3 {
    margin: 0 0 10px;

    color: var(--dark);

    font-size: 18px;

    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   CONTACT DETAILS
========================================================= */

.contact-details {
    flex: 1;
}


/*
   IMPORTANT:
   This removes the excessive gap between
   every address / phone / contact line.
*/

.contact-details p {
    margin: 0;

    padding: 0;

    color: var(--text);

    font-size: 13px;

    line-height: 1.45;

    word-break: break-word;
}


/* =========================================================
   ADDRESS LINES
========================================================= */

.contact-details p + p {
    margin-top: 2px;
}


/* =========================================================
   LABELS
========================================================= */

.contact-details strong {
    color: #333;

    font-weight: 600;
}


/* =========================================================
   EMAIL
========================================================= */

.contact-email {
    margin-top: 9px !important;

    padding-top: 8px !important;

    border-top: 1px solid #f0f0f0;
}

.contact-email a {
    color: var(--ibs-red);

    text-decoration: none;

    word-break: break-word;
}

.contact-email a:hover {
    color: var(--ibs-red-dark);

    text-decoration: underline;
}


/* =========================================================
   MAP
========================================================= */

.contact-map {
    margin-top: 12px;

    padding-top: 10px;

    border-top: 1px solid #f0f0f0;
}

.map-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 7px 13px;

    border: 1px solid var(--ibs-red);

    border-radius: 4px;

    background: #fff;

    color: var(--ibs-red) !important;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none !important;

    transition: all 0.2s ease;
}

.map-btn i {
    font-size: 11px;
}

.map-btn:hover {
    background: var(--ibs-red);

    color: #fff !important;
}


/* =========================================================
   LOADING
========================================================= */

.loading {
    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    color: #777;

    font-size: 14px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 8px;
}


/* =========================================================
   NO RESULTS
========================================================= */

.no-result {
    grid-column: 1 / -1;

    padding: 35px 20px;

    text-align: center;

    color: #777;

    background: #fff;

    border: 1px dashed #ccc;

    border-radius: 8px;

    font-size: 14px;
}

.no-result strong {
    color: var(--ibs-red);
}


/* =========================================================
   ERROR
========================================================= */

.contact-error {
    grid-column: 1 / -1;

    padding: 35px 20px;

    text-align: center;

    background: #fff7f7;

    border: 1px solid #f0d4d4;

    border-radius: 8px;

    color: var(--ibs-red);
}

.contact-error i {
    display: block;

    margin-bottom: 8px;

    font-size: 26px;
}

.contact-error p {
    margin: 0;

    font-size: 14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .card-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .prog-section {
        padding: 40px 15px 55px;
    }


    .prog-section .heading {
        margin-bottom: 24px;
    }


    .prog-section .heading h1 {
        font-size: 24px;
    }


    .prog-section .heading p {
        font-size: 13px;
    }


    /* Tabs */

    .tabs {
        display: flex;

        width: 100%;

        box-sizing: border-box;

        gap: 4px;
    }


    .tab-btn {
        min-width: 0;

        flex: 1;

        padding: 10px 7px;

        font-size: 12px;
    }


    .tab-btn i {
        margin-right: 4px;

        font-size: 11px;
    }


    /* Search */

    .search-box {
        margin-bottom: 20px;
    }


    .search-box input {
        height: 44px;

        font-size: 13px;
    }


    /* Cards */

    .card-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .contact-card-inner {
        padding: 18px 17px 16px;
    }


    .contact-card-icon {
        width: 38px;
        height: 38px;

        margin-bottom: 9px;

        font-size: 15px;
    }


    .contact-card h3 {
        margin-bottom: 8px;

        font-size: 17px;
    }


    .contact-details p {
        font-size: 13px;

        line-height: 1.4;
    }


    .contact-email {
        margin-top: 7px !important;

        padding-top: 7px !important;
    }


    .contact-map {
        margin-top: 9px;

        padding-top: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .prog-section {
        padding-left: 10px;
        padding-right: 10px;
    }


    .prog-section .heading h1 {
        font-size: 21px;
    }


    .tabs {
        margin-bottom: 20px;
    }


    .tab-btn {
        font-size: 11px;

        padding: 9px 4px;
    }


    .contact-card-inner {
        padding: 17px 15px;
    }


    .contact-card h3 {
        font-size: 16px;
    }


    .contact-details p {
        font-size: 12.5px;
    }


    .map-btn {
        padding: 6px 11px;

        font-size: 11px;
    }

}