/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

table {
  font-size: 15px;
}

input,
select,
textarea {
  font-weight: 400;
}

tr td:first-child b {
  font-weight: 500;
}


/* ===== TABELLA FORM ===== */
table {
  width: 100%;
  max-width: 800px; /* ?? pił largo */
  margin: 30px auto;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Celle */
td {
  padding: 6px 20px;
  display: block;
}

/* Label */
tr td:first-child b {
  display: block;
  font-size: 0.85rem;
  color: #475569;
  margin-top: 14px;
  margin-bottom: 4px;
}

/* ===== INPUT ===== */
input,
select,
textarea {
  width: 100%;
  max-width: 650px; /* ?? evita campi troppo lunghi */
  padding: 11px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  transition: all 0.2s ease;
}

/* Focus */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 130px;
}

/* ===== ERRORI ===== */
td[style*="color: #FF0000"] {
  color: #dc2626 !important;
  font-size: 0.85rem;
}

/* ===== BOTTONE ===== */
input[type="submit"] {
  width: 100%;
  max-width: 300px;
  background: #2563eb;
  color: white;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

input[type="submit"]:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

input[type="submit"]:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  table {
    margin: 10px;
    border-radius: 10px;
  }

  td {
    padding: 6px 12px;
  }

  input,
  select,
  textarea {
    max-width: 100%;
  }

  input[type="submit"] {
    max-width: 30%;
  }
}
