.primary-btn1 {
    background-color: #f25a29;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.48px;
    line-height: 1;
    padding: 16px 20px;
    border-radius: 10px;
    position: relative;
    align-items: center;
    display: inline-flex;
    transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.primary-btn1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 102% 102%;
    border-radius: inherit;
    transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    opacity: 0;
    z-index: -1;
}

.primary-btn1::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(110%);
    background-color: #cc451a;
    overflow: hidden;
    transition:
        opacity 0.5s,
        transform 0.5s;
    z-index: -1;
}

.primary-btn1 > span {
    transition:
        opacity 0.3s,
        transform 0.3s;
    transition-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    background-color: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn1 > span:nth-child(2) {
    position: absolute;
    top: 50%;
    left: 0;
    opacity: 0;
    transform: translate(0, 100%);
    transition:
        opacity 0.3s,
        transform 0.3s;
    transition-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    white-space: nowrap;
}

.primary-btn1 > span svg {
    fill: #fff;
    transition: 0.5s;
}

.primary-btn1:hover {
    color: #fff;
}

.primary-btn1:hover::after {
    transform: translate(0);
    border-radius: 0;
}

.primary-btn1:hover > span {
    transform: translateY(-150%);
    opacity: 0;
}

.primary-btn1:hover > span:nth-child(2) {
    opacity: 1;
    transform: translate(0%, -50%);
}


.primary-btn1 { border: 0; cursor: pointer; text-decoration: none; font-family: inherit; }
.primary-btn1:focus-visible { outline: 3px solid #ffb78f; outline-offset: 4px; }
@media(prefers-reduced-motion: reduce) { .primary-btn1, .primary-btn1::before, .primary-btn1::after, .primary-btn1 > span { transition: none; } }
