#contactWin {
    background-color: #03070d;
    border: 1px solid #c27aff;
    border-radius: 6px;
    padding: 32px;
    overflow-y: auto;
    max-height: 90vh;
    max-width: 520px;
    width: 92%;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(194, 122, 255, 0.35), inset 0 0 15px rgba(194, 122, 255, 0.1);
    margin: auto;
    position: relative;
}

#contactWin::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

#contactClose {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.close-icon-svg {
    width: 20px;
    height: 20px;
    stroke: #8a99ad;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

#contactClose:hover .close-icon-svg {
    transform: scale(0.75);
    stroke: #ff3366;
}

#contactWin h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00ffff;
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

#contactWin p {
    color: #8a99ad;
    font-size: 0.88rem;
    margin-bottom: 24px;
}

#contactWin p span {
    color: #00ffff;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#contactForm label {
    display: block;
    font-size: 0.8rem;
    color: #00ffff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: #080d14;
    border: 1px solid #1a2636;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 12px 14px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.25s ease;
    white-space: pre-wrap;
    word-break: break-word;
}

#contactForm textarea {
    resize: none;
    height: 110px;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: #c27aff;
}

#contactForm input::selection,
#contactForm textarea::selection {
    background-color: #00ffff;
    color: #000000;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #3b4c61;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* Базовые стили для кнопок в модалке */
#contactWin .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Привязка глитча к текстовому span внутри кнопки для идеального покрытия текста */
#contactWin .btn span {
    position: relative;
    display: inline-block;
}

#contactWin .btn span::before,
#contactWin .btn span::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

#contactWin .btn span::before {
    color: #00ffff;
    clip-path: inset(0 0 55% 0);
}

#contactWin .btn span::after {
    color: #ff2fe0;
    clip-path: inset(55% 0 0 0);
}

#contactWin .btn:hover span::before {
    animation: btn-glitch-1 0.5s steps(2, end) 2;
}
#contactWin .btn:hover span::after {
    animation: btn-glitch-2 0.5s steps(2, end) 2;
}

/* Кнопка CLEAR ALL */
.btn-clear-glitch {
    background-color: #000000;
    border: 1px solid #1a2636;
    color: #ffffff;
}

.btn-clear-glitch:hover {
    background-color: #000000;
    border-color: #ff3366;
    color: #ff3366;
    box-shadow: 0 0 18px rgba(255, 51, 102, 0.6);
}

/* Кнопка SEND MESSAGE */
#contactBtnSend {
    background-color: #00ffff;
    border: 1px solid #00ffff;
    color: #000000;
}

#send-message-icon {
    width: 16px;
    height: 16px;
    stroke: #000000;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

#contactBtnSend:hover {
    background-color: #000000;
    color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
}

#contactBtnSend:hover #send-message-icon {
    transform: translateY(-3px);
    stroke: #00ffff;
}