.contact {
    position: relative;
    --contact-footer-right: 118px;
    --contact-footer-width: 160px;
    background: radial-gradient(circle at 48% 45%, #1f1f1f 0%, #101010 50%, #080808 100%);
}

.contact-title-vertical {
    position: absolute;
    left: -10px;
    top: 28%;
    transform: translateY(-50%) rotate(-90deg);
    color: transparent;
    -webkit-text-stroke: 2px var(--green);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.contact-side-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: var(--green);
    /* box-shadow: -22px 0 46px rgba(181, 233, 59, 0.22); */
}

.contact-form {
    position: absolute;
    left: 200px;
    top: 100px;
    width: 456px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-field {
    position: relative;
    width: 100%;
    padding-bottom: 26px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    height: 60px;
    border: 1px solid var(--green);
    border-radius: 999px;
    padding: 12px 16px;
    color: var(--white);
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.contact-form input.has-error,
.contact-form textarea.has-error {
    border-color: #ff2b1f;
}

.contact-form textarea {
    height: 255px;
    resize: none;
    border-radius: 18px;
}

.contact-error {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    min-height: 22px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #ff2b1f;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    color: #ff2b1f;
    background: transparent;
    font-size: 14px;
    line-height: 1.1;
    pointer-events: none;
    transition: opacity 120ms ease, visibility 120ms ease;
}

.contact-error.is-visible {
    opacity: 1;
    visibility: visible;
}

.privacy-check {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: flex-start;
    column-gap: 10px;
    color: var(--green);
    font-size: 14px;
    line-height: 1.25;
}

.privacy-check > span {
    display: block;
    min-width: 0;
}

.contact-form .privacy-check input {
    display: grid;
    place-content: center;
    flex: 0 0 14px;
    width: 14px;
    min-width: 14px;
    height: 14px;
    min-height: 14px;
    margin: 2px 0 0;
    padding: 0;
    border: 2px solid var(--green);
    border-radius: 2px;
    background: var(--black);
    appearance: none;
    -webkit-appearance: none;
    accent-color: var(--green);
    cursor: pointer;
    transition: background 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.contact-form .privacy-check input:hover {
    border-color: var(--green);
    background: rgba(181, 233, 59, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.contact-form .privacy-check input::before {
    content: "";
    width: 7px;
    height: 4px;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform 120ms ease;
}

.contact-form .privacy-check input:checked::before {
    transform: rotate(-45deg) scale(1);
}

.contact-form .privacy-check input:checked:hover {
    background: rgba(181, 233, 59, 0.14);
}

.contact-form .privacy-check input:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.contact-submit {
    align-self: flex-end;
    min-width: 64px;
    min-height: 34px;
    padding: 8px 18px;
    margin-top: 8px;
    font-size: 14px;
    cursor: pointer;
}

.contact-status {
    min-height: 16px;
    margin: 0;
    color: var(--green);
    font-size: 14px;
    line-height: 1.2;
    text-align: right;
}

.contact-status.is-error {
    color: var(--white);
}

.privacy-link {
    color: var(--white);
    text-decoration: none;
}

.privacy-link:hover {
    color: var(--green);
}

.contact-info {
    position: absolute;
    right: 145px;
    top: 115px;
    width: 417px;
    height: 155px;
    text-align: right;
}

.contact-info h2 {
    margin: 0 0 18px;
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
}

.contact-info p {
    margin: 0;
    color: var(--white);
    font-size: 16px;
    line-height: 1.25;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.contact-details a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--white);
    font-size: 16px;
    text-align: right;
    text-decoration: none;
}

.contact-detail-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex: 0 0 auto;
}

.contact-details a:hover {
    color: var(--green);
}

.contact-back-arrow {
    z-index: 5;
    width: 86px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    animation: contactBackArrowMove 1.4s ease-in-out infinite;
}

.contact-back-arrow-floating {
    display: none;
}

.contact-back-arrow-inline {
    display: inline-flex;
    flex: 0 0 auto;
    width: clamp(58px, 5vw, 86px);
    margin: 0;
}

.contact-back-arrow img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-back-arrow:hover {
    filter: drop-shadow(0 0 8px var(--green));
}

.contact-legal {
    position: absolute;
    right: var(--contact-footer-right);
    width: var(--contact-footer-width);
    bottom: 44px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

.contact-footer-logo {
    display: none;
}

.contact-copyright {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    width: max-content;
    margin: 0;
    white-space: nowrap;
}

.contact-legal-links {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.contact-legal a,
.contact-legal p {
    margin: 2px;
    color: var(--white);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

.contact-legal a:hover {
    color: var(--green);
}

.contact-socials {
    display: none;
}

@keyframes contactBackArrowMove {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-14px);
    }
}
