body {
  font-family: Arial, sans-serif;
  background-color: #dcdcdc;
  color: #1a1a1a;
  margin: 0px auto;
  max-width: 800px;
  padding: 0px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-overlay p {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #dcdcdc;
  border-top: 4px solid #0033a0;
  border-radius: 50%;
  animation: subaru-spin 0.8s linear infinite;
}

@keyframes subaru-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Columna única: header, contenido y footer comparten el mismo ancho (max-width del body),
   así todo queda alineado en vez del form flotando como tarjeta aparte. */
.layout {
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.header,
.footer {
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

#consentForm {
  padding: 24px 20px;
  box-sizing: border-box;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group input:focus {
  outline: none;
  border-color: #0033a0;
}

.form-group input.field-invalid {
  border-color: #c23934;
}

.field-error {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  font-size: 12px;
  color: #c23934;
}

.consent-block {
  margin: 20px 0;
}

.legal-text {
  font-size: 12px;
  line-height: 1.5;
  color: #444;
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 10px;
  margin-bottom: 10px;
  background: #fafafa;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
}

.buttons {
  text-align: center;
}

.btn-submit {
  display: inline-block;
  width: auto;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background-color: #0033a0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-submit:disabled {
  background-color: #a9a9a9;
  cursor: not-allowed;
}

.notification-container {
  padding: 20px;
  box-sizing: border-box;
}

.success-message,
.error-message {
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  font-size: 16px;
  box-sizing: border-box;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}