/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cabeçalho */
header {
    background-color: #2c3e50;
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Seções do formulário */
.form-section {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Grupo de rádio */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group.vertical {
    flex-direction: row;
    gap: 50px;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

/* Estilo para o total */
.total {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total label {
    margin-bottom: 0;
    font-size: 1.1rem;
}

#total-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Estilo para upload de ficheiro */
.file-label {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.file-label:hover {
    background-color: #2980b9;
}

.file-label input[type="file"] {
    display: none;
}

.file-info {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

/* Área de pré-visualização de imagem */
.image-preview {
    margin-top: 15px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s;
}

.image-preview.has-image {
    border-color: #3498db;
    border-style: solid;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-preview p {
    color: #666;
    margin: 0;
}

.remove-image {
    margin-top: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-image:hover {
    background-color: #c0392b;
}

/* Botão de submissão */
.form-actions {
    padding: 25px;
    text-align: center;
}

.submit-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.submit-btn:hover {
    background-color: #27ae60;
}

/* Responsividade */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 0;
    }
    
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .total {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}