/* =========================================================
   Base
========================================================= */
.form-group,
.campo-especifique {
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label,
.dia-titulo,
.horario-titulo,
.checkbox-custom,
.checkbox-custom .checkbox-text {
  font-size: 13px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group span {
  display: block;
  margin-top: 5px;
}

/* =========================================================
   Inputs
========================================================= */
.form-group input[type="text"],
.form-group textarea {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 8px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.form-group-botao {
  text-align: right;
}

/* =========================================================
   Layout
========================================================= */
.form-section {
  background: #fff;
  border: 1px solid #ccc;
  padding: 18px;
  margin-top: 5px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.form-dados-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.form-dados-group {
  display: flex;
  flex-direction: column;
}

.form-dados-group.full-width {
  flex: 0 0 100%;
  max-width: 100%;
}

/* =========================================================
   Programação / Tabela
========================================================= */
.dia-bloco {
  border: 1px solid #ccc;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
}

.dia-titulo {
  font-weight: bold;
  margin-bottom: 10px;
  color: #f68028;
}

.horario-bloco {
  margin-bottom: 10px;
}

.horario-titulo {
  font-weight: bold;
}

.oficina-item {
  margin: 5px 0 0 15px;
}

.textocinza {
  color: #888;
}

/* =========================================================
   Checkbox Custom
========================================================= */
.checkbox-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-left: 24px;
  cursor: pointer;
  color: #333;
  user-select: none;
}

/* input oculto */
.checkbox-custom input {
  position: absolute;
  opacity: 0;
}

/* caixa */
.checkbox-custom .checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #f68028;
  border-radius: 4px;
  box-sizing: border-box;
}

/* check */
.checkbox-custom input:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 3px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  color: #f68028;
}

/* hover */
.checkbox-custom:not(.desativado):hover .checkmark {
  background-color: #ffe9d6;
}

/* erro */
.checkbox-custom.erro .checkmark {
  background-color: #ffe5e5;
  border-color: red;
}

/* =========================================================
   Disabled (unificado)
========================================================= */
.checkbox-custom input:disabled ~ .checkmark,
.checkbox-custom input:disabled ~ .checkbox-text {
  background-color: #f0f0f0;
  border-color: #ccc;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

.checkbox-custom input:disabled:checked ~ .checkmark:after {
  color: #ccc;
}

/* =========================================================
   Responsivo
========================================================= */
@media (min-width: 600px) {
  .form-dados-row {
    flex-direction: row;
  }

  .form-dados-group {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .form-section {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .checkbox-custom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .form-group input[type="submit"] {
    width: 100%;
  }
}
