/* wp-content/plugins/meu-formulario-orcamento/css/mfo-style.css */

#mfo-form-wrapper {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    position: relative; /* Necessário para posicionamento do tooltip */
}

h3 {
    color: #0073aa;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
}

.mfo-multi-step-form {
    overflow: hidden; /* Garante que os passos escondidos não ocupem espaço */
    position: relative;
}

.mfo-step {
    display: none; /* Esconde todos os passos por padrão */
    padding: 20px 0;
    animation: fadeIn 0.5s ease-out; /* Animação ao mostrar o passo */
}

.mfo-step.active {
    display: block; /* Mostra o passo ativo */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mfo-field {
    margin-bottom: 20px;
}

.mfo-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.mfo-field input[type="text"],
.mfo-field input[type="email"],
.mfo-field input[type="tel"],
.mfo-field input[type="url"],
.mfo-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Inclui padding e borda no width */
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.mfo-field input[type="text"]:focus,
.mfo-field input[type="email"]:focus,
.mfo-field input[type="tel"]:focus,
.mfo-field input[type="url"]:focus,
.mfo-field textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.mfo-field textarea {
    min-height: 100px;
    resize: vertical;
}

.mfo-field input[type="radio"],
.mfo-field input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

/* Estilo para botões de navegação */
.mfo-next-step,
.mfo-prev-step,
.mfo-submit-form {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Permite alinhar lado a lado */
}

.mfo-next-step:hover,
.mfo-prev-step:hover,
.mfo-submit-form:hover {
    background-color: #005f8a;
    transform: translateY(-2px);
}

.mfo-prev-step {
    background-color: #6c757d;
    margin-right: 15px;
}

.mfo-prev-step:hover {
    background-color: #5a6268;
}

/* Barra de progresso */
.mfo-progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 10px;
    /*margin-bottom: 30px;*/
    overflow: hidden;
}

.mfo-progress-bar {
    height: 100%;
    width: 0%; /* Controlado por JS */
    background-color: #0073aa;
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

/* Botão de ajuda (ponto de interrogação) */
.mfo-help-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background-color: #999;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    cursor: help;
    margin-left: 5px;
    position: relative;
    top: -2px;
    vertical-align: middle;
}

.mfo-help-tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: normal;
    z-index: 10;
    width: 250px;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 10px); /* Acima do ícone */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mfo-help-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #333;
}

.mfo-help-icon:hover .mfo-help-tooltip {
    display: block;
}

/* Campos condicionais */
.mfo-conditional-input {
    display: none; /* Escondido por padrão, JavaScript mostra */
    margin-top: 5px;
}

/* Mensagens de sucesso/erro */
#mfo-form-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

#mfo-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#mfo-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsividade básica */
@media (max-width: 768px) {
    #mfo-form-wrapper {
        margin: 20px;
        padding: 20px;
    }
    h3 {
        font-size: 1.5em;
    }
    .mfo-next-step, .mfo-prev-step, .mfo-submit-form {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    .mfo-help-tooltip {
        width: 90%;
        left: 5%;
        transform: translateX(0);
    }
}

/* wp-content/plugins/meu-formulario-orcamento/css/mfo-style.css */

/* ... (CSS anterior permanece) ... */

/* Adicione/Modifique estas regras para as novas funcionalidades */

/* Layout dos radio buttons e checkboxes lado a lado */
.mfo-radio-group label,
.mfo-checkbox-group label {
    display: inline-block; /* Faz com que os labels fiquem na mesma linha */
    margin-right: 20px; /* Espaço entre as opções */
    margin-bottom: 10px; /* Espaço entre as linhas em telas menores */
    white-space: nowrap; /* Evita que o texto quebre para a próxima linha */
}

/* Alinhamento do input condicional ao lado do label do radio/checkbox */
.mfo-inline-input {
    width: auto; /* Permite que o input ocupe apenas o espaço necessário */
    display: inline-block; /* Alinha com o label */
    margin-left: 5px; /* Pequeno espaço entre o label e o input */
}

/* Estilo para o campo select */
.mfo-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease;
    -webkit-appearance: none; /* Remove a seta padrão em navegadores WebKit */
    -moz-appearance: none; /* Remove a seta padrão em navegadores Mozilla */
    appearance: none; /* Remove a seta padrão */
    background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230073aa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.2-6.5H18.6c-5%200-9.3%201.8-13.2%205.5-3.9%203.7-5.9%208.2-5.9%2013.8v10.3c0%204.9%201.8%209.3%205.5%2013.2L138.8%20286.3c3.7%203.9%208.2%205.9%2013.8%205.9s9.3-1.9%2013.2-5.5l123.6-123.6c3.9-3.9%205.9-8.4%205.9-13.2V82.6c-.1-5.7-2.1-10.9-5.9-13.2z%22%2F%3E%3C%2Fsvg%3E') no-repeat right 12px center;
    background-size: 12px;
}
.mfo-field select:focus {
    border-color: #0073aa;
    outline: none;
}


/* RESPONSIVIDADE */
@media (max-width: 768px) {
    #mfo-form-wrapper {
        margin: 20px;
        padding: 20px;
    }
    h3 {
        font-size: 1.5em;
    }
    .mfo-next-step, .mfo-prev-step, .mfo-submit-form {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    .mfo-help-tooltip {
        width: 90%;
        left: 5%;
        transform: translateX(0);
    }

    /* Em telas menores, os radios e checkboxes ficam um abaixo do outro */
    .mfo-radio-group label,
    .mfo-checkbox-group label {
        display: block; /* Volta para block */
        margin-right: 0; /* Remove margem lateral */
        margin-bottom: 8px; /* Adiciona margem inferior para espaçamento */
        white-space: normal; /* Permite que o texto quebre */
    }

    .mfo-inline-input {
        width: 100%; /* Ocupa a largura total abaixo do label */
        margin-left: 0;
        margin-top: 5px; /* Espaço do label */
    }
}

@media (max-width: 480px) {
    #mfo-form-wrapper {
        margin: 10px;
        padding: 15px;
    }
    h3 {
        font-size: 1.3em;
    }
    .mfo-field input[type="text"],
    .mfo-field input[type="email"],
    .mfo-field input[type="tel"],
    .mfo-field input[type="url"],
    .mfo-field textarea,
    .mfo-field select {
        padding: 10px;
        font-size: 0.9em;
    }
    .mfo-next-step, .mfo-prev-step, .mfo-submit-form {
        padding: 10px 20px;
        font-size: 1em;
    }
}