/* 
   FTK Native Style Implementation 
*/

/* Application Slider - Index App */
.index-app .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .index-app .top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .index-app .top-right {
        width: 100%;
        text-align: left;
    }

    .index-app .top-right a {
        display: inline-block;
        padding: 10px 20px;
    }

    .index-app .h3 {
        font-size: 24px;
        line-height: 1.2;
    }

    .index-app .text {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 10px;
    }

    .index-app .swiper-slide p {
        padding: 10px 0;
        font-size: 14px;
        text-align: center;
    }
}

/* Swiper Styling Refinements */
.swiper-pagination-bullet-active {
    background: #e1251b !important;
}

.swiper-slide img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.swiper-slide:hover img {
    transform: scale(1.02);
}

/* Inquiry Modal Styles - Premium Industrial Theme */
#mb-feedback {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: 90%;
    max-width: 650px;
    background: #fff;
    z-index: 10002;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#mb-feedback .modal-overlay {
    position: fixed;
    top: -100vh;
    left: -100vw;
    width: 300vw;
    height: 300vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: -1;
}

#mb-feedback .modal-header {
    background: #1a1a1a;
    color: #fff;
    padding: 25px 30px;
    position: relative;
}

#mb-feedback .modal-header .h3 {
    color: #e1251b;
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

#mb-feedback .modal-header p {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

#mb-feedback .close-reveal-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    transition: color 0.3s;
}

#mb-feedback .close-reveal-modal:hover {
    color: #e1251b;
}

#mb-feedback .modal-body {
    padding: 30px;
}

#mb-feedback label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
    color: #333;
}

#mb-feedback .form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 15px;
}

#mb-feedback .form-control:focus {
    border-color: #e1251b;
    box-shadow: none;
}

#mb-feedback .submit-btn {
    padding: 12px 40px;
}

/* Static Page Feedback Forms */

/* Case 1: Catalog Download (Red Background) */
.download-paper-xl .form-feedback .form-control {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 5px;
}

.download-paper-xl .form-feedback .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.download-paper-xl .form-feedback .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.download-paper-xl .form-feedback .btn-block {
    background: #fff;
    color: #e1251b;
    font-weight: 600;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.download-paper-xl .form-feedback .btn-block:hover {
    background: transparent;
    color: #fff;
}

/* Case 2: Contact Us (White Background) */
.contact-paper-xl .form-feedback .form-control {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 5px;
}

.contact-paper-xl .form-feedback .form-control::placeholder {
    color: #999;
}

.contact-paper-xl .form-feedback .form-control:focus {
    border-color: #e1251b;
    background: #fff;
}

.contact-paper-xl .form-feedback .btn-block {
    background: #e1251b;
    color: #fff;
    font-weight: 600;
    border: 2px solid #e1251b;
    transition: all 0.3s ease;
}

.contact-paper-xl .form-feedback .btn-block:hover {
    background: #fff;
    color: #e1251b;
}

/* Captcha group refinement */
.form-feedback .input-group-text {
    background: #fff;
    border: none;
    padding: 0;
    overflow: hidden;
    border-radius: 0 6px 6px 0;
}

@media (max-width: 767px) {
    #mb-feedback {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    #mb-feedback .modal-header {
        padding: 20px;
    }

    #mb-feedback .modal-body {
        padding: 20px;
    }
}

/* Exhibitions Popup & Floating Trigger */
.zhbg {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.zhbg.on {
    display: flex;
}

.zhbg .box {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.zhbg .box a {
    display: block;
    line-height: 0;
}

.zhbg .box img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
}

.zhbg .box .cloes {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 999999;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.zhbg .box .cloes:hover {
    background: #e1251b;
    transform: scale(1.1);
}

.zhkz {
    display: none;
    background: var(--public-color, #ad0d15);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    position: fixed;
    top: 250px;
    right: -48px;
    transform: rotate(-90deg);
    padding: 8px 18px 16px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: right 0.2s ease;
}

.zhkz.on {
    display: block;
}

.zhkz:hover {
    right: -42px;
}

@media (max-width: 768px) {
    .zhbg .box {
        max-width: 88%;
        max-height: 85vh;
    }
    .zhbg .box img {
        max-height: 75vh;
    }
    .zhkz {
        font-size: 14px;
        padding: 6px 14px 12px;
        right: -38px;
        top: 200px;
    }
    .zhkz:hover {
        right: -34px;
    }
}