/* --- TexArrest Record Review: nicer spacing + inputs --- */

.texarrest-rr-form{
  max-width: 760px;           /* keeps it readable */
  line-height: 1.4;
}

/* Section headings */
.texarrest-rr-form h3{
  margin: 28px 0 12px;
  font-size: 1.15em;
}

/* Make each label feel like a "field block" */
.texarrest-rr-form label{
  display:block;
  margin: 0 0 16px;
}

/* Helper text / descriptions */
.texarrest-rr-form .description{
  margin: 6px 0 14px;
  color: #555;
  font-size: 0.95em;
}

.texarrest-rr-legal-callout{
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
}

/* Inputs */
.texarrest-rr-form input[type="text"],
.texarrest-rr-form input[type="email"],
.texarrest-rr-form input[type="date"],
.texarrest-rr-form textarea,
.texarrest-rr-form select{
  width: 100%;
  max-width: 560px;           /* slightly wider */
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

/* Make selects match height */
.texarrest-rr-form select{
  height: 42px;
}

/* Textareas */
.texarrest-rr-form textarea{
  min-height: 120px;
  resize: vertical;
}

/* Focus state */
.texarrest-rr-form input[type="text"]:focus,
.texarrest-rr-form input[type="email"]:focus,
.texarrest-rr-form input[type="date"]:focus,
.texarrest-rr-form textarea:focus,
.texarrest-rr-form select:focus{
  outline: none;
  border-color: rgba(30, 140, 190, .6);
  box-shadow: 0 0 0 3px rgba(30, 140, 190, .18);
}

/* Checkboxes/radios spacing + alignment */
.texarrest-rr-checkbox,
.texarrest-rr-radio{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
}

.texarrest-rr-checkbox input,
.texarrest-rr-radio input{
  margin-top: 3px;
}

/* Character counter */
.texarrest-rr-remaining{
  margin-top: 6px;
  display:block;
  color:#666;
  font-size: 0.9em;
}

/* Required marker */
.texarrest-rr-form .required{
  color:#d63638;
  margin-left:4px;
}

/* Errors/success */
.texarrest-rr-errors{
  border:1px solid #cc1818;
  background:#ffecec;
  padding:12px 14px;
  margin: 0 0 18px;
  border-radius: 10px;
}

.texarrest-rr-success{
  border:1px solid #46b450;
  background:#f0fff4;
  padding:12px 14px;
  margin: 0 0 18px;
  border-radius: 10px;
}
.texarrest-rr-submit{
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  background: #111;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.texarrest-rr-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

.texarrest-rr-submit:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.texarrest-rr-submit:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(30,140,190,.22), 0 10px 22px rgba(0,0,0,.18);
}

.texarrest-rr-submit:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.texarrest-file-upload{
  display: block;
  margin: 16px 0 24px;
}

.texarrest-file-upload input[type="file"]{
  position: absolute;
  left: -9999px;
}

.texarrest-file-button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f1f1f1;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.texarrest-file-button::before{
  content: "📎";
  font-size: 1.1em;
}

.texarrest-file-button:hover{
  background: #e9e9e9;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.texarrest-file-button:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.texarrest-file-hint{
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: #666;
}
