:root {
    --cor-principal: #018333;
    --cor-secundaria: #016226;
    --cor-fundo: #f3f4f6;
    --cor-texto: #1f2937;
    --cor-borda: #d1d5db;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--cor-principal);
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--cor-principal);
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.form-header p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.col-full {
    grid-column: span 2;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: #f9fafb;
    color: #111827;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 4px rgba(1, 131, 51, 0.15);
}

/* ================= ÁREA DE UPLOAD E CROP CUSTOMIZADA ================= */
.file-upload-wrapper {
    border: 2px dashed #cbd5e1;
    padding: 25px 15px;
    border-radius: 8px;
    background-color: #f8fafc;
    text-align: center;
    position: relative;
}

/* Esconde o botão padrão feio */
.file-upload-wrapper input[type="file"] {
    display: none;
}

/* Botão customizado para chamar o input de arquivo */
.btn-escolher-foto {
    background-color: white;
    color: var(--cor-texto);
    border: 1px solid var(--cor-borda);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-escolher-foto:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

/* Área do Cropper (Escondida por padrão) */
.crop-container {
    display: none;
    margin-top: 20px;
    max-height: 400px;
}

.img-preview {
    max-width: 100%;
    display: block;
}

.btn-confirmar-corte {
    background-color: #10b981;
    /* Verde esmeralda diferente para dar destaque */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

/* Badge de sucesso ao cortar */
.badge-sucesso {
    display: none;
    color: #047857;
    background-color: #d1fae5;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
}

/* ================= BOTÕES FINAIS ================= */
button[type="submit"] {
    background-color: var(--cor-principal);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 131, 51, 0.2);
}

.links-rodape {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-rodape a {
    color: var(--cor-principal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.links-rodape a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .col-full {
        grid-column: span 1;
    }

    .container {
        padding: 25px;
    }
}