#gsp-subscribe-form {
    display: grid;
    gap: 1vw;
}

#gsp_submit {
    background-color: #ef9f50;
    color: #fffef2;
    border-radius: 0.52vw;
    padding: 0.4vw 0;
    cursor: pointer;
    font-size: 1.16vw;
    line-height: 1.16vw;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42vw;
}

#gsp_submit:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.gsp-spinner {
    width: 0.73vw;
    height: 0.73vw;
    border: 0.1vw solid rgba(255, 255, 255, 0.45);
    border-top-color: #fffef2;
    border-radius: 50%;
    display: none;
    animation: gsp-spin 0.75s linear infinite;
}

#gsp_submit.is-loading .gsp-spinner {
    display: inline-block;
}

@keyframes gsp-spin {
    to {
        transform: rotate(360deg);
    }
}

.gsp-email-wrap {
    position: relative;
}

#gsp_email, #gsp_country {
    font-size: 0.74vw;
    line-height: 0.74vw;
    border-radius: 0.42vw;
    width: 100%;
    height: auto;
    padding: 0.4vw;
}

.gsp-required-star {
    position: absolute;
    left: max(2.1vw, calc(0.42vw + 5ch));
    top: 50%;
    transform: translateY(-50%);
    color: #ff3b30;
    pointer-events: none;
    font-size: 0.74vw;
    line-height: 1;
}

#gsp_email:not(:placeholder-shown) + .gsp-required-star {
    display: none;
}

#gsp_country {
    padding-right: 2vw;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23222222' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6vw center;
    background-size: 0.7vw auto;
    border: none;
    -webkit-appearance: none;
    appearance: none;
}

#gsp_country::-webkit-calendar-picker-indicator {
    opacity: 0;
    pointer-events: none;
}

.gsp-toast {
    position: fixed;
    top: 1.05vw;
    right: 1.05vw;
    z-index: 99999;
    max-width: min(24vw, calc(100vw - 2vw));
    padding: 0.63vw 0.73vw;
    border-radius: 0.42vw;
    color: #ffffff;
    font-size: 0.73vw;
    line-height: 1.4;
    box-shadow: 0 0.42vw 1.25vw rgba(0, 0, 0, 0.18);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gsp-toast.is-error {
    background: #ff4d4f;
}

.gsp-toast.is-success {
    background: #21a366;
}

.gsp-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.gsp-toast.is-leaving {
    transform: translateX(120%);
    opacity: 0;
}

@media (max-width: 768px) {
    #gsp-subscribe-form {
        gap: 2.8vw;
    }

    #gsp_email, #gsp_country {
        font-size: 3.8vw;
        line-height: 5.2vw;
        border-radius: 2.1vw;
        padding: 2.6vw;
    }

    .gsp-required-star {
        left: 12vw;
        font-size: 4vw;
    }

    #gsp_country {
        padding-right: 9vw;
        background-position: right 2.2vw center;
        background-size: 2.6vw auto;
    }

    #gsp_submit {
        padding: 2.6vw 0;
        font-size: 4.2vw;
        line-height: 4.2vw;
        gap: 2vw;
        border-radius: 2.1vw;
    }

    .gsp-spinner {
        width: 3.8vw;
        height: 3.8vw;
        border-width: 0.5vw;
    }

    .gsp-toast {
        top: 4vw;
        right: 4vw;
        max-width: 92vw;
        padding: 3vw 3.5vw;
        border-radius: 2vw;
        font-size: 3.5vw;
        line-height: 5vw;
        box-shadow: 0 1.8vw 5.2vw rgba(0, 0, 0, 0.18);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #gsp-subscribe-form {
        gap: 1.4vw;
    }

    #gsp_email, #gsp_country {
        font-size: 1.8vw;
        line-height: 2.6vw;
        border-radius: 1.1vw;
        padding: 1.2vw;
    }

    .gsp-required-star {
        left: 6.6vw;
        font-size: 1.9vw;
    }

    #gsp_country {
        padding-right: 4.6vw;
        background-position: right 1.4vw center;
        background-size: 1.5vw auto;
    }

    #gsp_submit {
        padding: 1.2vw 0;
        font-size: 2.1vw;
        line-height: 2.1vw;
        gap: 1vw;
        border-radius: 1.1vw;
    }

    .gsp-spinner {
        width: 2vw;
        height: 2vw;
        border-width: 0.28vw;
    }

    .gsp-toast {
        top: 2.2vw;
        right: 2.2vw;
        max-width: 42vw;
        padding: 1.5vw 1.8vw;
        border-radius: 1vw;
        font-size: 1.6vw;
        line-height: 2.2vw;
        box-shadow: 0 0.9vw 2.8vw rgba(0, 0, 0, 0.18);
    }
}