/*
 * Elementor-native defaults:
 * - The form automatically uses Elementor Global Colours and Global Fonts when they exist.
 * - Every --whca-* variable can be overridden from the native Elementor widget or
 *   from a parent container's Advanced > Custom CSS.
 */
.whca-wrap {
    --whca-max-width: 900px;
    --whca-text: var(--e-global-color-text, #161616);
    --whca-muted: var(--e-global-color-text, #525252);
    --whca-heading: var(--e-global-color-primary, var(--e-global-color-text, #161616));
    --whca-accent: var(--e-global-color-accent, var(--e-global-color-primary, #151515));
    --whca-form-background: transparent;
    --whca-input-background: transparent;
    --whca-signature-background: rgba(0, 0, 0, .02);
    --whca-button-background: var(--whca-accent);
    --whca-button-hover-background: var(--whca-heading);
    --whca-button-text: #ffffff;
    --whca-clear-background: transparent;
    --whca-clear-hover-background: transparent;
    --whca-clear-text: var(--whca-accent);
    --whca-clear-hover-text: var(--whca-heading);
    --whca-clear-border-colour: transparent;
    --whca-clear-hover-border-colour: transparent;
    --whca-border-colour: rgba(0, 0, 0, .12);
    --whca-input-border-colour: rgba(0, 0, 0, .22);
    --whca-focus: var(--whca-accent);
    max-width: var(--whca-max-width);
    margin: 0 auto;
    color: var(--whca-text);
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: var(--e-global-typography-text-font-size, inherit);
    font-weight: var(--e-global-typography-text-font-weight, inherit);
    line-height: var(--e-global-typography-text-line-height, inherit);
}

.whca-wrap *,
.whca-wrap *::before,
.whca-wrap *::after {
    box-sizing: border-box;
}

.whca-message-top {
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid currentColor;
    border-radius: 12px;
}

.whca-form {
    color: var(--whca-text);
    background: var(--whca-form-background);
    border: 1px solid var(--whca-border-colour);
    border-radius: 18px;
    padding: clamp(22px, 4vw, 44px);
}

.whca-eyebrow {
    color: var(--whca-accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-family: var(--e-global-typography-accent-font-family, var(--e-global-typography-text-font-family, inherit));
    font-size: 11px;
    font-weight: var(--e-global-typography-accent-font-weight, 700);
    margin: 0 0 8px;
}

.whca-intro h2,
.whca-terms-box h3,
.whca-signature-section h3 {
    color: var(--whca-heading);
    font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit));
    font-weight: var(--e-global-typography-primary-font-weight, inherit);
}

.whca-intro h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.06;
    margin: 0 0 12px;
}

.whca-intro > p:last-child {
    margin: 0 0 28px;
}

.whca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.whca-form label {
    display: block;
    color: var(--whca-text);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
}

.whca-form label > span,
.whca-form label strong {
    color: var(--whca-accent);
}

.whca-form input,
.whca-form textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid var(--whca-input-border-colour);
    border-radius: 10px;
    outline: none;
    background: var(--whca-input-background);
    color: var(--whca-text);
    font: inherit;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.whca-form input::placeholder,
.whca-form textarea::placeholder {
    color: currentColor;
    opacity: .48;
}

.whca-form input:focus,
.whca-form textarea:focus {
    border-color: var(--whca-focus);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .07);
}

.whca-form input[type="file"] {
    min-height: auto;
    padding: 10px;
}

.whca-form small {
    display: block;
    color: var(--whca-muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 6px;
}

.whca-terms-box,
.whca-signature-section {
    border-top: 1px solid var(--whca-border-colour);
    margin-top: 10px;
    padding-top: 24px;
}

.whca-terms-box h3,
.whca-signature-section h3 {
    font-size: 21px;
    margin: 0 0 10px;
}

.whca-terms-box > p,
.whca-signature-section > p {
    margin: 0 0 18px;
}

.whca-wrap a {
    color: var(--whca-accent);
    text-decoration-color: currentColor;
    text-underline-offset: .16em;
}

.whca-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    line-height: 1.5;
}

.whca-check input {
    display: inline-block;
    width: 17px !important;
    min-width: 17px;
    height: 17px;
    min-height: 17px;
    margin: 2px 0 0 !important;
    padding: 0;
    accent-color: var(--whca-accent);
}

.whca-signature-pad-wrap {
    margin: 4px 0 24px;
}

.whca-signature-label {
    color: var(--whca-text);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 7px;
}

.whca-signature-pad-wrap canvas {
    display: block;
    width: 100%;
    height: 220px;
    border: 1px dashed var(--whca-input-border-colour);
    border-radius: 12px;
    background: var(--whca-signature-background);
    color: var(--whca-text);
    touch-action: none;
}

.whca-wrap .whca-clear-signature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 0;
    border: 1px solid var(--whca-clear-border-colour);
    background: var(--whca-clear-background);
    color: var(--whca-clear-text);
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: .16em;
    transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

/* Explicit hover styles prevent a theme or Elementor Kit button hover colour from taking over. */
.whca-wrap .whca-clear-signature:hover,
.whca-wrap .whca-clear-signature:focus-visible {
    background: var(--whca-clear-hover-background);
    color: var(--whca-clear-hover-text);
    border-color: var(--whca-clear-hover-border-colour);
    box-shadow: none;
}

.whca-legal {
    color: var(--whca-muted);
    font-size: 13px;
    line-height: 1.55;
}

.whca-submit {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    background: var(--whca-button-background);
    color: var(--whca-button-text);
    cursor: pointer;
    font-family: var(--e-global-typography-accent-font-family, var(--e-global-typography-text-font-family, inherit));
    font-size: var(--e-global-typography-accent-font-size, inherit);
    font-weight: var(--e-global-typography-accent-font-weight, 700);
    line-height: 1.2;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.whca-submit:hover,
.whca-submit:focus-visible {
    background: var(--whca-button-hover-background);
    color: var(--whca-button-text);
}

.whca-submit:hover {
    transform: translateY(-1px);
}

.whca-submit:focus-visible,
.whca-clear-signature:focus-visible,
.whca-wrap a:focus-visible {
    outline: 2px solid var(--whca-focus);
    outline-offset: 3px;
}

.whca-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.whca-message {
    margin-top: 15px;
    font-weight: 600;
}

.whca-message.is-success {
    color: #1a7540;
}

.whca-message.is-error {
    color: #b4212b;
}

@media (max-width: 640px) {
    .whca-grid {
        grid-template-columns: 1fr;
    }

    .whca-form {
        padding: 22px 18px;
    }

    .whca-signature-pad-wrap canvas {
        height: 180px;
    }
}

/* Form-level validation is handled visibly by the plugin rather than by a browser-only tooltip. */
.whca-form .whca-invalid {
    border-color: #b4212b !important;
    box-shadow: 0 0 0 3px rgba(180, 33, 43, .12) !important;
}

.whca-signature-pad-wrap canvas.whca-invalid {
    border-style: solid;
}

.whca-message.is-info {
    color: var(--whca-text);
}


.whca-success-card {
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--whca-border-colour);
    border-radius: 18px;
    background: var(--whca-form-background);
    text-align: center;
}

.whca-success-card .whca-message-top {
    margin: 0 0 18px;
}

.whca-wrap .whca-download-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    background: var(--whca-button-background);
    color: var(--whca-button-text);
    font-family: var(--e-global-typography-accent-font-family, var(--e-global-typography-text-font-family, inherit));
    font-size: var(--e-global-typography-accent-font-size, inherit);
    font-weight: var(--e-global-typography-accent-font-weight, 700);
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.whca-wrap .whca-download-pdf:hover,
.whca-wrap .whca-download-pdf:focus-visible {
    background: var(--whca-button-hover-background);
    color: var(--whca-button-text);
}

.whca-wrap .whca-download-pdf:hover {
    transform: translateY(-1px);
}

.whca-download-note {
    margin: 16px auto 0;
    max-width: 560px;
    color: var(--whca-muted);
    font-size: 13px;
    line-height: 1.5;
}
