/* ==========================================================================
   Camsco — WPForms styling
   The theme constrains .page-article block children to a centered 1080px
   content column. The WPForms shortcode output is not in that list, so it
   spans full width. These rules put the form in the SAME content column
   (so it lines up with the headings), then cap the form width so it reads
   as a normal left-aligned form rather than full-bleed fields.
   ========================================================================== */

/* Pin the form's left edge to the theme's content column. That column is a
   1080px-wide centered block with 24px inner padding, so its left edge sits at
   (50% - 540px + 24px) = (50% - 516px) from the viewport edge. On screens
   narrower than the column, fall back to the theme's 24px gutter. */
.page-article .wpforms-container-full {
    max-width: 620px;
    margin-left: calc(50% - 516px) !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

@media (max-width: 1079px) {
    .page-article .wpforms-container-full {
        margin-left: 24px !important;
    }
}

.wpforms-container-full .wpforms-form {
    margin: 0;
    max-width: 100%;
}

.wpforms-container-full {
    /* Brand the WPForms modern CSS variables */
    --wpforms-field-border-radius: var(--radius);
    --wpforms-button-border-radius: var(--radius);
    --wpforms-button-background-color: var(--primary);
    --wpforms-button-text-color: #ffffff;
    --wpforms-label-color: var(--body);
    --wpforms-field-text-color: var(--body);
}

.wpforms-container-full .wpforms-field { padding: 10px 0; }

.wpforms-container-full input[type="text"],
.wpforms-container-full input[type="email"],
.wpforms-container-full input[type="tel"],
.wpforms-container-full input[type="url"],
.wpforms-container-full input[type="number"],
.wpforms-container-full textarea,
.wpforms-container-full select {
    font-family: var(--font-body);
}

.wpforms-container-full textarea { min-height: 130px; resize: vertical; }

.wpforms-container-full .wpforms-field-label {
    font-family: var(--font-body);
    font-weight: 600;
}

/* Submit button — brand colors regardless of modern/classic markup */
.wpforms-container-full button[type="submit"],
.wpforms-container-full .wpforms-submit {
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: filter .15s ease;
}

.wpforms-container-full button[type="submit"]:hover,
.wpforms-container-full .wpforms-submit:hover {
    filter: brightness(1.1);
}
