/* === Codilogic | Estilo Carrasca8 Responsive === */

.qrq-form {
  max-width: 720px;
  margin: 40px auto;
  padding: 32px;
  background: #faf8f4;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  border: 1px solid #e7e3dd;
  font-family: "Poppins", "Open Sans", sans-serif;
  color: #2f2d2a;
  box-sizing: border-box;
  word-break: break-word;
}

.qrq-form h2, .qrq-form legend {
  color: #6b7a47;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.qrq-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.qrq-row label {
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  word-break: break-word;
}

.qrq-row input[type="text"],
.qrq-row input[type="email"],
.qrq-row input[type="number"],
.qrq-row input[type="date"],
.qrq-row input[type="file"],
.qrq-row select,
.qrq-row textarea {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d8d4ce;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.qrq-row input:focus,
.qrq-row select:focus,
.qrq-row textarea:focus {
  border-color: #6b7a47;
  box-shadow: 0 0 0 2px rgba(107, 122, 71, 0.2);
  outline: none;
}

.qrq-form button[type="submit"] {
  display: inline-block;
  background: #6b7a47;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.qrq-form button[type="submit"]:hover {
  background: #556337;
}

.qrq-success {
  background: #eef8ec;
  border: 1px solid #cde3c0;
  color: #445339;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.qrq-errors {
  background: #fff0f0;
  border: 1px solid #e3c0c0;
  color: #5b2b2b;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.qrq-guest {
  border: 1px solid #e7e3dd;
  background: #fff;
  padding: 18px;
  margin: 22px 0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.qrq-guest legend {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b7a47;
  word-break: break-word;
}

.qrq-summary {
  background: #f2efe9;
  border: 1px solid #e7e3dd;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #4a473e;
}

.qrq-summary strong {
  color: #6b7a47;
}

.qrq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  align-items: center;
}

.qrq-filters select,
.qrq-filters input[type="date"] {
  border-radius: 6px;
  padding: 4px 8px;
}

.qrq-filters .button-primary {
  background: #6b7a47;
  border: none;
}

.qrq-filters .button-primary:hover {
  background: #556337;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .qrq-form {
    padding: 24px;
    margin: 20px;
  }

  .qrq-row label {
    font-size: 15px;
  }

  .qrq-form button[type="submit"] {
    width: 100%;
    font-size: 15px;
    padding: 12px;
  }

  .qrq-summary,
  .qrq-guest {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .qrq-form {
    padding: 18px 14px;
    margin: 12px;
  }

  .qrq-row label,
  .qrq-row input,
  .qrq-row select,
  .qrq-row textarea {
    font-size: 14px;
  }

  .qrq-form button[type="submit"] {
    font-size: 14px;
    padding: 10px;
  }

  .qrq-guest legend {
    font-size: 1rem;
  }
}


/* === Ajustes móviles Carrasca8 === */

@media (max-width: 480px) {
  .qrq-form {
    padding: 20px 16px;
    margin: 10px;
    border-radius: 10px;
  }

  .qrq-row label {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .qrq-row select,
  .qrq-row input,
  .qrq-row textarea {
    font-size: 15px;
    padding: 10px 12px;
  }

  /* RGPD checkbox con texto largo */
  .qrq-row label span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .qrq-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-right: 8px;
    width: 18px;
    height: 18px;
  }

  .qrq-guest {
    padding: 16px;
  }

  .qrq-form button[type="submit"] {
    width: 100%;
    font-size: 15px;
    padding: 12px;
  }
}

/* Extra: mejor contraste RGPD */
.qrq-row label span a {
  color: #a68b6b;
  text-decoration: underline;
}

.qrq-row label span a:hover {
  color: #6b7a47;
}

