.crispaf-ride-main {
  max-width: 62rem;
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.crispaf-ride-main > h1,
.ride-success h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.crispaf-ride-main .ride-intro {
  color: #e5e5df;
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2.5rem;
  max-width: 50rem;
}

.ride-form {
  background: rgba(8, 10, 10, .88);
  border: 1px solid rgba(166, 255, 0, .32);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .38);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}

.ride-field-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ride-field {
  margin-bottom: 1.4rem;
}

.ride-field label,
.ride-permission {
  color: #fff;
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.45;
  margin-bottom: .55rem;
}

.ride-field label > span:not(.optional),
.ride-required-note span {
  color: #a6ff00;
}

.ride-field .optional {
  color: #8f948d;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  margin-left: .35rem;
  text-transform: uppercase;
}

.ride-field input,
.ride-field textarea {
  appearance: none;
  background: #101313;
  border: 1px solid #4b504c;
  border-radius: 0;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 3.2rem;
  padding: .8rem .9rem;
  transition: border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}

.ride-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.ride-field input::placeholder,
.ride-field textarea::placeholder {
  color: #767b76;
}

.ride-field input:focus,
.ride-field textarea:focus {
  border-color: #a6ff00;
  box-shadow: 0 0 0 3px rgba(166, 255, 0, .13);
  outline: 0;
}

.ride-photo-field {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  padding-bottom: 1.4rem;
}

.ride-photo-field input[type='file'] {
  cursor: pointer;
  padding: .55rem;
}

.ride-photo-field input[type='file']::file-selector-button {
  background: #222724;
  border: 1px solid #a6ff00;
  color: #fff;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-right: .8rem;
  padding: .65rem .8rem;
}

.crispaf-ride-main .ride-help,
.crispaf-ride-main .ride-required-note {
  color: #969b95;
  font-size: .75rem;
  line-height: 1.5;
  margin: .55rem 0 0;
}

.ride-permission {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  font-size: .78rem;
  font-weight: 500;
  gap: .8rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
}

.ride-permission input {
  accent-color: #a6ff00;
  flex: 0 0 1.15rem;
  height: 1.15rem;
  margin: .2rem 0 0;
  width: 1.15rem;
}

.ride-permission input:focus-visible {
  outline: 2px solid #a6ff00;
  outline-offset: 3px;
}

.ride-submit,
.ride-home-link {
  align-items: center;
  background: #a6ff00;
  border: 1px solid #a6ff00;
  color: #080909;
  cursor: pointer;
  display: inline-flex;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.25rem;
  justify-content: center;
  letter-spacing: .09em;
  min-height: 3.25rem;
  padding: .8rem 1.6rem;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.ride-submit:hover,
.ride-home-link:hover {
  background: #fff;
  border-color: #fff;
  color: #080909;
  transform: translateY(-1px);
}

.ride-submit:focus-visible,
.ride-home-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.ride-errors {
  background: rgba(80, 8, 8, .88);
  border: 1px solid #ff7474;
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
}

.ride-errors h2 {
  color: #fff;
  font-size: 1.55rem;
  margin: 0 0 .55rem;
}

.ride-errors ul {
  color: #ffe3e3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .86rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 1.2rem;
}

.ride-success {
  background: rgba(8, 10, 10, .9);
  border: 1px solid #a6ff00;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.ride-success h1 {
  color: #a6ff00;
}

.ride-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

@media (max-width: 700px) {
  .ride-field-grid {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .ride-form {
    margin-left: -.25rem;
    margin-right: -.25rem;
  }

  .ride-submit {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .ride-photo-field input[type='file']::file-selector-button {
    display: block;
    margin: 0 0 .55rem;
    width: 100%;
  }
}
