.nts-integration {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;

    // Integration Header Section
    h3 {
        font-size: 2.25rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
        text-align: center;
    }

    p {
        font-size: 1.125rem;
        color: #505965;
        max-width: 600px;
        margin: -20px auto;
        line-height: 1.6;
        position: relative;
        padding: 0.5rem 1rem;

        &::before,
        &::after {
            content: '';
            position: absolute;
            width: 3px;
            height: 0;
            background: #008080;
            transition: height 0.3s ease;
        }

        &::before {
            left: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        &::after {
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        &:hover {

            &::before,
            &::after {
                height: 80%;
            }
        }
    }

    // Title and heading styles
    .section-title {
        font-size: 1.75rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 1.5rem;
        text-align: center;

        &::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: #008080;
            margin: 0.5rem auto 0;
            border-radius: 2px;
        }
    }

    .sub-heading {
        font-size: 1.25rem;
        color: #505965;
        margin-bottom: 1rem;
        text-align: center;
    }

    // Common image styles
    .form-integration-img {
        display: flex;
        align-items: center;
        justify-content: center;

        img {
            max-width: 100%;
            height: auto;
            cursor: pointer;
            mix-blend-mode: multiply;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

            &:hover {
                transform: scale(1.05);
                filter: brightness(1.05);
            }
        }
    }

    // Specific logo sizes
    .integration-logo {
        &.formflow-img {
            width: 70px;
            margin-left: -0.75rem;
        }

        &.more-forms-img {
            width: 50px;
        }

        &.cf7-img {
            width: 155px;
        }

        &.WooCommerce-img {
            width: 150px;
            margin-top: -2rem;
        }

        &.wpforms-img {
            width: 165px;
        }

        &.gravity-img {
            width: 175px;
        }

        &.formidable-img {
            width: 155px;
        }
    }

    // Form title
    .formTitle {
        position: absolute;
        bottom: 70px;
        width: 100%;
        text-align: center;
        font-size: 1.25rem;
        font-weight: 600;
        color: #2c3e50;
        transition: color 0.25s ease;
    }

    // Integration widgets
    .nts_integration_widget,
    .nts_integration_widget_bottom {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
        border-radius: 1rem;

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }
    }

    .nts_integration_widget {
        min-height: 180px;
    }

    .nts_integration_widget_bottom {
        min-height: 150px;
    }

    // Left widget section
    .wcs_left {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5.5rem;
        border-radius: 1rem;
        background: #fff;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

        &:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);

            .formTitle {
                color: #008080;
            }
        }
    }

    // Overlay styles
    .integration-inactive-overlay,
    .feature-inactive-overlay {
        position: absolute;
        inset: 0;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 1rem;
        padding: 1rem;
        text-align: center;
        opacity: 0;
        transition: opacity 0.3s ease;

        .inactive-text {
            margin-bottom: 1rem;
            font-size: 1.125rem;
            font-weight: 500;
        }

        .install-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            margin: auto;
            flex-direction: column;
        }


        .formdeck-button {
            background-color: #008080;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 5px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
            box-shadow: 0 4px 6px rgba(74, 108, 247, 0.25);
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;

            &:hover {
                background-color: #3a5cd7;
                transform: translateY(-2px);
                box-shadow: 0 6px 8px rgba(74, 108, 247, 0.3);
            }

            &:active {
                transform: translateY(0);
                box-shadow: 0 2px 4px rgba(74, 108, 247, 0.2);
            }

            .button-icon {
                margin-right: 10px;
                font-size: 16px;
            }
        }

        @media screen and (max-width: 768px) {
            .formdeck-button {
                padding: 10px 20px;
                font-size: 14px;
            }
        }


    }

    .integration-inactive-overlay {
        background-color: rgba(0, 0, 0, 0.65);

        .inactive-text {
            color: #fff;
        }
    }

    .feature-inactive-overlay {
        background-color: rgba(255, 255, 255, 0.97);

        .inactive-text {
            color: #2c3e50;
        }
    }

    .wcs_left:hover {

        .integration-inactive-overlay,
        .feature-inactive-overlay {
            display: flex;
            opacity: 1;
        }
    }

    // Button styles
    .install-action {
        min-width: 120px;
        padding: 0.75rem 1rem;
        border: none;
        border-radius: 0.5rem;
        background-color: #008080;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease;

        &:hover {
            background-color: #006666;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        &:active {
            transform: translateY(0);
        }

        &:focus {
            outline: 2px solid #008080;
            outline-offset: 2px;
        }
    }

    // Form input fields
    .integration-setting-save {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        .fields {
            display: flex;
            align-items: center;
            gap: 1rem;

            @media (max-width: 576px) {
                flex-direction: column;
                align-items: stretch;
            }
        }
    }

    // Upcoming badge
    .inactive-text.upcomming {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0.75rem;
        background-color: #008080;
        color: white;
        font-size: 0.75rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: auto;
        min-width: 80px;
        height: auto;
        min-height: 20px;
        transition: all 0.25s ease;

        &:hover {
            background-color: #006666;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
    }
}