/* ==========================================================================
   Phase M2.4: Homepage Hero & Popup Conversion Optimization
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section Adjustments
   -------------------------------------------------------------------------- */
.hero-section-wrapper {
    position: relative;
    z-index: 1;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   2. Secondary CTA (Explore Solutions)
   -------------------------------------------------------------------------- */
.btn-secondary-outline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    border: 2px solid #0a4181 !important;
    color: #0a4181 !important;
    padding: 14px 35px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: capitalize !important;
    min-height: 52px;
}

.btn-secondary-outline:hover {
    background-color: #0a4181 !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   3. Hero Trust Statement
   -------------------------------------------------------------------------- */
.hero-trust-stars {
    margin-top: 15px;
    font-size: 14px;
    color: #555555;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   4. Global Popup Redesign (Scoped to #popmake-38151)
   -------------------------------------------------------------------------- */

/* Fix Rendering Issue: Enforce solid background, fully opaque, remove laggy transitions */
#popmake-38151.pum-container {
    background-color: #ffffff !important;
    opacity: 1 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    overflow: hidden !important;
    /* Remove transforms and filters that could cause rendering lag */
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
}

/* Left Panel Content Scoped */
#popmake-38151 .pum-content h2,
#popmake-38151 .pum-content .elementor-heading-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

#popmake-38151 .pum-content .elementor-text-editor {
    font-size: 16px !important;
    color: #4a4a4a !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

/* Benefits List inside Popup */
#popmake-38151 .pum-content ul.benefits-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
}

#popmake-38151 .pum-content ul.benefits-list li {
    font-size: 15px !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    line-height: 1.5 !important;
}

#popmake-38151 .pum-content ul.benefits-list li::before {
    content: "✓" !important;
    color: #0a4181 !important;
    font-weight: bold !important;
    margin-right: 10px !important;
    font-size: 16px !important;
}

/* Popup Trust Section */
#popmake-38151 .pum-content .popup-trust-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eaeaea;
}

#popmake-38151 .pum-content .popup-trust-section .stars {
    color: #f5b301;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: block;
}

#popmake-38151 .pum-content .popup-trust-section p {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* Popup Contact Info Alignment */
#popmake-38151 .pum-content .contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

#popmake-38151 .pum-content .contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

#popmake-38151 .pum-content .contact-info-item i {
    color: #0a4181;
    font-size: 18px;
}

#popmake-38151 .pum-content .contact-info-item span {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. CF7 Form Styling inside Popup
   -------------------------------------------------------------------------- */
#popmake-38151 .pum-content .akratech-form-group {
    margin-bottom: 18px;
}

#popmake-38151 .pum-content .akratech-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

#popmake-38151 .pum-content .wpcf7-form-control-wrap input,
#popmake-38151 .pum-content .wpcf7-form-control-wrap textarea {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
    background-color: #fafafa;
}

#popmake-38151 .pum-content .wpcf7-form-control-wrap input:focus,
#popmake-38151 .pum-content .wpcf7-form-control-wrap textarea:focus {
    border-color: #0a4181;
    background-color: #fff;
    outline: none;
}

#popmake-38151 .pum-content .wpcf7-form-control-wrap textarea {
    min-height: 100px;
    resize: vertical;
}

/* Style Native CF7 Submit Button to match Xamin button */
#popmake-38151 .wpcf7-submit {
    background-color: #0a4181 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 35px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease !important;
}

#popmake-38151 .wpcf7-submit:hover {
    background-color: #083060 !important;
}

/* Close Button Enhancement */
#popmake-38151 .pum-close {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    text-align: center !important;
    right: 15px !important;
    top: 15px !important;
    border: none !important;
    font-size: 18px !important;
    padding: 0 !important;
}

#popmake-38151 .pum-close:hover {
    background-color: #e0e0e0 !important;
}

/* --------------------------------------------------------------------------
   6. Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-cta-group {
        justify-content: flex-start;
    }

    #popmake-38151 .pum-content h2 {
        font-size: 26px !important;
    }
}

@media (max-width: 767px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group a {
        width: 100%;
        text-align: center;
    }

    .hero-trust-stars {
        text-align: center;
        justify-content: center;
    }

    #popmake-38151.pum-container {
        width: 95% !important;
        margin: 2.5% auto !important;
    }
}