/* Marine World data-collection forms ([mwb_school_form], [mwb_tour_operator_form], [mwb_feedback_form]) */
.mwb-df-wrap {
    --mwb-df-primary: #0b6bcb;
    --mwb-df-border: #cbd5e1;
    --mwb-df-text: #1e293b;
    --mwb-df-muted: #64748b;
    --mwb-df-danger: #dc2626;
    --mwb-df-ok: #15803d;
    max-width: 760px;
    margin: 0 auto;
    color: var(--mwb-df-text);
    box-sizing: border-box;
}

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

.mwb-df-title {
    margin: 0 0 0.5rem;
}

.mwb-df-intro {
    margin: 0 0 1.25rem;
    color: var(--mwb-df-muted);
}

.mwb-df-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.mwb-df-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.mwb-df-wide {
    grid-column: 1 / -1;
}

.mwb-df-field > label,
.mwb-df-choices legend {
    font-size: 0.9rem;
    font-weight: 600;
}

.mwb-df-req {
    color: var(--mwb-df-danger);
}

.mwb-df-field input[type="text"],
.mwb-df-field input[type="email"],
.mwb-df-field input[type="tel"],
.mwb-df-field input[type="number"],
.mwb-df-field input[type="date"],
.mwb-df-field input[type="time"],
.mwb-df-field select,
.mwb-df-field textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--mwb-df-border);
    border-radius: 8px;
    background: #fff;
    color: var(--mwb-df-text);
    font: inherit;
}

.mwb-df-field input:focus,
.mwb-df-field select:focus,
.mwb-df-field textarea:focus {
    outline: 2px solid var(--mwb-df-primary);
    outline-offset: 1px;
    border-color: var(--mwb-df-primary);
}

.mwb-df-invalid input,
.mwb-df-invalid select,
.mwb-df-invalid textarea {
    border-color: var(--mwb-df-danger);
}

.mwb-df-error {
    min-height: 0;
    color: var(--mwb-df-danger);
    font-size: 0.8125rem;
}

.mwb-df-choices {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.mwb-df-choices legend {
    width: 100%;
    padding: 0;
    margin-bottom: 0.375rem;
}

.mwb-df-choice {
    position: relative;
}

.mwb-df-choice input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.mwb-df-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--mwb-df-border);
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mwb-df-choice input:checked + span {
    background: var(--mwb-df-primary);
    border-color: var(--mwb-df-primary);
    color: #fff;
}

.mwb-df-choice input:focus-visible + span {
    outline: 2px solid var(--mwb-df-primary);
    outline-offset: 2px;
}

.mwb-df-scale {
    width: 100%;
    color: var(--mwb-df-muted);
    font-size: 0.8125rem;
}

/* Honeypot: off-screen rather than display:none so simple bots still fill it. */
.mwb-df-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mwb-df-status {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.mwb-df-status-error {
    color: var(--mwb-df-danger);
}

.mwb-df-status-ok {
    color: var(--mwb-df-ok);
}

.mwb-df-submit {
    margin-top: 1rem;
    padding: 0.75rem 1.75rem;
    border: 0;
    border-radius: 8px;
    background: var(--mwb-df-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.mwb-df-submit:hover:not(:disabled) {
    filter: brightness(0.92);
}

.mwb-df-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mwb-df-success {
    padding: 1.25rem 1.5rem;
    border: 1px solid #86efac;
    border-radius: 8px;
    background: #f0fdf4;
    color: var(--mwb-df-ok, #15803d);
    font-weight: 600;
}

@media (max-width: 600px) {
    .mwb-df-grid {
        grid-template-columns: 1fr;
    }
}
