/* OPTION 1 */
.cta-floater-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--yellow100);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;

    opacity: 0;
    transform: scale(0.8);

    /* Apply the PopIn animation on page load, 
       delay it by 2 seconds, and keep it in place after it's finished */
    animation:
        popIn 0.8s ease-out forwards,
        /* The pop-in effect (0.8s duration) */
        softPulse 3s infinite ease-in-out;
    /* The ongoing pulse effect */

    animation-delay: 2s, 2.8s;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(30px, 30px) scale(0.8);
        /* Start slightly off bottom-right, scaled down */
    }

    60% {
        opacity: 1;
        transform: translate(0, 0) scale(1.1);
        /* Overshoot its final position (the 'pop') */
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        /* Settle at final position */
    }
}

.cta-floater-spinner {
    position: absolute;
    width: 71px;
    height: 71px;
    border-radius: 50%;
    background-color: var(--yellow100);
    border-width: 2px;
    border-style: groove;
    border-color: rgb(255 255 231);

    animation: spin-clockwise 4s linear infinite;
    z-index: 0;
}

@keyframes spin-clockwise {
    from {
        /* Start with no rotation */
        transform: rotate(0deg);
    }

    to {
        /* Rotate 360 degrees */
        transform: rotate(360deg);
    }
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 1;
}

.cta-header {
    display: none;
    color: var(--gray900);
    margin: 0 0 10px 0;

    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-floater-icon {
    color: var(--gray900);
    margin: 4px 0px 5px 7px;
}

.cta-btn {
    border: none;
    box-shadow: none;
    color: var(--gray900);
    background: var(--yellow100);
    transition: all 0.3s ease;
    padding: 0 0;
}

.btn-text-hover {
    display: none;
}

.cta-floater-container:hover {
    width: 280px;
    height: 140px;
    border-radius: 8px;
    border-width: 1px;
    border-style: dotted;
    border-color: #8fa172;
    background-color: rgb(203 211 196 / 50%);
    backdrop-filter: blur(5px);
}

.cta-floater-container:hover .cta-floater-icon {
    color: var(--green600);
}

.cta-floater-container:hover .cta-header {
    display: block;
    opacity: 1;
    max-height: 30px;
    transform: translateY(0);
}

.cta-floater-container:hover .cta-floater-spinner {
    display: none;
}

.cta-floater-container:hover .cta-btn {
    padding: .8em 2.25em;
}

.cta-floater-container:hover .btn-text-default {
    display: none;
}

.cta-floater-container:hover .btn-text-hover {
    display: inline-block;
}

@keyframes softPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


/* OPTION 2 */
:root {
    --cta-base-color: #FFC72C;
    --cta-text-color: #333333;
    --cta-accent-color: #007BFF;
    --icon-size: 32px;
    --button-size: 60px;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes iconJump {

    0%,
    100% {
        transform: translateY(0) scale(1);
        /* Starts and ends at normal position */
    }

    50% {
        transform: translateY(-4px) scale(1.02);
        /* Moves up 4 pixels and scales slightly */
    }
}

.cta-float-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;

    width: var(--button-size);
    height: var(--button-size);
    border-radius: 50%;

    background-color: var(--yellow150);
    color: var(--cta-text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    padding: 0;
    overflow: hidden;
    pointer-events: auto;
}

.cta-float-btn-alt {
    background-color: var(--green600);
}

.cta-floater-icon {
    font-size: var(--icon-size);
    transition: all 0.2s ease-in-out;
}

.cta-float-btn-alt .cta-floater-icon {
    margin-left: -2px;
    color: var(--tan100);
}

.btn-text2-hover {
    font-size: 16px;
    font-weight: 700;

    width: 0;
    margin: 0;
    display: flex;
    flex-shrink: 0;

    opacity: 0;
    transform: none;

    transition: opacity 0.3s ease, width 0.4s ease;

    pointer-events: none;
}

.cta-float-btn.is-hovering {
    width: 180px;
    border-radius: 30px;
    background-color: var(--forest800);
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;

    justify-content: center;
}

.cta-float-btn-alt.is-hovering {
    background-color: var(--tan400);
    color: var(--gray800);
}

.cta-float-btn.is-hovering .cta-floater-icon {
    animation: iconJump 0.4s ease-in-out infinite alternate;
    color: white;

    margin-left: 0;
    margin-right: 5px;
}

.cta-float-btn-alt.is-hovering .cta-floater-icon {
    animation: iconPulse 0.5s ease-in-out infinite alternate;
    color: var(--gray800);
}

.cta-float-btn.is-hovering .btn-text2-hover {
    width: auto;

    margin-left: 0;
    margin-right: 0;

    opacity: 1;
    transform: none;

    transition: opacity 0.3s ease, width 0.4s ease;

    pointer-events: auto;
}

/*OPTION 3 */
.cta-button-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.cta-button-wrapper.end {
    justify-content: flex-end;
}

.btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expand-btn {
    position: relative;
    width: 170px;
    height: 50px;
    border-radius: 30px;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.1, 0.1, 0.1, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
}

.compressed .expand-btn {
    width: 60px;
    height: 60px;
}

.compressed .expand-btn:hover {
    width: 170px;
}

.expand-btn .icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compressed .expand-btn .icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.expand-btn.apply .icon,
.expand-btn.open .icon {
    margin-left: 0px;
}

.compressed .expand-btn.apply .icon,
.compressed .expand-btn.open .icon {
    margin-left: 5px;
}

.expand-btn:hover {
    text-decoration: none;
}

.compressed .expand-btn:hover .icon {
    position: static;
    transform: none;
}

.expand-btn .text {
    white-space: nowrap;
    opacity: 1;
    font-weight: 400;
    font-size: .8rem;
    transition: opacity 0.3s ease 0.1s;
}

.compressed .expand-btn .text {
    opacity: 0;
    margin-left: 10px;
}

.compressed .expand-btn:hover .text {
    opacity: 1;
    margin-left: 0;
}

.expand-btn.apply {
    background: var(--yellow100);
    color: var(--gray8900);
}

.expand-btn.open {
    background: var(--forest600);
    color: var(--tan100);
    width: 225px;
}

.expand-btn.contact {
    background: var(--tan400);
    color: var(--gray600);
}

.expand-btn.apply:hover {
    background: var(--yellow150);
    color: var(--gray900);
}

.expand-btn.open:hover {
    background: var(--green600);
    color: var(--white);
    width: 240px;
}

.expand-btn.apply:hover .icon,
.expand-btn.open:hover .icon {
    margin-left: 0px;
}

.expand-btn.contact:hover {
    background: var(--forest600);
    color: var(--tan100);
}