/* Estilos do Formulário FB Contato */

#fb-contato-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fb-field {
    margin-bottom: 20px;
}

.fb-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.fb-field input[type="text"],
.fb-field input[type="email"],
.fb-field input[type="tel"],
.fb-field select,
.fb-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.fb-field input[type="text"]:focus,
.fb-field input[type="email"]:focus,
.fb-field input[type="tel"]:focus,
.fb-field select:focus,
.fb-field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.fb-field textarea {
    min-height: 120px;
    resize: vertical;
}

.fb-field input.fb-error,
.fb-field select.fb-error,
.fb-field textarea.fb-error {
    border-color: #dc3232;
    background-color: #ffeaea;
}

.fb-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    color: #856404;
}

.fb-warning p {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.fb-warning label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.fb-warning input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    width: auto;
}

#fb_submit {
    background: #007cba;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#fb_submit:hover:not(:disabled) {
    background: #005a87;
}

#fb_submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fb-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    color: #155724;
    font-weight: bold;
}

.fb-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    color: #721c24;
    font-weight: bold;
}

.fb-loading {
    background: #cce7ff;
    border: 1px solid #99d3ff;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    color: #0066cc;
    font-weight: bold;
    text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
    #fb-contato-form {
        padding: 15px;
        margin: 10px;
    }

    .fb-field input[type="text"],
    .fb-field input[type="email"],
    .fb-field input[type="tel"],
    .fb-field select,
    .fb-field textarea {
        font-size: 16px;
        /* Evita zoom no iOS */
    }

    #fb_submit {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Animações */
.fb-field {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.fb-field:nth-child(1) {
    animation-delay: 0.1s;
}

.fb-field:nth-child(2) {
    animation-delay: 0.2s;
}

.fb-field:nth-child(3) {
    animation-delay: 0.3s;
}

.fb-field:nth-child(4) {
    animation-delay: 0.4s;
}

.fb-field:nth-child(5) {
    animation-delay: 0.5s;
}

.fb-field:nth-child(6) {
    animation-delay: 0.6s;
}

.fb-field:nth-child(7) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para indicar campos obrigatórios */
.fb-field label::after {
    content: "";
}

.fb-field label:contains("*")::after {
    content: " *";
    color: #dc3232;
}

/* Melhorias visuais */
.fb-field select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Placeholder personalizado */
.fb-field input::placeholder,
.fb-field textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Estados de foco melhorados */
.fb-field input:focus,
.fb-field select:focus,
.fb-field textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}