.jdc-contact-form-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.jdc-contact-form {
    padding: 38px;
    border: 1px solid #e2e7ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(23, 32, 51, 0.07);
}

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

.jdc-contact-field {
    margin-bottom: 22px;
}

.jdc-contact-field label,
.jdc-contact-security > strong {
    display: block;
    margin-bottom: 9px;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
}

.jdc-contact-field label span {
    color: #d96b28;
}

.jdc-contact-field label small {
    color: #7a8497;
    font-weight: 400;
}

.jdc-contact-field input,
.jdc-contact-field select,
.jdc-contact-field textarea,
.jdc-contact-math input {
    width: 100%;
    border: 1px solid #ccd4df;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.jdc-contact-field input,
.jdc-contact-field select,
.jdc-contact-math input {
    min-height: 48px;
    padding: 10px 13px;
}

.jdc-contact-field textarea {
    min-height: 190px;
    padding: 13px;
    resize: vertical;
}

.jdc-contact-field input:focus,
.jdc-contact-field select:focus,
.jdc-contact-field textarea:focus,
.jdc-contact-math input:focus {
    border-color: #d96b28;
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 107, 40, 0.13);
}

.jdc-contact-security {
    margin: 4px 0 22px;
    padding: 20px;
    border-radius: 8px;
    background: #f4f7fb;
}

.jdc-contact-math {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jdc-contact-math label {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
}

.jdc-contact-math input[type="number"] {
    width: 95px;
}

.jdc-contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 24px;
    color: #536078;
    font-size: 14px;
    line-height: 1.55;
}

.jdc-contact-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #d96b28;
}

.jdc-contact-consent a {
    color: #3349a3;
    text-decoration: underline;
}

.jdc-contact-submit {
    min-height: 50px;
    padding: 13px 26px;
    border: 0;
    border-radius: 7px;
    background: #d96b28;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease;
}

.jdc-contact-submit:hover {
    background: #be581d;
    transform: translateY(-1px);
}

.jdc-contact-notice {
    margin-bottom: 24px;
    padding: 15px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.55;
}

.jdc-contact-notice--success {
    border-color: #addac2;
    background: #edf9f2;
    color: #166534;
}

.jdc-contact-notice--error {
    border-color: #f1b9b9;
    background: #fff1f1;
    color: #991b1b;
}

.jdc-contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 700px) {
    .jdc-contact-form {
        padding: 24px 18px;
    }

    .jdc-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .jdc-contact-submit {
        width: 100%;
    }
}
