.qgf-wrap,
.qgf-wrap * {
    box-sizing: border-box;
}

.qgf-wrap {
    width: 100%;
    background: #0a0a0a;
    color: #ffffff;
    padding: 30px;
}

.qgf-form {
    width: 100%;
    margin: 0;
}

.qgf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.qgf-field-full {
    grid-column: 1 / -1;
}

.qgf-field label {
    display: block;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.qgf-field input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid #4a4a4a;
    border-radius: 0 !important;
    outline: none;
    background: #111111;
    color: #ffffff;
    font-size: 16px;
    box-shadow: none !important;
    appearance: none;
}

.qgf-field input::placeholder {
    color: #909090;
}

.qgf-field input:focus {
    border-color: #ffffff;
    background: #151515;
}

.qgf-recaptcha {
    margin-top: 20px;
}

.qgf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 22px;
    padding: 12px 28px;
    border: 1px solid #ffffff;
    border-radius: 0 !important;
    background: #ffffff;
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.qgf-submit:hover,
.qgf-submit:focus {
    background: #000000;
    color: #ffffff;
}

.qgf-submit[disabled] {
    opacity: .65;
    cursor: not-allowed;
}

.qgf-message {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #3d3d3d;
    border-radius: 0 !important;
    color: #ffffff;
    font-size: 14px;
}

.qgf-message.is-success {
    display: block;
    border-color: #3d8d59;
}

.qgf-message.is-error {
    display: block;
    border-color: #a84848;
}

.qgf-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .qgf-wrap {
        padding: 22px 18px;
    }

    .qgf-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .qgf-field-full {
        grid-column: auto;
    }

    .qgf-submit {
        width: 100%;
    }

    .qgf-recaptcha {
        overflow-x: auto;
        padding-bottom: 2px;
    }
}
