/* Debt Consolidation Hero Widget Styles */

.debt-hero {
    padding: 60px 0 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.debt-hero__container {
    max-width: 1270px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Text Content Styles */
.debt-hero__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.debt-hero__heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: #000;
}

.debt-hero__heading span {
    color: #49B46B;
}

.debt-hero__description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #374151;
    margin: 32px 0;    
}

.debt-hero__description em {
    font-style: italic;
}

/* Form Styles */
.debt-hero__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.debt-hero__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
}

.debt-hero__checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #49B46B;
    cursor: pointer;
}

.debt-hero__checkbox-text {
    user-select: none;
}

/* Tooltip Styles */
.smo-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.smo-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    font-weight: 800;
    cursor: help;
    line-height: 1;
}

.smo-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.smo-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1F2937;
}

.smo-info-tooltip:hover .smo-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.debt-hero__button-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    flex-direction: column;
}

@media (min-width: 992px) {
    .debt-hero__button-wrapper {
        flex-direction: row;
    }
}

.debt-hero__personal-key-wrapper {
    width: 100%;
    margin: 0;
}

body .debt-hero__personal-key-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #EDEEF0;
    border-radius: 4px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.debt-hero__personal-key-input:focus {
    border-color: #49B46B;
    box-shadow: 0 0 0 3px rgba(73, 180, 107, 0.1);
}

.debt-hero__personal-key-input::placeholder {
    color: #9CA3AF;
}

.debt-hero__button {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    max-width: 230px;
    width: 100%;
}

.debt-hero__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
    text-decoration: none;
}

/* Features Section */
.debt-hero__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    margin-top: 42px;
}

.debt-hero__feature {
    display: flex;
    flex-direction: column;
}

.debt-hero__feature-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.debt-hero__feature-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
    max-width: 100px;
}

/* Badges */
.debt-hero__badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}

.debt-hero__badge {
    display: flex;
    align-items: center;
}

.debt-hero__badge-image {
    max-width: 120px;
    height: auto;
}

/* Image Section */
.debt-hero__image-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.debt-hero__image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 550px;
}

.debt-hero__main-image {
    position: relative;
    z-index: 2;
    max-width: 80%;
    height: auto;
    border-radius: 15px !important;
    object-fit: cover;
}

/* Floating Boxes on Image */
.debt-hero__floating-box {
    position: absolute !important;
    z-index: 10;
    border-radius: 20px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
    /* Width controlled by Elementor control, not CSS */
    /* Position controlled by CSS custom properties for responsive behavior */
}

/* All animations handled by AOS only - no CSS animations */

.debt-hero__floating-box:hover {
    transform: translateY(-12px) scale(1.08) rotate(-2deg);
    box-shadow: 
        0 25px 60px rgba(73, 180, 107, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(243, 244, 246, 0.95) 100%);
    border-color: rgba(73, 180, 107, 0.4);
}

.debt-hero__floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 10px;
}

/* Removed pulse animation - using AOS animations instead */

/* Icon rotates on box hover */
.debt-hero__floating-box:hover .debt-hero__floating-icon {
    transform: rotate(360deg) scale(1.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.debt-hero__floating-text {
    font-size: 16px;
    font-weight: 400;
    color: #1f2937;
    line-height: 100%;
    /* Text wraps to show full content */
}

.debt-hero__image-highlight-badge {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    align-items: flex-start;
    text-align: left;
    z-index: 20;
}

.debt-hero__image-highlight-meta {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.debt-hero__image-highlight-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}


/* Reverse Layout */

.debt-hero--reverse .debt-hero__content {
    order: 2;
}

.debt-hero--reverse .debt-hero__image-section {
    order: 1;
}

/* Responsive Design */
/* Tablet Landscape (tablet_extra) - typically max-width: 1200px */
@media (max-width: 1200px) and (min-width: 1025px) {
    .debt-hero__floating-box {
        /* Use tablet landscape position values */
        left: var(--box-left-tablet-extra, var(--box-left-desktop)) !important;
        top: var(--box-top-tablet-extra, var(--box-top-desktop)) !important;
    }
}

@media (max-width: 1024px) {
    .debt-hero__container {
        gap: 40px;
        grid-template-columns: 1fr;
    }
    
    .debt-hero__heading {
        font-size: 2.8rem;
    }
    
    .debt-hero__features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .debt-hero__floating-box {
        padding: 12px 8px;
        /* Use tablet position values */
        left: var(--box-left-tablet, var(--box-left-tablet-extra, var(--box-left-desktop))) !important;
        top: var(--box-top-tablet, var(--box-top-tablet-extra, var(--box-top-desktop))) !important;
    }

    .debt-hero__floating-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .debt-hero {
        padding: 40px 0;
    }
    
    .debt-hero__container {
        gap: 30px;
        padding: 0 15px;
    }
    
    .debt-hero__heading {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .debt-hero__description {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .debt-hero__form {
        align-items: center;
    }
    
    .debt-hero__checkbox {
        justify-content: center;
    }
    
    .debt-hero__features {
        gap: 20px;
        padding: 20px;
    }
    
    .debt-hero__feature {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .debt-hero__feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .debt-hero__feature-text {
        font-size: 1rem;
    }
    
    .debt-hero__badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .debt-hero__badge-image {
        max-width: 100px;
    }
    
    /* Floating boxes - use mobile position values */
    .debt-hero__floating-box {
        padding: 12px 16px;
        /* Use mobile position values */
        left: var(--box-left-mobile, var(--box-left-tablet, var(--box-left-desktop))) !important;
        top: var(--box-top-mobile, var(--box-top-tablet, var(--box-top-desktop))) !important;
    }
    
    .debt-hero__floating-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .debt-hero__floating-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .debt-hero__heading {
        font-size: 1.8rem;
    }
    
    .debt-hero__description {
        font-size: 1rem;
    }
    
    .debt-hero__button {
        padding: 12px 30px;
        font-size: 0.9rem;
        max-width: 100%;
        width: 100%;
    }
    
    .debt-hero__features {
        padding: 15px;
    }
    
    .debt-hero__feature {
        gap: 10px;
    }
    
    .debt-hero__feature-icon {
        font-size: 1.5rem;
    }
    
    .debt-hero__feature-text {
        font-size: 0.9rem;
    }
    
    .debt-hero__badge-image {
        max-width: 80px;
    }
    
    /* Floating boxes - keep same position on mobile, just smaller padding */
    .debt-hero__floating-box {
        padding: 10px 14px;
        gap: 8px;
        /* Position and width stay the same as desktop! */
    }
    
    .debt-hero__floating-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
