.container-form {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stronger page-offset specific to forms (overrides generic container-form in style.css)
   This lives in form.css which is loaded after style.css in pages like aluno_cadastro.html */

.container-form.page-offset {
    margin-top: 180px; /* desktop default - overrides style.css .container-form */
}

@media (max-width: 1024px) {
    .container-form.page-offset { margin-top: 150px; }
}

@media (max-width: 768px) {
    .container-form.page-offset { margin-top: 140px; }
}

@media (max-width: 480px) {
    .container-form.page-offset { margin-top: 120px; padding: 20px; }
}

.titulo-form {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-group-duo {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group-duo .form-group {
    flex: 1;
    min-width: 250px;
}

.botao {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
}

small#idade {
    display: block;
    margin-top: 5px;
    color: #007BFF;
    font-weight: bold;
}

/* Horários disponíveis - grid e botões usados por agenda pages */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.horario-botao {
    padding: 10px 8px;
    border-radius: 6px;
    border: 1px solid #06ae09;
    background: #fff;
    color: #06ae09;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.12s ease, color 0.12s ease, transform 0.06s ease;
}

.horario-botao:hover:not(.indisponivel) {
    background: #e6f3ff;
    transform: translateY(-1px);
}

.horario-botao.selected {
    background: #919492;
    color: #fff;
    border-color: #919492;
}

.horario-botao.indisponivel {
    background: #f5f5f5;
    color: #f10808;
    border-color: #f10808;
    cursor: not-allowed;
}

.horarios-info {
    color: #666;
    font-style: italic;
    margin: 6px 0;
}
