html, body { height: auto; overflow: auto; }
body { overflow-y: auto; }

.support-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 32px 140px;
    position: relative;
    z-index: 2;
}
.support-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}
.support-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.support-sub {
    font-size: 12px;
    color: var(--fg-3);
    margin-top: 4px;
}
.back {
    color: var(--fg-3);
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.back:hover { color: var(--fg); transform: translateX(-2px); }

.support-intro {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--fg-2);
    margin-bottom: 28px;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--fg-3);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.support-form input,
.support-form textarea {
    background: rgba(200, 195, 230, 0.04);
    border: 1px solid rgba(200, 195, 230, 0.14);
    border-radius: 8px;
    padding: 11px 13px;
    color: var(--fg);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.5;
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
    resize: vertical;
}
.support-form input:focus,
.support-form textarea:focus {
    outline: none;
    border-color: rgba(200, 195, 230, 0.32);
    background: rgba(200, 195, 230, 0.06);
}
.support-err {
    font-size: 12px;
    color: #e07cb8;
    min-height: 16px;
}
.support-err.ok { color: #7ce0a8; }
.support-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.button {
    --primary: #c9c1ff;
    --neutral-1: #1c1d2d;
    --neutral-2: #0f1019;
    --radius: 14px;

    cursor: pointer;
    border-radius: var(--radius);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
    border: none;
    box-shadow: 0 0.5px 0.5px 1px rgba(200, 195, 230, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.55), 0 4px 5px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    min-width: 220px;
    padding: 20px;
    height: 64px;
    font-family: inherit;
    font-style: normal;
    font-size: 17px;
    font-weight: 600;
    color: var(--fg);
}
.button:hover {
    box-shadow: 0 0 1px 2px rgba(200, 195, 230, 0.14),
        0 14px 28px rgba(0, 0, 0, 0.55), 0 6px 3px -3px rgba(0, 0, 0, 0.2);
}
.button:active {
    transform: translateY(1px);
    box-shadow: 0 0 1px 2px rgba(200, 195, 230, 0.14),
        0 8px 3px -3px rgba(0, 0, 0, 0.35);
}
.button:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
        linear-gradient(to bottom, rgba(200, 195, 230, 0.2), rgba(200, 195, 230, 0.05)) border-box;
    z-index: 0;
    transition: box-shadow 0.25s ease;
}
.button:hover::after {
    box-shadow: inset 0 -1px 2px 0 rgba(200, 195, 230, 0.25);
}
.button::before {
    content: "";
    inset: 7px 6px 6px 6px;
    position: absolute;
    background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
    border-radius: 30px;
    filter: blur(0.5px);
    z-index: 2;
}
.state p {
    display: flex;
    align-items: center;
    justify-content: center;
}
.state .icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: scale(1.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.state .icon svg { overflow: visible; }

.outline { display: none; }

.state p span {
    display: block;
    opacity: 0;
    color: var(--fg);
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}
.button:hover p span {
    opacity: 1;
    animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.button.is-sending p span,
.button:focus p span {
    opacity: 1;
    animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}
@keyframes wave {
    30% { opacity: 1; transform: translateY(4px); }
    50% { opacity: 1; transform: translateY(-3px); color: var(--primary); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-20px) translateX(5px) rotate(-90deg); color: var(--primary); filter: blur(5px); }
    30% { opacity: 1; transform: translateY(4px) translateX(0) rotate(0); filter: blur(0); }
    50% { opacity: 1; transform: translateY(-3px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes disapear {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(5px) translateY(20px); color: var(--primary); filter: blur(5px); }
}

.state--default .icon svg { animation: land 0.6s ease forwards; }
.button:hover .state--default .icon { transform: rotate(45deg) scale(1.2); }
.button.is-sending .state--default svg,
.button:focus .state--default svg { animation: takeOff 0.8s linear forwards; }
.button.is-sending .state--default .icon,
.button:focus .state--default .icon { transform: rotate(0) scale(1.2); }
@keyframes takeOff {
    0% { opacity: 1; }
    60% { opacity: 1; transform: translateX(70px) rotate(45deg) scale(2); }
    100% { opacity: 0; transform: translateX(160px) rotate(45deg) scale(0); }
}
@keyframes land {
    0% { transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2); opacity: 0; filter: blur(3px); }
    100% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; filter: blur(0); }
}

.state--default .icon:before {
    content: "";
    position: absolute;
    top: 50%;
    height: 2px;
    width: 0;
    left: -5px;
    background: linear-gradient(to right, transparent, rgba(200, 195, 230, 0.55));
}
.button.is-sending .state--default .icon:before,
.button:focus .state--default .icon:before { animation: contrail 0.8s linear forwards; }
@keyframes contrail {
    0% { width: 0; opacity: 1; }
    8% { width: 15px; }
    60% { opacity: 0.7; width: 80px; }
    100% { opacity: 0; width: 160px; }
}

.state {
    padding-left: 29px;
    z-index: 2;
    display: flex;
    position: relative;
}
.state--default span:nth-child(4) { margin-right: 5px; }
.state--sent { display: none; }
.state--sent svg { transform: scale(1.2); margin-right: 8px; color: var(--primary); }
.button.is-sent .state--default,
.button:focus .state--default { position: absolute; }
.button.is-sent .state--sent,
.button:focus .state--sent { display: flex; }
.button.is-sent .state--sent span,
.button:focus .state--sent span {
    opacity: 0;
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}
.button.is-sent .state--sent .icon svg,
.button:focus .state--sent .icon svg {
    opacity: 0;
    animation: appear 1.2s ease forwards 0.8s;
}
@keyframes appear {
    0% { opacity: 0; transform: scale(4) rotate(-40deg); color: var(--primary); filter: blur(4px); }
    30% { opacity: 1; transform: scale(0.6); filter: blur(1px); }
    50% { opacity: 1; transform: scale(1.2); filter: blur(0); }
    100% { opacity: 1; transform: scale(1); }
}
