@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap');

:root {
    --bg-page: #ffffff;
    --bg-section: #fcfcfc;
    --text-main: #333333;
    --text-label: #000000;
    --border-color: #cccccc;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--text-main); 
    padding: 20px 0; 
    -webkit-font-smoothing: antialiased; 
    background-color: var(--bg-page);
}

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
header { text-align: center; margin-bottom: 25px; }
.header-logo { height: 120px; margin-bottom: 15px; }

h1 { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #333;
}

.intro-box p { font-size: 16px; font-weight: 300; color: #555; margin-bottom: 8px; line-height: 1.4; }

.section-box { 
    background-color: var(--bg-section); 
    padding: 30px 35px; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    border: 1px solid #f0f0f0;
}

.section-desc { font-size: 0.9rem; color: #777; margin-bottom: 20px; font-style: italic; }

h2 { 
    font-size: 1.2rem; 
    font-weight: 600; 
    border-bottom: 1px solid #ddd; 
    padding-bottom: 8px; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
}

.field { 
    margin-bottom: 20px; 
}

label { 
    font-size: 14px; 
    font-weight: 500; 
    margin-bottom: 6px; 
    display: block; 
    color: var(--text-label);
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 25px; }
.full { grid-column: span 2; }
.flex-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px 25px; }
.flex-row-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px 20px; }

/* --- CORREÇÃO DE ALINHAMENTO E ALTURA PARA IPHONE/SAFARI --- */
input[type="text"], 
input[type="email"], 
input[type="date"], 
input[type="time"], 
textarea {
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid var(--border-color); 
    border-radius: 4px; 
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    color: #333;
    background-color: #ffffff; 
    margin: 0; 
    -webkit-appearance: none; 
    appearance: none;
}

/* Trava a altura mínima para os inputs de 1 linha não ficarem finos no iOS */
input[type="text"], 
input[type="email"], 
input[type="date"], 
input[type="time"] {
    min-height: 42px;
    line-height: 1.5;
}

textarea { min-height: 50px; resize: none; overflow: hidden; line-height: 1.4; }

.input-padrao {
    min-height: 80px !important; 
    display: block;
}

input:focus, textarea:focus { outline: none; border-color: #000; }

.footer-btns { text-align: center; margin-top: 20px; }
.btn-submit { 
    background: #000; 
    color: #fff; 
    padding: 15px 40px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 700; 
    text-transform: uppercase;
    font-size: 14px;
    transition: background 0.3s;
}

/* --- AJUSTE PARA O CELULAR --- */
@media (max-width: 768px) {
    /* Força exatamente 1 coluna em todas as grids no mobile e aumenta o respiro */
    .grid, .flex-row-3, .flex-row-4 { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    .full { 
        grid-column: span 1; 
    }
    
    .section-box { padding: 25px 20px; }
    
    /* Garante que até campos com limitação de tamanho ocupem 100% no celular */
    .field div {
        max-width: 100% !important;
    }
}