.footer-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: max-content;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-newsletter-form__form {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

.footer-newsletter-form__field {
    position: relative;
    flex: 1 1 300px;
    min-width: 0;
}

.footer-newsletter-form input[type="email"] {
    width: 100%;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--color-primary);
    background: transparent;
    padding: 20px 18px 0;
    font-size: 1.375rem;
    color: var(--color-text-white);
    outline: none;
    box-shadow: none;
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: transparent;
}

.footer-newsletter-form__field label {
    position: absolute;
    left: 18px;
    top: 32px;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: left top;
    font-size: 1.375rem;
    line-height: 1;
    color: rgba(121, 172, 43, 0.9);
    transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease;
}

.footer-newsletter-form__field.is-focused label,
.footer-newsletter-form__field.has-value label {
    top: 10px;
    transform: translateY(0);
    font-size: 0.8125rem;
}

.footer-newsletter-form button[type="submit"] {
    min-width: 150px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--color-primary);
    background: transparent;
    padding: 0 18px;
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.footer-newsletter-form button[type="submit"]:hover {
    background: var(--color-primary);
    color: #000000;
}

.footer-newsletter-form button[type="submit"]:active {
    transform: scale(0.97);
}

.footer-newsletter-form__consent-field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 10px;
    flex: 0 0 100%;
    max-width: 520px;
    min-width: 0;
    margin-top: 2px;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--color-text-white);
}

.footer-newsletter-form__consent-field label {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
}

.footer-newsletter-form__consent-field label a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer-newsletter-form__consent-field label a:hover {
    color: var(--color-primary-hover);
}

.footer-newsletter-form__consent-field input {
    appearance: none;
    box-sizing: border-box;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    margin-top: 2px;
    flex: 0 0 18px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    background: transparent;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

.footer-newsletter-form__consent-field input::before {
    content: "";
    width: 10px;
    height: 8px;
    transform: scale(0);
    background: var(--color-primary);
    clip-path: polygon(14% 44%, 0 59%, 38% 100%, 100% 18%, 84% 0, 36% 63%);
}

.footer-newsletter-form__consent-field input:checked::before {
    transform: scale(1);
}

.footer-newsletter-form .ydforms-field-error {
    margin-top: 10px;
    flex: 0 0 100%;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.footer-social-link:hover {
    opacity: 1;
    transform: scale(1.12);
}

.footer-social-link:active {
    transform: scale(0.95);
}

.footer-social-link img {
    display: block;
}

.footer-yd-link {
    display: inline-flex;
    opacity: 0.82;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.footer-yd-link:hover {
    opacity: 1;
    transform: scale(1.04);
}

@media (max-width: 1023px) {
    .footer-newsletter-form__form {
        max-width: 520px;
    }
}

@media (max-width: 767px) {
    .footer-newsletter-form__form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .footer-newsletter-form__field {
        width: 100%;
    }

    .footer-newsletter-form button[type="submit"] {
        width: 100%;
        min-width: 0;
    }
}
