/**
 * New Leads Mximo - Styles
 * Verso: 1.1.0
 */

:root {
    --nlm-main-color: #36bae5; /* Cor padro caso no seja definida no shortcode */
    --nlm-whatsapp-color: #25D366;
    --nlm-text-dark: #333333;
    --nlm-text-light: #666666;
    --nlm-bg-light: #f9f9f9;
    --nlm-border-color: #dddddd;
}

/* Container Principal */
.nlm-wrapper {
    max-width: 650px;
    margin: 20px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
}

.nlm-wrapper * {
    box-sizing: border-box;
}

/* Ttulos */
.nlm-form h3 {
    margin: 0 0 25px 0;
    color: var(--nlm-text-dark);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.nlm-section h4 {
    margin: 20px 0 12px 0;
    font-size: 1.1rem;
    color: var(--nlm-text-dark);
    border-bottom: 2px solid var(--nlm-bg-light);
    padding-bottom: 5px;
}

/* Grid Responsivo (Mobile-First) */
.nlm-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna no mobile */
    gap: 15px;
}

@media (min-width: 768px) {
    .nlm-grid {
        grid-template-columns: 1fr 1fr; /* Duas colunas no desktop */
    }
}

/* Campos de Input */
.nlm-field, .nlm-field-full {
    margin-bottom: 15px;
}

.nlm-field label, 
.nlm-field-full label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--nlm-text-dark);
}

.nlm-field input[type="text"],
.nlm-field input[type="email"],
.nlm-field input[type="tel"],
.nlm-field input[type="number"],
.nlm-field-full textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--nlm-border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.nlm-field input:focus,
.nlm-field-full textarea:focus {
    border-color: var(--nlm-main-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 186, 229, 0.1);
}

/* Seleo de Planto e Checkboxes */
.nlm-radios, .nlm-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nlm-radios label, 
.nlm-checkboxes label {
    display: flex;
    align-items: center;
    background: var(--nlm-bg-light);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nlm-radios label:hover, 
.nlm-checkboxes label:hover {
    background: #f0f0f0;
}

.nlm-radios input, 
.nlm-checkboxes input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Seo Legal / LGPD */
.nlm-legal {
    margin: 25px 0;
}

.nlm-legal label {
    font-size: 0.85rem;
    color: var(--nlm-text-light);
    line-height: 1.4;
}

.nlm-legal a {
    color: var(--nlm-main-color);
    text-decoration: underline;
}

/* Botes */
.nlm-btn {
    display: block;
    width: 100%;
    background-color: var(--nlm-main-color);
    color: #ffffff !important;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.nlm-btn:hover {
    filter: brightness(90%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nlm-btn:active {
    transform: scale(0.98);
}

.nlm-btn-whatsapp {
    background-color: var(--nlm-whatsapp-color);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Loader */
#nlm-loader {
    text-align: center;
    padding: 15px;
    font-weight: 600;
    color: var(--nlm-main-color);
}

/* Resultados */
#nlm-result {
    margin-top: 30px;
    padding: 25px;
    background: #f0fbff;
    border-radius: 10px;
    border-left: 6px solid var(--nlm-main-color);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nlm-result-text {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--nlm-text-dark);
}

.nlm-result-text strong {
    color: var(--nlm-main-color);
    font-size: 1.4rem;
}

.nlm-disclaimer {
    font-size: 0.9rem;
    color: var(--nlm-text-light);
    margin-bottom: 20px;
    font-style: italic;
}

/* Mensagens de Erro */
#nlm-error {
    background: #fff0f0;
    color: #d32f2f;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #ffcdd2;
    display: none; /* Ativado via JS se houver erro */
}

/* Estilos para o Admin (Destaque nos cards do Dashboard e Ajuda) */
.nlm-admin-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
}