/* Contact */

.contact-form {
    max-width: 440px;
    width: 90%;
    margin: 2rem auto 0;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    background: var(--glass);
    border: 2px solid var(--primary);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: 0.3s;
}

.contact-form:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-border);
}

.contact-form label {
    display: block;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    box-sizing: border-box;

    border: 2px solid var(--bg2);
    border-radius: 0.8rem;
    outline: none;

    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;

    transition: 0.2s;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(160, 160, 160, 0.7);
}

.contact-form button {
    margin-top: 0.5rem;
    align-self: flex-end;
    min-width: 140px;
}

.contact-success {
    background: var(--primary);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}

@media (max-width: 760px) {
    .contact-form {
        width: 80%;
        padding: 2rem 1.2rem;
    }
}