/* Component styles extracted from popup_loader.php + floating_widget.php
   for HTML validity (inline <style> was rendering inside <body>). */

/* ---- popup loader ---- */
/* Mobile overrides for popup */
@media (max-width: 767px) {
    #modal-three {
        width: 94% !important;
        height: auto !important;
        max-height: 90vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
        overflow-y: auto !important;
    }
    #modal-three .left-sec {
        height: auto !important;
        position: static !important;
    }
    #modal-three .left-sec .top {
        height: 160px !important;
    }
    #modal-three .left-sec .bottom {
        height: auto !important;
        padding: 12px 20px !important;
    }
    #modal-three .contact-form form.card {
        margin: 15px !important;
    }
    #modal-three .modal-container .foot {
        padding: 15px !important;
    }
    #modal-three .modal-container .head {
        padding: 10px 15px !important;
    }
}
@media (max-width: 480px) {
    #modal-three .left-sec .top { height: 130px !important; }
    #modal-three .modal-container .btn { font-size: 13px !important; padding: 8px 16px !important; }
}

/* Make .foot flush at bottom of right column with no yellow gap */
#modal-three .col-lg-6.col-md-6.col-sm-12.p-0:last-child { display:flex; flex-direction:column; }
#modal-three .col-lg-6.col-md-6.col-sm-12.p-0:last-child form.card { flex:0 0 auto !important; margin-bottom:0 !important; margin-top:10px !important; }
#modal-three .col-lg-6.col-md-6.col-sm-12.p-0:last-child .foot { margin-top:auto; padding:18px 22px !important; }
#modal-three .col-lg-6.col-md-6.col-sm-12.p-0:last-child .foot p { font-size:12px !important; line-height:1.5 !important; margin:0 !important; color:#fff !important; }

/* ---- floating widget ---- */
/* Fix footer horizontal overflow on mobile */
.footer-area {
    overflow-x: hidden;
}
.footer-area .copy-right {
    overflow: hidden;
}

/* Back to top - move above floating widgets */
.go-top.active {
    top: 80%;
}

/* ===== Floating Widget - Desktop ===== */
.floating-widget {
    position: fixed;
    right: 20px;
    bottom: 50%;
    transform: translateY(50%);
    z-index: 997;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
}

.fab-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e8b006;
    color: #212226;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #e8b006;
    position: relative;
}

.fab-button:hover {
    background: #212226;
    color: #e8b006;
    text-decoration: none;
    transform: scale(1.1);
    border-color: #212226;
}

.fab-button i {
    font-size: 22px;
    line-height: 1;
}

/* Hidden on desktop */
.fab-label { display: none; }
.fab-toggle { display: none; }

/* Tooltips - Desktop */
.fab-button::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #212226;
    color: #fff;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-family: "Oxanium", sans-serif;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.fab-button::after {
    content: '';
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #212226;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.fab-button:hover::before,
.fab-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===== Floating Modals ===== */
.floating-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.floating-modal-overlay.open {
    display: flex;
}

.floating-modal-container {
    background: #fff;
    border-radius: 10px;
    width: 440px;
    max-width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 6px 30px 5px rgba(33,34,38,0.15);
    animation: floatingModalIn 0.3s ease;
}

@keyframes floatingModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.floating-modal-header {
    background: #212226;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px 10px 0 0;
}

.floating-modal-header img {
    max-height: 40px;
}

.floating-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.floating-modal-close:hover {
    color: #e8b006;
}

.floating-modal-body {
    padding: 25px;
}

.floating-modal-title {
    font-family: "Oxanium", sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #212226;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.floating-modal-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e8b006;
    border-radius: 2px;
}

.floating-modal-body .form-group {
    margin-bottom: 20px;
}

.floating-modal-body .form-control {
    border: 1px solid #e2e2e2;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 15px;
    font-family: roboto, sans-serif;
    color: #666;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-modal-body textarea.form-control {
    border-radius: 10px !important;
}

.floating-modal-body .form-control:focus {
    border-color: #e8b006;
    box-shadow: 0 0 0 2px rgba(232,176,6,0.15);
    outline: none;
}

.floating-modal-body .default-btn.active {
    text-align: center;
    display: block;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
}

