/* Master Brico Core — Frontend Forms */

.mb-form-wrap {
    max-width: 480px;
    margin: 0 auto;
    font-family: inherit;
}

/* ------------------------------------------------------------------ */
/* Form layout                                                           */
/* ------------------------------------------------------------------ */

.mb-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ------------------------------------------------------------------ */
/* Fields                                                                */
/* ------------------------------------------------------------------ */

.mb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Linha com 2 colunas (Email + Telefone) */
.mb-row {
    display: flex;
    gap: 16px;
}

.mb-row .mb-field-half {
    flex: 1 1 0;
    min-width: 0;
}

/* Em mobile (<= 540px): colunas viram linhas */
@media (max-width: 540px) {
    .mb-row {
        flex-direction: column;
        gap: 20px;
    }
}

.mb-label {
    font-weight: 600;
    font-size: .95rem;
    color: #111827;
    display: block;
}

.mb-req {
    color: #dc2626;
    margin-left: 2px;
}

.mb-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}

.mb-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.mb-input::placeholder {
    color: #9ca3af;
}

/* ------------------------------------------------------------------ */
/* Privacy                                                               */
/* ------------------------------------------------------------------ */

.mb-field-privacy .mb-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .9rem;
    color: #374151;
    line-height: 1.55;
}

.mb-field-privacy .mb-privacy-check {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2563eb;
}

.mb-field-privacy a {
    color: #2563eb;
    text-decoration: underline;
}

.mb-field-privacy a:hover {
    color: #1d4ed8;
}

/* ------------------------------------------------------------------ */
/* Submit                                                                */
/* ------------------------------------------------------------------ */

.mb-submit-wrap {
    margin-top: 4px;
}

.mb-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    letter-spacing: .01em;
}

.mb-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.mb-btn:active:not(:disabled) {
    transform: scale(.98);
}

.mb-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* Messages                                                              */
/* ------------------------------------------------------------------ */

.mb-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #dc2626;
    padding: 10px 14px;
    font-size: .9rem;
    margin: 0;
}

.mb-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    color: #065f46;
    padding: 18px 22px;
    font-size: .95rem;
}

.mb-success p {
    margin: 0;
    font-weight: 500;
}
