.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0 auto;
}

.form-group {
    margin-top: 0.45rem;
    text-align: left;
    width: min(100%, 640px);
}

label {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: #d7e8ff;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 42px;
    padding: 0.6rem 0.74rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    font-size: 0.96rem;
    color: #eef5ff;
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(221, 235, 253, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(56, 211, 159, 0.66);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(56, 211, 159, 0.18);
}

.form .button,
.form button,
.form input[type="submit"] {
    margin-top: 0.7rem;
}

@media (max-width: 720px) {
    .form-group {
        width: 100%;
    }
}
