/* qp.css - Stili base per il questionario */

@import url('https://fonts.googleapis.com/css2?family=Lora&family=Playfair+Display:wght@500;700&display=swap');

h1, h2, h3 {
  font-family: 'Playfair Display', serif!important;
  font-weight: 700;
  color: #2a2a2a;
}

body, p, label, input, select, textarea, .question {
  font-family: 'Lora', serif;
  font-weight: 400;
  color: #333;
}

.qp-tab {
  display: none;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.qp-tab.active {
  display: block;
}

.qp-question {
  margin-bottom: 20px;
}

.qp-question legend {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.qp-rating {
  display: flex;
  gap: 6px;
  cursor: pointer;
  margin-top: 8px;
}

.qp-dot {
  font-size: 20px;
  color: #ccc;
  transition: color 0.2s ease;
}

.qp-dot.selected {
  color: #0073aa;
}

.qp-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.qp-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

.qp-nav {
  margin-top: 20px;
}

.qp-nav button {
  background-color: #0073aa;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  margin-right: 10px;
  transition: background-color 0.2s ease;
}

.qp-nav button:hover {
  background-color: #005f8d;
}

#qp-result {
  padding: 20px;
  background-color: #eef6f9;
  border-left: 5px solid #0073aa;
  border-radius: 8px;
}

#qp-result h2 {
  margin-top: 0;
  color: #0073aa;
}

#result{margin-bottom:40px;}
#questionario-form .tab p{padding-top:0px; padding-bottom:18px!important;}

span.dot{font-size:30px; display:inline-block; padding:3px;}

.question, .qp-result-box {
  border: 2px solid #4a90e2;        /* bordo blu elegante */
  border-radius: 8px;               /* angoli arrotondati */
  padding: 16px;                   /* spazio interno */
  margin-bottom: 20px;             /* spazio sotto la domanda */
  background-color: #f9faff;       /* sfondo chiaro */
  box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2); /* ombra leggera */
  transition: border-color 0.3s ease, box-shadow 0.3s ease; margin-top:15px!important;
}

.question:hover {
  border-color: #2a6acb;           /* bordo più scuro al passaggio */
  box-shadow: 0 4px 12px rgba(42, 106, 203, 0.3);
}

button,
.next-tab,
#qp-submit {
  background-color: #4a90e2;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  margin-top: 12px;
}

button:hover,
.next-tab:hover,
#qp-submit:hover {
  background-color: #2a6acb;
  transform: translateY(-2px);
}

button:disabled,
.next-tab:disabled,
#qp-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}