/* No font-family declarations anywhere — the form inherits the fonts of
   whatever page it sits on, so it always matches the site's typography. */
.dgcf-wrap {
    max-width: 640px;
    margin: 0 auto;
}

/* If the shortcode was placed inside a Code block in the page editor, the
   theme's monospace <code>/<pre> styling would otherwise swallow the form. */
.dgcf-wrap code,
.dgcf-wrap pre,
code .dgcf-form,
pre .dgcf-form {
    font-family: inherit !important;
    font-size: inherit;
    background: transparent;
    padding: 0;
    border: none;
    white-space: normal;
}

.dgcf-form label {
    display: block;
    margin: 0 0 14px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.dgcf-form input[type="text"],
.dgcf-form input[type="email"],
.dgcf-form input[type="tel"],
.dgcf-form select,
.dgcf-form textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 9px 10px;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.dgcf-form input:focus,
.dgcf-form select:focus,
.dgcf-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.dgcf-row {
    display: flex;
    gap: 14px;
}

.dgcf-row > label {
    flex: 1 1 0;
}

@media (max-width: 560px) {
    .dgcf-row {
        display: block;
    }
}

.dgcf-step {
    border: none;
    padding: 0;
    margin: 0 0 18px;
}

.dgcf-step legend {
    font-family: inherit;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 10px;
    color: #222;
}

.dgcf-choice {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    margin: 0 0 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 400 !important;
}

.dgcf-choice:hover {
    border-color: #999;
    background: #f3f3f3;
}

.dgcf-choice input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.dgcf-choice small {
    color: #666;
}

.dgcf-tz-hint {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #777;
    margin: 2px 0 2px;
}

.dgcf-branch,
.dgcf-subfields {
    margin-top: 6px;
}

.dgcf-submit {
    display: inline-block;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #222;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.dgcf-submit:hover {
    background: #444;
}

.dgcf-notice {
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 15px;
}

.dgcf-success {
    background: #edfaef;
    border: 1px solid #46b450;
    color: #1e6b28;
}

.dgcf-error {
    background: #fbeaea;
    border: 1px solid #dc3232;
    color: #8a1f1f;
}

/* Honeypot — visually removed but present for bots */
.dgcf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
