/* Arrest Florida Record Review form styling */

.texarrest-rr-form {
  max-width: min(100%, 1000px);
  margin: 0;
  padding: 28px 30px 30px;
  border: 1px solid var(--af-border, #e8e8e8);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 249, 249, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  line-height: 1.5;
  color: var(--af-charcoal, #121212);
}

.texarrest-rr-form h3 {
  margin: 36px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--af-charcoal, #121212);
}

.texarrest-rr-form h3:first-of-type {
  margin-top: 0;
}

.texarrest-rr-form hr {
  height: 1px;
  margin: 0 0 18px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.7), rgba(18, 18, 18, 0.08));
}

.texarrest-rr-form label {
  display: block;
  margin: 0 0 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--af-charcoal, #121212);
}

.texarrest-rr-form .description,
.texarrest-file-hint,
.texarrest-rr-remaining {
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--af-copy, #505050);
}

.texarrest-rr-form .description {
  margin: 0 0 14px;
}

.texarrest-rr-form .required {
  margin-left: 4px;
  color: var(--af-orange, #ff7a00);
}

.texarrest-rr-form input[type="text"],
.texarrest-rr-form input[type="email"],
.texarrest-rr-form input[type="tel"],
.texarrest-rr-form input[type="date"],
.texarrest-rr-form textarea,
.texarrest-rr-form select {
  width: 100%;
  max-width: none;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--af-charcoal, #121212);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.texarrest-rr-form input::placeholder,
.texarrest-rr-form textarea::placeholder {
  color: #7a7a7a;
}

.texarrest-rr-form input[type="date"],
.texarrest-rr-form select {
  min-height: 56px;
}

.texarrest-rr-form textarea {
  min-height: 140px;
  resize: vertical;
}

.texarrest-rr-form input[type="text"]:focus,
.texarrest-rr-form input[type="email"]:focus,
.texarrest-rr-form input[type="tel"]:focus,
.texarrest-rr-form input[type="date"]:focus,
.texarrest-rr-form textarea:focus,
.texarrest-rr-form select:focus {
  outline: none;
  border-color: rgba(255, 122, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
  background: #fffdfb;
}

.texarrest-rr-radio,
.texarrest-rr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.texarrest-rr-radio input,
.texarrest-rr-checkbox input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--af-orange, #ff7a00);
}

.texarrest-rr-radio:hover,
.texarrest-rr-checkbox:hover,
.texarrest-rr-radio:has(input:focus),
.texarrest-rr-checkbox:has(input:focus),
.texarrest-rr-radio:has(input:checked),
.texarrest-rr-checkbox:has(input:checked) {
  border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
  background: rgba(255, 250, 245, 0.98);
}

.texarrest-rr-legal-callout {
  margin: 14px 0 18px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(255, 122, 0, 0.25);
  border-left: 4px solid var(--af-orange, #ff7a00);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.95), rgba(255, 255, 255, 0.95));
}

.texarrest-rr-legal-callout p {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.texarrest-file-upload {
  display: block;
  margin: 16px 0 24px;
  padding: 18px 18px 16px;
  border: 1px dashed rgba(255, 122, 0, 0.35);
  border-radius: 18px;
  background: rgba(255, 249, 244, 0.75);
}

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

.texarrest-file-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--af-orange, #ff7a00), var(--af-orange-deep, #ef6b00));
  color: var(--af-white, #fff);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  box-shadow: 0 14px 24px rgba(255, 122, 0, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.texarrest-file-button::before {
  content: "\1F4CE";
  font-size: 1rem;
}

.texarrest-file-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(255, 122, 0, 0.24);
  filter: saturate(1.02);
}

.texarrest-file-button:active {
  transform: translateY(0);
}

.texarrest-file-hint {
  display: block;
  margin-top: 10px;
}

.texarrest-rr-errors,
.texarrest-rr-success {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 16px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

.texarrest-rr-errors {
  border: 1px solid rgba(188, 31, 31, 0.2);
  background: linear-gradient(180deg, #fff1f1, #fff7f7);
  color: #8a1f1f;
}

.texarrest-rr-errors ul {
  margin: 0;
  padding-left: 22px;
}

.texarrest-rr-success {
  border: 1px solid rgba(18, 132, 61, 0.2);
  background: linear-gradient(180deg, #f2fff6, #fbfffc);
  color: #1d6d38;
}

.texarrest-rr-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--af-orange, #ff7a00), var(--af-orange-deep, #ef6b00));
  color: var(--af-white, #fff);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 26px rgba(255, 122, 0, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}

.texarrest-rr-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 30px rgba(255, 122, 0, 0.26);
  filter: saturate(1.03);
}

.texarrest-rr-submit:active {
  transform: translateY(0);
  box-shadow: 0 12px 20px rgba(255, 122, 0, 0.18);
}

.texarrest-rr-submit:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.16), 0 16px 26px rgba(255, 122, 0, 0.22);
}

.texarrest-rr-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 782px) {
  .texarrest-rr-form {
    padding: 22px 18px 24px;
    border-radius: 20px;
  }

  .texarrest-rr-form h3 {
    font-size: 1.7rem;
  }

  .texarrest-rr-radio,
  .texarrest-rr-checkbox,
  .texarrest-file-upload {
    padding: 14px;
  }

  .texarrest-rr-submit {
    width: 100%;
  }
}
