/* Trust Rooms Tesseramenti — palette leggibilità v1.0.4
   Solo colori/contrasto: nessuna modifica a struttura o funzionalità. */
.trt-wrap{
  max-width:980px;
  margin:30px auto;
  color:#2b211c !important;
  color-scheme:light;
}

.trt-form{display:grid;gap:18px;color:#2b211c !important}

.trt-card{
  background:#ffffff !important;
  color:#2b211c !important;
  border:1px solid #ded3c4 !important;
  border-radius:14px;
  padding:24px;
  box-shadow:0 8px 28px rgba(0,0,0,.05);
}

.trt-card h3{
  margin:0 0 18px;
  font-size:24px;
  color:#2b211c !important;
  -webkit-text-fill-color:#2b211c !important;
}

.trt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}

.trt-form .trt-grid label,
.trt-form .trt-consents label{
  color:#3a2b24 !important;
  -webkit-text-fill-color:#3a2b24 !important;
}

.trt-grid label{display:grid;gap:7px;font-weight:600}

/* Il tema del sito imposta i campi scuri: questi colori devono prevalere. */
.trt-wrap .trt-form input[type="text"],
.trt-wrap .trt-form input[type="email"],
.trt-wrap .trt-form input[type="tel"],
.trt-wrap .trt-form input[type="date"],
.trt-wrap .trt-form input[type="number"],
.trt-wrap .trt-form select,
.trt-wrap .trt-form textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #cfc3b3 !important;
  border-radius:8px;
  padding:12px 13px;
  font-size:16px;
  background:#ffffff !important;
  background-color:#ffffff !important;
  color:#1f1a17 !important;
  -webkit-text-fill-color:#1f1a17 !important;
  caret-color:#1f1a17 !important;
  box-shadow:none !important;
  color-scheme:light;
}

.trt-wrap .trt-form select option{
  background:#ffffff !important;
  color:#1f1a17 !important;
  -webkit-text-fill-color:#1f1a17 !important;
}

.trt-wrap .trt-form input::placeholder,
.trt-wrap .trt-form textarea::placeholder{
  color:#8b8177 !important;
  -webkit-text-fill-color:#8b8177 !important;
  opacity:1 !important;
}

.trt-wrap .trt-form input:focus,
.trt-wrap .trt-form select:focus,
.trt-wrap .trt-form textarea:focus{
  background:#ffffff !important;
  color:#1f1a17 !important;
  -webkit-text-fill-color:#1f1a17 !important;
  border-color:#d39a33 !important;
  box-shadow:0 0 0 3px rgba(211,154,51,.16) !important;
  outline:none !important;
}

.trt-wrap .trt-form input:-webkit-autofill,
.trt-wrap .trt-form input:-webkit-autofill:hover,
.trt-wrap .trt-form input:-webkit-autofill:focus{
  -webkit-text-fill-color:#1f1a17 !important;
  -webkit-box-shadow:0 0 0 1000px #ffffff inset !important;
  box-shadow:0 0 0 1000px #ffffff inset !important;
  transition:background-color 9999s ease-out 0s;
}

.trt-span-2{grid-column:1/-1}

.trt-help{
  color:#6e6359 !important;
  -webkit-text-fill-color:#6e6359 !important;
  margin-top:-8px;
}

.trt-consents{
  color:#2b211c !important;
}

.trt-consents label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:14px 0;
  line-height:1.45;
  font-weight:400;
}

.trt-consents input[type="checkbox"]{
  margin-top:4px;
  flex:0 0 auto;
  accent-color:#c88e2d !important;
}

.trt-wrap .trt-form a{
  color:#a66d12 !important;
  -webkit-text-fill-color:#a66d12 !important;
  text-decoration:underline;
  text-underline-offset:2px;
}
.trt-wrap .trt-form a:hover{
  color:#7f5009 !important;
  -webkit-text-fill-color:#7f5009 !important;
}

.trt-signature-box{
  background:#ffffff !important;
  border:2px dashed #b9a98f !important;
  border-radius:10px;
  overflow:hidden;
}
.trt-signature-box canvas{
  display:block;
  width:100%;
  height:220px;
  touch-action:none;
  background:#ffffff !important;
  cursor:crosshair;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
}
.trt-signature-actions{margin-top:10px}

.trt-secondary,.trt-submit{border:0;border-radius:8px;padding:12px 18px;cursor:pointer}
.trt-wrap .trt-secondary{
  background:#eee8df !important;
  color:#2b211c !important;
  -webkit-text-fill-color:#2b211c !important;
  border:1px solid #d2c5b3 !important;
}
.trt-wrap .trt-secondary:hover{background:#e3d8ca !important}

.trt-wrap .trt-submit{
  background:#d39a33 !important;
  color:#17120d !important;
  -webkit-text-fill-color:#17120d !important;
  font-weight:700;
  font-size:17px;
  padding:15px 24px;
  border:1px solid #bd8120 !important;
}
.trt-wrap .trt-submit:hover{background:#e1aa45 !important}

.trt-notice{padding:14px 16px;border-radius:10px;margin-bottom:18px;color:#24201c !important}
.trt-success{background:#e8f7ed !important;border:1px solid #78b98d !important}
.trt-error{background:#fff0f0 !important;border:1px solid #d88 !important}

.trt-client-error[hidden]{display:none!important}
.trt-field-error{border-color:#c62828!important;box-shadow:0 0 0 2px rgba(198,40,40,.12)!important}
.trt-submit:disabled{opacity:.65;cursor:wait}

@media(max-width:680px){
  .trt-grid{grid-template-columns:1fr}
  .trt-span-2{grid-column:auto}
  .trt-card{padding:18px}
  .trt-signature-box canvas{height:180px}
}
