.panel {
    background: linear-gradient(160deg, var(--panel-1), var(--panel-2));
    border-radius: 22px;
    padding: 34px 30px 36px;
    box-shadow: 0 25px 50px rgba(123, 31, 162, 0.28);
}

.row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.field {
    flex: 1;
    margin-bottom: 12px;
}

.row .field {
    margin-bottom: 0;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 0.85rem;
    color: #333;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.field select {
    background-image:
        linear-gradient(45deg, transparent 50%, #7b1fa2 50%),
        linear-gradient(135deg, #7b1fa2 50%, transparent 50%);
    background-position:
        calc(100% - 18px) center,
        calc(100% - 13px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.field input::placeholder
.field textarea::placeholder {
    color: #7a7a7a;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #7b1fa2;
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.18);
}

.field textarea {
    display: block;
    /* removes the small gap under inline textareas */
    min-height: 100px;
    resize: vertical;
    /* keeps the user from breaking the panel width */
    line-height: 1.4;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

button.submit {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 100px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    background: var(--btn);
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}

button.submit:hover {
    background: var(--btn-hover);
}

button.submit:active {
    transform: translateY(1px);
}

button.submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.form-status {
    margin-top: 12px;
    font-size: 13px;
    min-height: 18px;
    color: #fff;
    text-align: center;
}

.form-status.err {
    color: #ffe1e1;
}

@media (pointer: coarse) {
    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    .panel {
        padding: 24px 20px 28px;
        border-radius: 18px;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 12px 13px;
    }
}

@media (max-width: 400px) {
    .row {
        flex-direction: column;
        gap: 12px;
    }
}