/* Box container */
.mgqf-box {
    max-width: 640px;
    margin: 2em auto 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mgqf-box-header {
    background: #1e293b;
    color: #fff;
    padding: 0.85em 1.5em;
    font-size: 1.25em;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
}

.mgqf-box-body {
    padding: 1.8em 2em 1.2em;
    background: #fff;
}

.mgqf-form {
    max-width: 100%;
    margin: 0;
}

.mgqf-field {
    margin-bottom: 1.2em;
}

.mgqf-field label {
    display: block;
    margin-bottom: 0.35em;
    font-weight: 600;
    font-size: 0.95em;
}

.mgqf-required {
    color: #c0392b;
}

.mgqf-field input[type="text"],
.mgqf-field input[type="email"],
.mgqf-field input[type="tel"],
.mgqf-field select,
.mgqf-field textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mgqf-field input:focus,
.mgqf-field select:focus,
.mgqf-field textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.mgqf-field--half {
    display: flex;
    gap: 1em;
}

.mgqf-field--half > .mgqf-field {
    flex: 1;
    margin-bottom: 0;
}

.mgqf-checkbox-heading {
    display: block;
    font-size: 0.95em;
    margin-bottom: 0.3em;
}

.mgqf-field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1.4;
    cursor: pointer;
}

.mgqf-field--checkbox input[type="checkbox"] {
    margin-top: 0.15em;
    flex-shrink: 0;
}

.mgqf-submit {
    display: inline-block;
    padding: 0.75em 2em;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mgqf-submit:hover {
    background: #1e3a8a;
}

.mgqf-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Honeypot — hidden from humans */
.mgqf-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Status messages */
.mgqf-message {
    padding: 1em 1.2em;
    border-radius: 4px;
    margin-bottom: 1.5em;
    font-size: 0.95em;
}

.mgqf-message--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.mgqf-message--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Turnstile widget */
.mgqf-turnstile {
    margin-bottom: 1.2em;
}

/* Validation error states */
.mgqf-field--invalid input,
.mgqf-field--invalid select,
.mgqf-field--invalid textarea {
    border-color: #dc2626;
}

.mgqf-field--invalid .mgqf-error-text {
    color: #dc2626;
    font-size: 0.85em;
    margin-top: 0.3em;
}

/* Disclaimer */
.mgqf-disclaimer {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 1.2em;
}

/* Trust line above form */
.mgqf-trust-line {
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 1.2em;
    letter-spacing: 0.01em;
}

/* Micro-copy below submit */
.mgqf-microcopy {
    font-size: 0.8em;
    color: #666;
    margin-top: 0.6em;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .mgqf-field--half {
        flex-direction: column;
        gap: 0;
    }

    .mgqf-field--half > .mgqf-field {
        margin-bottom: 1.2em;
    }
}
