/**
 * Lead Engine + Adalace Quickscan (WordPress embed)
 * — Hoog genoeg specificiteit voor Breakdance / page builders die inputs resetten
 * — Typografie volgt de site waar mogelijk (inherit)
 */

.wgc-lead-engine-form,
.wgc-adalace-quickscan {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.wgc-lead-engine-form *,
.wgc-adalace-quickscan * {
    box-sizing: border-box;
}

.wgc-form-title {
    margin-bottom: 1.5rem;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.25;
    font-family: inherit;
    color: inherit;
}

/* Grid layout for form fields */
.wgc-form-fields-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.wgc-form-field {
    margin-bottom: 0;
}

/* Width classes - desktop (12-column grid) */
.wgc-field-width-25 {
    grid-column: span 3;
}

.wgc-field-width-33 {
    grid-column: span 4;
}

.wgc-field-width-50 {
    grid-column: span 6;
}

.wgc-field-width-66 {
    grid-column: span 8;
}

.wgc-field-width-75 {
    grid-column: span 9;
}

.wgc-field-width-100 {
    grid-column: span 12;
}

/* Mobile: all fields full width */
@media (max-width: 640px) {
    .wgc-form-fields-grid {
        grid-template-columns: 1fr;
    }

    .wgc-field-width-25,
    .wgc-field-width-33,
    .wgc-field-width-50,
    .wgc-field-width-66,
    .wgc-field-width-75,
    .wgc-field-width-100 {
        grid-column: span 1;
    }
}

div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.9375rem;
    font-family: inherit;
    color: inherit;
}

.wgc-required {
    color: #dc2626;
}

/* Inputs: dubbele wrapper-specificiteit t.o.v. builder resets */
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field input[type="text"],
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field input[type="email"],
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field input[type="tel"],
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field input[type="number"],
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field textarea,
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field select {
    width: 100%;
    max-width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
    color: inherit;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: auto;
    -webkit-appearance: auto;
}

div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field input:focus,
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field textarea:focus,
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field input::placeholder,
div.wgc-lead-engine-form.wgc-lead-engine-form--embed .wgc-form-field textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.wgc-radio-group,
.wgc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wgc-radio-option,
.wgc-checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
    font-family: inherit;
}

.wgc-radio-option input,
.wgc-checkbox-option input {
    width: auto;
    margin: 0;
}

.wgc-form-submit {
    margin-top: 1.5rem;
}

div.wgc-lead-engine-form.wgc-lead-engine-form--embed button.wgc-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--wgc-submit-bg, #4f46e5);
    color: var(--wgc-submit-color, #fff);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.25;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    box-shadow: none;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

div.wgc-lead-engine-form.wgc-lead-engine-form--embed button.wgc-submit-button:hover {
    background-color: var(--wgc-submit-bg-hover, #4338ca);
    color: var(--wgc-submit-color, #fff);
}

div.wgc-lead-engine-form.wgc-lead-engine-form--embed button.wgc-submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.85;
}

.wgc-form-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
}

.wgc-form-message.wgc-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.wgc-form-message.wgc-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.wgc-field-hidden {
    display: none;
}

/* Adalace Quickscan (iframe) — volle breedte, voldoende hoogte */
.wgc-adalace-quickscan {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    /* line-height: 0 knipt inline/iframe-baseline layout af op sommige thema's */
    line-height: normal;
}

.wgc-adalace-quickscan__frame {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 480px;
    height: 800px;
    border: 0 !important;
    border-radius: 0.5rem;
    background: #ffffff;
    vertical-align: top;
}

@media (max-width: 640px) {
    .wgc-adalace-quickscan__frame {
        min-height: 400px;
        height: 720px;
    }
}
