/* Dual Button Widget Styles */
.eafe-dual-button-container {
    display: flex;
    position: relative;
    isolation: isolate;
}

.eafe-dual-button-layout-horizontal {
    flex-direction: row;
}

.eafe-dual-button-layout-vertical {
    flex-direction: column;
}

.eafe-dual-button-layout-split {
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.eafe-dual-button-align-left {
    justify-content: flex-start;
}

.eafe-dual-button-align-center {
    justify-content: center;
}

.eafe-dual-button-align-right {
    justify-content: flex-end;
}

.eafe-dual-button-full-width.eafe-dual-button-layout-horizontal {
    width: 100%;
}

.eafe-dual-button-full-width.eafe-dual-button-layout-vertical {
    width: 100%;
}

.eafe-dual-button-full-width.eafe-dual-button-style-6 {
    width: 100%;
}

.eafe-dual-button-full-width .eafe-dual-button {
    flex: 1;
    text-align: center;
}

.eafe-dual-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: none;
    line-height: 1.4;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    letter-spacing: 0.04em;
}

.eafe-dual-button:hover {
    text-decoration: none!important;
}

.eafe-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure icons are displayed properly */
.eafe-button-icon .eafe-icon {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    font-size: inherit;
}

/* Handle SVG icons */
.eafe-button-icon svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
}

/* FontAwesome specific fixes */
.eafe-button-icon .fab,
.eafe-button-icon .fas,
.eafe-button-icon .far,
.eafe-button-icon .fal,
.eafe-button-icon .fad {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Pro', 'Font Awesome 5 Brands' !important;
    font-weight: 900;
    line-height: 1;
}

.eafe-button-icon .far {
    font-weight: 400;
}

.eafe-button-icon .fal {
    font-weight: 300;
}

.eafe-button-icon .fab {
    font-weight: 400;
    font-family: 'Font Awesome 5 Brands' !important;
}

/* Elementor eicons specific */
.eafe-button-icon .eicon {
    font-family: 'eicons', sans-serif !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
}

/* Ensure icon spacing works correctly */
.eafe-button-icon-before {
    margin-right: 8px;
}

.eafe-button-icon-after {
    margin-left: 8px;
}

.eafe-button-text {
    display: inline-block;
}

/* Style 1 - Default (Initial Style) */
.eafe-dual-button-style-1 .eafe-dual-button {
    background-color: #6ec1e4;
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 12px 24px;
}

.eafe-dual-button-style-1 .eafe-dual-button:hover {
    background-color: #5aa8d0;
    transform: translateY(-2px);
}

/* Style 2 - Outline */
.eafe-dual-button-style-2 .eafe-dual-button {
    background-color: transparent;
    color: #6ec1e4;
    border: 2px solid #6ec1e4;
    border-radius: 4px;
    padding: 12px 24px;
}

.eafe-dual-button-style-2 .eafe-dual-button:hover {
    background-color: #6ec1e4;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Style 3 - Gradient */
.eafe-dual-button-style-3 .eafe-dual-button {
    background: linear-gradient(45deg, #6ec1e4, #54595f);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
}

.eafe-dual-button-style-3 .eafe-dual-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.eafe-dual-button-style-3 .eafe-dual-button:hover::before {
    left: 100%;
}

.eafe-dual-button-style-3 .eafe-dual-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Style 4 - 3D */
.eafe-dual-button-style-4 .eafe-dual-button {
    background-color: #6ec1e4;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    box-shadow: 0 5px 0 #4a8fb1;
    transform: translateY(0);
}

.eafe-dual-button-style-4 .eafe-dual-button:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #4a8fb1;
}

/* Style 5 - Text */
.eafe-dual-button-style-5 .eafe-dual-button {
    background-color: transparent;
    color: #6ec1e4;
    border: none;
    padding: 12px 24px;
    position: relative;
}

.eafe-dual-button-style-5 .eafe-dual-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6ec1e4;
    transition: width 0.3s ease;
}

.eafe-dual-button-style-5 .eafe-dual-button:hover::after {
    width: 100%;
}

.eafe-dual-button-style-5 .eafe-dual-button:hover {
    background-color: transparent;
    color: #4a8fb1;
}

/* Style 6 - Split */
.eafe-dual-button-style-6 .eafe-dual-button-container {
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.eafe-dual-button-style-6 .eafe-dual-button-1 {
    flex: 1 1 0;
    padding: 16px 28px;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
    background: #ec4d8b;
}

.eafe-dual-button-style-6 .eafe-dual-button-2 {
    flex: 1 1 0;
    padding: 16px 28px;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    background: #6a49ff;
    position: relative;
}

/* Subtle divider where halves meet */
.eafe-dual-button-style-6 .eafe-dual-button-2::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.25);
}

/* Hover states for split style */
.eafe-dual-button-style-6 .eafe-dual-button-1:hover {
    filter: brightness(1.05);
}

.eafe-dual-button-style-6 .eafe-dual-button-2:hover {
    filter: brightness(1.05);
}

.eafe-dual-button-style-6 .eafe-dual-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: -3px;
}

/* The centered "OR" badge */
.eafe-dual-button-middle-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    cursor: default;
}

/* Colored outer ring split between the two halves */
.eafe-dual-button-middle-text::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
            #ec4d8b 0deg 180deg,
            #6a49ff 180deg 360deg
    );
    z-index: -1;
    filter: saturate(0.9);
    border: 5px solid #fff;
}

/* Responsive Design */
@media (max-width: 767px) {
    .eafe-dual-button-layout-horizontal {
        flex-direction: column;
    }

    .eafe-dual-button-layout-horizontal .eafe-dual-button-2 {
        margin-left: 0 !important;
        margin-top: 15px;
    }

    .eafe-dual-button-style-6 .eafe-dual-button-container {
        flex-direction: column;
        border-radius: 10px;
    }

    .eafe-dual-button-style-6 .eafe-dual-button-1 {
        border-radius: 10px 10px 0 0;
    }

    .eafe-dual-button-style-6 .eafe-dual-button-2 {
        border-radius: 0 0 10px 10px;
    }

    .eafe-dual-button-style-6 .eafe-dual-button-2::before {
        display: none;
    }

    .eafe-dual-button-style-6 .eafe-dual-button-middle-text {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 15px auto;
        order: 2;
    }

    .eafe-dual-button-align-left,
    .eafe-dual-button-align-right {
        align-items: center !important;
    }

    .eafe-dual-button-full-width .eafe-dual-button {
        width: 100%;
    }

    .eafe-dual-button-style-6 .eafe-dual-button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .eafe-dual-button-middle-text {
        width: 42px;
        height: 42px;
        line-height: 42px;
        font-size: 12px;
    }
}

/* Animation Enhancements */
.eafe-dual-button.elementor-animation-grow:hover {
    transform: scale(1.05) translateY(-2px);
}

.eafe-dual-button.elementor-animation-shrink:hover {
    transform: scale(0.95) translateY(-2px);
}

.eafe-dual-button.elementor-animation-pulse:hover {
    animation: eafe-pulse 1s infinite;
}

@keyframes eafe-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}