/* NSW BRANCHES SECTION */

.trichy-network-section {
    background: #1154ce;
    padding: 25px 0 45px;
    width: 100%;
}

.trichy-network-section .network-wrapper {
    width: 100%;
}

/* Header */
.trichy-network-section .network-header {
    margin-bottom: 25px;
    text-align: center;
}

.trichy-network-section .network-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.trichy-network-section .network-icon {
    margin-right: 8px;
}

/* Bootstrap Grid */
.trichy-network-section .row {
    row-gap: 22px;
    justify-content: center;
}

/* Card */
.trichy-network-section .network-card {
    background: #1b5bd2;
    border: 2px solid #0876ff;
    border-radius: 15px;
    padding: 22px 17px;
    height: 100%;
    min-height: 230px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease,
                transform 0.3s ease;
}

.trichy-network-section .network-card:hover {
    border-color: #60a5fa;
    transform: translateY(-3px);
}

/* Card Content */
.trichy-network-section .network-card-content {
    
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

/* Location Icon */
.trichy-network-section .branch-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #3087ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 11px;
    flex-shrink: 0;
}

/* Branch Heading */
.trichy-network-section .branch-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
}

/* Address */
.trichy-network-section .branch-address {
    color: #e0eaff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 14px;
    min-height: 40px;
}

.trichy-network-section .branch-address a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trichy-network-section .branch-address a:hover {
    color: #85c815;
    text-decoration: underline;
}

/* Phone Button */
.trichy-network-section .branch-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    border: 1px solid #347ce5;
    background: rgba(255,255,255,0.03);
    border-radius: 25px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    margin-top: auto;
}

.trichy-network-section .branch-phone:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

.trichy-network-section .office-phone {
    color: #ffffff;
    font-weight: 600;
}

/* Google Business Profile Link */
.trichy-network-section .branch-map {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    text-decoration: none;
    margin-top: 15px;
}

.trichy-network-section .branch-map:hover {
    color: #85c815;
    text-decoration: underline;
}

.trichy-network-section .g-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Desktop - 4 cards per row */
@media (min-width: 1200px) {
    .trichy-network-section .network-card {
        min-height: 230px;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1199px) {
    .trichy-network-section .network-card {
        min-height: 225px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .trichy-network-section {
        padding: 25px 0 35px;
    }

    .trichy-network-section .network-title {
        font-size: 22px;
    }

    .trichy-network-section .network-card {
        padding: 20px 17px;
        min-height: auto;
    }

    .trichy-network-section .branch-title {
        font-size: 16px;
    }

    .trichy-network-section .branch-address {
        min-height: auto;
    }

    .trichy-network-section .row {
        row-gap: 16px;
    }
}

/* MOBILE CONTACT POPUP - HEIGHT FIX */
@media (max-width: 767px) {

    #kvFloatingPopup {
        top: auto !important;
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        left: 12px !important;

        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;

        display: block !important;
        margin: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #kvFloatingPopup .kv-floating-popup-inner {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: inherit !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #kvFloatingPopup .kv-floating-popup-header {
        flex: 0 0 auto !important;
    }

    #kvFloatingPopup .kv-floating-popup-body {
        flex: 0 1 auto !important;
        min-height: 0 !important;

        max-height: calc(100vh - 150px) !important;
        max-height: calc(100dvh - 150px) !important;

        padding: 14px 15px calc(26px + env(safe-area-inset-bottom)) !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;

        box-sizing: border-box !important;
    }

    #kvFloatingPopup form {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding-bottom: 12px !important;

        box-sizing: border-box !important;
    }

    #kvFloatingPopup .kv-floating-form-group input,
    #kvFloatingPopup .kv-floating-form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 767px) {
    #kvFloatingPopup {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;

        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
    }

    #kvFloatingPopup.active {
        transform: translateY(-50%) !important;
    }
}
