/* ==========================================================================
   FOOTER CTA SECTION
   ========================================================================== */

.footer-cta-section {
    background-color: transparent;
    position: relative;
    z-index: 10;
    margin-bottom: 0;
}

.footer-cta-wrapper {
    background-color: var(--color-deep-navy);
    border-radius: 6px;
    padding: 40px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(17, 20, 26, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* .footer-cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(32, 110, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
} */

.footer-cta-content {
    position: relative;
    z-index: 2;
}

.footer-cta-title {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.footer-cta-desc {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-cta-action {
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .footer-cta-wrapper {
        padding: 50px 40px;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-cta-title {
        font-size: 32px;
    }

    .footer-cta-content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .footer-cta-wrapper {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .footer-cta-title {
        font-size: 28px;
    }

    .footer-cta-desc {
        font-size: 16px;
    }
}

/* ==========================================================================
   MAIN FOOTER SECTION
   ========================================================================== */
.finox-footer {
    background-color: var(--color-white);
    color: var(--color-navy);
    padding-top: 70px;
    position: relative;
    z-index: 1;
}

/* Dotted World Map Background Overlay */
.finox-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/world-map-dotted.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.04;
    filter: brightness(0);
    z-index: 0;
    pointer-events: none;
}

.finox-footer>.container-fluid {
    position: relative;
    z-index: 2;
}

.footer-col {
    margin-bottom: 40px;
}

.footer-text {
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 17px;
    color: #4b5563;
}

/* Footer Heading */
.footer-heading {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

/* Footer Links */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: #374151;
    font-size: 17px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    /* Remove underline */
}

.footer-links a::before {
    content: '\2014';
    /* Dash */
    color: var(--color-primary);
    margin-right: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-contact li::before {
    content: '\2014';
    /* Dash */
    color: var(--color-primary);
    margin-right: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.footer-contact li:hover {
    transform: translateX(5px);
}

.footer-contact li a {
    color: #374151;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact li:hover a {
    color: var(--color-primary);
}

/* Social Media */
.footer-social-wrapper {
    display: flex;
    flex-direction: column;
}

.footer-social-heading {
    font-size: 18px;
    margin-bottom: 14px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-navy);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-social a::before,
.footer-social a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    clip-path: polygon(0 0, 0 0, -30% 100%, 0 100%);
}

.footer-social a::after {
    background-color: rgba(32, 110, 247, 0.25);
    transition: clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social a::before {
    background-color: var(--color-primary);
    transition: clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.footer-social a:hover::before,
.footer-social a:hover::after {
    clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%);
}

.footer-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(32, 110, 247, 0.2);
}

.footer-social a i {
    position: relative;
    z-index: 2;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: #6b7280;
}

.footer-bottom p {
    color: #4b5563;
    font-size: 17px;
}

.footer-bottom a {
    color: var(--color-primary);
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--color-primary-dark);
}

/* ==========================================================================
   RESPONSIVE FOOTER SPACING
   ========================================================================== */
@media (max-width: 991px) {
    .footer-cta-section {
        margin-bottom: 0;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .finox-footer {
        padding-top: 60px;
    }

    .footer-heading {
        font-size: 24px;
    }

    .footer-bottom {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .footer-cta-section {
        margin-bottom: 0;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .finox-footer {
        padding-top: 50px;
    }

    .finox-footer::before {
        background-size: cover;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }

    .footer-heading {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .footer-bottom {
        margin-top: 30px;
        padding: 20px 0;
    }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 30px;
    bottom: 110px;
    z-index: 99;
    background: var(--color-primary);
    width: 44px;
    height: 44px;
    border-radius: 6px;
    transition: all 0.4s;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top i {
    font-size: 28px;
    color: var(--color-white);
    line-height: 0;
}

.back-to-top:hover {
    background: var(--color-deep-navy);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 767px) {
    .back-to-top {
        right: 20px;
        bottom: 95px;
    }
}

/* ==========================================================================
   WHATSAPP WIDGET
   ========================================================================== */
.whatsapp-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    z-index: 999;
}

.whatsapp-fab {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.whatsapp-fab::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    left: auto;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.whatsapp-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-chat-header {
    background-color: #179383;
    /* Green matching the screenshot */
    color: white;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.whatsapp-chat-body {
    background-color: #E3DDD6;
    /* Light gray/beige */
    padding: 20px;
    min-height: 200px;
}

.whatsapp-message {
    background: white;
    padding: 14px 16px;
    border-radius: 0 8px 8px 8px;
    font-size: 15px;
    color: #000;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    font-weight: 400;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    border-width: 0 8px 10px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.whatsapp-chat-footer {
    padding: 16px;
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

#whatsapp-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 15px;
    resize: none;
    outline: none;
    height: 44px;
    font-family: inherit;
    color: #444;
}

#whatsapp-input:focus {
    border-color: #179383;
}

.whatsapp-send-btn {
    background: transparent;
    border: none;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.whatsapp-send-btn:hover {
    color: #179383;
}

@media (max-width: 767px) {
    .whatsapp-widget-container {
        right: 20px;
        left: auto;
        bottom: 20px;
    }

    .whatsapp-chat-box {
        width: 280px;
    }
}

/* ==========================================================================
   STICKY LEFT SOCIAL SIDEBAR
   ========================================================================== */
.sticky-social-sidebar {
    position: fixed;
    top: 75%;
    left: 8px;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-toggle-btn {
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.sticky-social-sidebar:hover .social-toggle-btn {
    background-color: var(--color-deep-navy);
    transform: rotate(180deg);
}

.social-icons-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.sticky-social-sidebar:hover .social-icons-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sticky-social-sidebar .social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 20px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
}

.sticky-social-sidebar:hover .social-btn {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sticky-social-sidebar:hover .social-btn:hover {
    transform: scale(1.1);
}

/* Staggered bottom-to-top animation */
.sticky-social-sidebar:hover .social-btn:nth-child(4) {
    transition-delay: 0.05s;
}

.sticky-social-sidebar:hover .social-btn:nth-child(3) {
    transition-delay: 0.1s;
}

.sticky-social-sidebar:hover .social-btn:nth-child(2) {
    transition-delay: 0.15s;
}

.sticky-social-sidebar:hover .social-btn:nth-child(1) {
    transition-delay: 0.2s;
}

.sticky-social-sidebar .social-btn {
    transition-delay: 0s;
}


/* Original Brand Colors */
.sticky-social-sidebar .social-btn.facebook {
    background-color: #1877F2;
}

.sticky-social-sidebar .social-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.sticky-social-sidebar .social-btn.linkedin {
    background-color: #0A66C2;
}

.sticky-social-sidebar .social-btn.twitter {
    background-color: #000000;
}

/* Custom Tooltip */
.sticky-social-sidebar .social-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    background-color: var(--color-deep-navy, #1e293b);
    color: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    font-weight: 500;
    font-family: var(--font-body);
}

/* Tooltip Arrow */
.sticky-social-sidebar .social-btn::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(7px);
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--color-deep-navy, #1e293b) transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

/* Hover Effect for Tooltip */
.sticky-social-sidebar .social-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
}

.sticky-social-sidebar .social-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0px);
}

/* Hide on mobile for better UX (optional) */
@media (max-width: 767px) {
    .sticky-social-sidebar {
        display: none;
    }
}

/* ==========================================================================
   FOOTER CATALOG BUTTON & MODAL
   ========================================================================== */

.footer-catalog-wrapper {
    margin-top: 24px;
}

.footer-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
}

.footer-catalog-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.footer-catalog-btn:hover i {
    transform: translateY(3px);
}

/* Catalog Modal */
.catalog-modal .modal-dialog {
    max-width: 480px;
    margin: 1.75rem auto;
}

.catalog-modal-content {
    background-color: var(--color-white, #ffffff);
    border: 1px solid rgba(32, 110, 247, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(24, 29, 41, 0.2);
    overflow: hidden;
}

.catalog-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 14px 24px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.catalog-modal-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.catalog-modal-icon {
    width: 46px;
    height: 46px;
    background-color: rgba(32, 110, 247, 0.1);
    color: var(--color-primary, #206ef7);
    border: 1px solid rgba(32, 110, 247, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.catalog-modal-title {
    font-family: var(--font-heading, "Raleway", sans-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--color-navy, #232836);
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.catalog-modal-subtitle {
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.catalog-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

.catalog-modal-close:hover {
    background-color: #f1f5f9;
    color: var(--color-navy, #232836);
}

.catalog-modal-body {
    padding: 20px 24px 24px 24px;
}

.catalog-form-group {
    margin-bottom: 20px;
}

.catalog-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy, #232836);
    margin-bottom: 8px;
    font-family: var(--font-body, "Inter", sans-serif);
}

.catalog-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 17px;
    pointer-events: none;
    transition: color 0.25s ease;
}

.catalog-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 42px;
    font-size: 14.5px;
    color: var(--color-text, #202532);
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.25s ease;
    outline: none;
    font-family: var(--font-body, "Inter", sans-serif);
}

.catalog-input:focus {
    background-color: #ffffff;
    border-color: var(--color-primary, #206ef7);
    box-shadow: 0 0 0 3px rgba(32, 110, 247, 0.15);
}

.catalog-input-wrapper:focus-within .catalog-input-icon {
    color: var(--color-primary, #206ef7);
}

.catalog-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.catalog-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.catalog-error-msg {
    font-size: 12.5px;
    color: #dc3545;
    margin-top: 6px;
    display: none;
}

.catalog-form-response {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 16px;
    display: none;
}

.catalog-form-response.alert-success {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.catalog-form-response.alert-danger {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.catalog-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.catalog-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--btn-radius, 6px);
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-family: var(--font-heading, "Raleway", sans-serif);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.catalog-cancel-btn:hover {
    background-color: #e2e8f0;
    color: var(--color-navy, #232836);
}

.catalog-submit-btn {
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
}

@media (max-width: 575px) {
    .catalog-modal .modal-dialog {
        margin: 1rem;
    }

    .catalog-modal-header {
        padding: 18px 18px 12px 18px;
    }

    .catalog-modal-body {
        padding: 16px 18px 20px 18px;
    }

    .catalog-modal-title {
        font-size: 17px;
    }

    .catalog-modal-actions {
        flex-direction: column-reverse;
        width: 100%;
        gap: 8px;
    }

    .catalog-modal-actions .btn,
    .catalog-modal-actions .catalog-cancel-btn {
        width: 100%;
    }
}