:root {
    --bg-color: #fdfaf7; 
    --accent-color: #60513e; 
    --primary-color: rgba(41, 22, 15, 1); 
    --text-muted: #8a7a6a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Header com Logo e Título */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.logo {
    max-height: 90px;
    width: auto;
    display: block;
}

.header-text {
    text-align: left;
}

header h1 {
    font-weight: 600;
    font-size: 2.2rem;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

header p {
    color: var(--text-muted);
}

/* Secções */
.form-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.form-section h2 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.step {
    background: var(--accent-color);
    color: white;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    margin-right: 12px;
}

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

.field {
    display: flex;
    flex-direction: column;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea, select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(96, 81, 62, 0.1);
}

/* Coberturas / Cards - Ajustado para 2 colunas */
.coberturas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* FORÇA 2 COLUNAS */
    gap: 15px;
}

.card {
    cursor: pointer;
}

.card input {
    display: none;
}

.card-content {
    border: 2px solid #eee;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
    transition: all 0.2s;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.card input:checked + .card-content {
    border-color: var(--accent-color);
    background: rgba(96, 81, 62, 0.05);
}

/* Legal e Botão */
.legal-box {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: none;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #3d2217;
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 600px) {
    .container { padding: 30px 20px; }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-text {
        text-align: center;
    }

    .coberturas-grid {
        grid-template-columns: 1fr; /* Em telas pequenas, volta a 1 por linha */
    }
}
.help-box {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px dashed var(--text-muted);
    border-radius: 8px;
    font-size: 0.9rem;
}

.help-box a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
}
/* Container do Botão de Alternância */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: #f0ece8;
    padding: 10px 15px;
    border-radius: 8px;
    width: fit-content;
}

.switch-label {
    font-size: 0.9rem;
    text-transform: none; /* Retira o Caps Lock do label padrão */
    margin-bottom: 0;
}

#toggleStatus {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* Design do Slider */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(22px); }
.hidden {
    display: none !important;

body { display: none; } /* Esconde tudo ao carregar */

.detalhes-row {
    background-color: #fcfaf8;
    display: none; /* Escondido por padrão */
}

.detalhes-content {
    padding: 20px;
    border: 1px solid #e0d9d2;
    border-top: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detalhes-item {
    font-size: 0.9rem;
    line-height: 1.6;
}

.detalhes-item strong {
    color: #8e735b;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Cores para os estados */
.status-pill {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pendente { background: #fee2e2; color: #991b1b; } /* Vermelho claro */
.status-concluido { background: #dcfce7; color: #166534; } /* Verde claro */

/* Botão de Check */
.btn-check {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 5px;
    transition: 0.2s;
}
.btn-check:hover { background: #e2e8f0; }

.btn-home {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background-color: white;
    color: #8e735b;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 9999;
}

.btn-home:hover {
    background-color: #8e735b;
    color: white;
    transform: scale(1.1);
}

.btn-home i {
    font-size: 1.2rem;
}

/* Ajuste para ecrãs pequenos */
@media (max-width: 600px) {
    .btn-home {
        top: 15px;
        left: 15px;
        width: 38px;
        height: 38px;
    }
}