/* ===================================
   Formulários (Auto Cadastro & Editar Perfil)
=================================== */

.dfbt-auto-cadastro-form,
.dfbt-auto-cadastro-login,
.dfbt-editar-form {
    max-width: 800px;
    margin: 40px auto;
}

/* Card padrão */
.dfbt-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Título */
.dfbt-section-title {
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #222;
}

/* Grid */
.dfbt-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dfbt-form-grid .form-group {
    display: flex;
    flex-direction: column;
}

.dfbt-form-grid .form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.dfbt-form-grid .form-group input,
.dfbt-form-grid .form-group select,
.dfbt-form-grid .form-group textarea {
    padding: 10px;
    font-size: 14px;
    -width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.dfbt-form-grid textarea {
    min-height: 100px;
}

.dfbt-form-grid input[type="file"] {
    padding: 6px;
}

/* Campos que ocupam largura total */
.form-full {
    grid-column: 1 / -1;
}

/* Botões */
.dfbt-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dfbt-btn {
    background: #0073aa;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dfbt-btn:hover {
    background: #005d8f;
}

.dfbt-btn-secondary {
    background-color: #f5f5f5;
    color: #333 !important;
    border: 1px solid #ccc;
}

.dfbt-btn-secondary:hover {
    background-color: #eaeaea;
}

/* Mensagem de retorno */
#dfbtAutoCadastroMsg {
    margin-top: 20px;
    font-weight: 600;
}

#dfbtAutoCadastroMsg .sucesso {
    color: #1e7e34;
}

#dfbtAutoCadastroMsg .erro {
    color: #c82333;
}

/* Polaroid (Fotos) */
.dfbt-polaroid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.dfbt-polaroid {
    background: #fff;
    padding: 10px;
    width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    border: 1px solid #ccc;
    transition: transform 0.3s;
}

.dfbt-polaroid img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.dfbt-polaroid .caption {
    margin-top: 5px;
}

.dfbt-polaroid:hover {
    transform: scale(1.05) rotate(1deg);
}

.polaroid-1 {
    transform: rotate(-2deg);
}
.polaroid-2 {
    transform: rotate(2deg);
}
.polaroid-3 {
    transform: rotate(-1deg);
}

/* Responsivo */
@media (max-width: 768px) {
    .dfbt-form-grid {
        grid-template-columns: 1fr;
    }

    .dfbt-btn-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .dfbt-btn {
        width: 100%;
        text-align: center;
    }

    .dfbt-polaroid-wrapper {
        flex-direction: column;
        align-items: center;
    }
}