/* Custom styling enhancements for SFR Business Survey */

/* Focus rings */
input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Custom styled radio option */
.opinion-radio-cell {
  position: relative;
  text-align: center;
}

.opinion-radio-cell input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 9999px;
  background-color: #ffffff;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.15s ease-in-out;
}

.opinion-radio-cell input[type="radio"]:hover {
  border-color: #e2001a;
  background-color: #fff1f2;
}

.opinion-radio-cell input[type="radio"]:checked {
  border-color: #e2001a;
  background-color: #e2001a;
  box-shadow: inset 0 0 0 3px #ffffff;
}

/* Hover effect on survey question rows */
.survey-row:hover {
  background-color: #f8fafc;
}

/* Word counter */
.word-counter {
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.15s;
}

.word-counter.ok {
  color: #64748b;
}

.word-counter.limit-exceeded {
  color: #e2001a;
  font-weight: 700;
}

/* Responsive tables */
@media (max-width: 640px) {
  .matrix-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}