.floating-modal-body small {
    color: #666;
    font-family: roboto, sans-serif;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {

    .floating-widget {
        position: fixed;
        right: 10px;
        left: auto;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 10px;
        z-index: 997;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Override collapsed state on mobile — always show icons */
    .floating-widget.collapsed .fab-button {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    /* Hide toggle button — not needed */
    .fab-toggle { display: none !important; }

    /* Circular icon only */
    .fab-button {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        gap: 0;
        justify-content: center;
        box-shadow: 0 3px 12px rgba(0,0,0,0.35);
        border: 2px solid #e8b006;
        background: #e8b006;
        color: #212226;
        overflow: hidden;
        transition: width 0.3s ease, border-radius 0.3s ease, padding 0.3s ease, background 0.3s ease;
    }

    .fab-button:hover,
    .fab-button.touched {
        width: auto;
        border-radius: 50px;
        padding: 10px 16px 10px 12px;
        gap: 10px;
    }

    .fab-button:active {
        background: #212226;
        border-color: #212226;
        color: #e8b006;
    }

    .fab-button i {
        font-size: 18px;
        width: 22px;
        min-width: 22px;
        text-align: center;
        flex-shrink: 0;
    }

    .fab-label {
        display: block;
        font-family: "Oxanium", sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #fff;
        white-space: nowrap;
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-width 0.3s ease, opacity 0.3s ease;
    }

    .fab-button:hover .fab-label,
    .fab-button.touched .fab-label {
        max-width: 200px;
        opacity: 1;
    }

    /* Hide desktop tooltips */
    .fab-button::before,
    .fab-button::after {
        display: none;
    }

    /* Modal adjustments */
    .floating-modal-container,
    .floating-modal-container[style*="width:700px"] {
        width: 95% !important;
        margin: 10px;
    }

    .floating-modal-body {
        padding: 20px 15px;
    }

    .floating-modal-body .form-control {
        padding: 9px 16px;
        font-size: 14px;
    }
}


/* ---- homepage training section ---- */
.pt-training-section { background:#f7f3eb; padding:0; overflow:hidden; }
         .pt-training-section .pt-grid { display:grid; grid-template-columns: 1.25fr 1fr; min-height: 440px; }
         .pt-training-section .pt-left  { padding: 60px 60px 60px 60px; background:#fff; position:relative; z-index:1; }
         .pt-training-section .pt-right { background: linear-gradient(135deg,#212226 0%,#0e0f12 100%); position:relative; }
         .pt-training-section .pt-right img.pt-photo { width:100%; height:100%; object-fit:cover; display:block; }
         .pt-training-section .pt-right::before {
            content:''; position:absolute; left:-1px; top:0; bottom:0; width:60px;
            background:#fff; clip-path: polygon(0 0, 100% 0, 0 50%, 100% 100%, 0 100%);
            z-index:2;
         }
         .pt-training-section h2.pt-title {
            font-family:'Oxanium',sans-serif; color:#212226; font-size:32px; line-height:1.15; font-weight:800;
            letter-spacing:0.5px; margin-bottom:6px; text-transform:uppercase;
         }
         .pt-training-section h2.pt-title .accent { color:#e8b006; }
         .pt-training-section .pt-rule { width:120px; height:3px; background:#e8b006; margin:10px 0 22px; }
         .pt-training-section .pt-body p { color:#333; font-size:15px; line-height:1.65; margin-bottom:12px; }
         .pt-training-section .pt-cards { display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; border:1.5px solid #d9c98a; padding:22px 14px; margin:24px 0; border-radius:4px; background:#fff; }
         .pt-training-section .pt-card { text-align:center; }
         .pt-training-section .pt-card .pt-icon { width:60px; height:60px; border-radius:50%; background:#000; color:#e8b006; display:inline-flex; align-items:center; justify-content:center; font-size:26px; margin-bottom:10px; }
         .pt-training-section .pt-card .pt-card-title { font-family:'Oxanium',sans-serif; font-size:13px; font-weight:700; color:#212226; text-transform:uppercase; letter-spacing:0.5px; line-height:1.2; margin:0 0 6px; }
         .pt-training-section .pt-card .pt-card-cap { font-size:12px; color:#555; line-height:1.4; margin:0; }
         .pt-training-section .pt-cta { display:inline-flex; align-items:center; gap:10px; background:#e8b006; color:#212226; font-family:'Oxanium',sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:1px; font-size:15px; padding:14px 28px; border-radius:2px; text-decoration:none; }
         .pt-training-section .pt-cta:hover { background:#d4a004; color:#212226; }
         .pt-training-section .pt-cta i { font-size:18px; }
         .pt-training-section .pt-tagline { font-size:13px; color:#777; margin-top:10px; font-style:italic; }
         @media (max-width: 991px) {
            .pt-training-section .pt-grid { grid-template-columns: 1fr; }
            .pt-training-section .pt-left  { padding: 40px 24px; }
            .pt-training-section .pt-right { order: -1; height: 260px; min-height: 0; margin: 0 24px; border-radius: 6px; }
            .pt-training-section .pt-right::before { display:none; }
            .pt-training-section h2.pt-title { font-size:24px; }
            .pt-training-section .pt-cards { grid-template-columns: repeat(2, 1fr); }
         }
