/* ================================================================
   Rental application - rental-application.html / demande-de-location.html
   Kevin's paper "Offre de location", section by section. The field
   styles are the site's .form; this file only lays the sections out.
   ================================================================ */

.app-wrap { max-width: 50rem; }

.app-form { gap: 0; }

.app-form fieldset {
  /* A fieldset defaults to min-width: min-content, so on a phone the inputs
     pushed the whole card past the screen edge. */
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* The rule between sections sits on the legend, not the fieldset: a legend
   straddles its fieldset's top edge, so any line there runs through it. */
.app-form fieldset + fieldset legend {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.app-form legend {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: .25rem;
}

.app-form legend small {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: .5rem;
}

/* A small caps line between groups inside one applicant. */
.app-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
  margin: .5rem 0 -.25rem;
}

.app-form .form-row > * { min-width: 0; }
.form-row.wide  { grid-template-columns: 2fr 1fr 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* Parking and locker: how many, and at what price, side by side. */
.app-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.app-extra {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.app-extra > span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-extra label { font-size: 0.75rem; letter-spacing: .14em; }

.app-declaration {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--ground);
  border-left: 2px solid var(--brand);
  padding: 1rem 1.125rem;
  margin: 0;
}

.app-form .consent {
  display: grid;
  grid-template-columns: auto 1fr;
  flex-direction: row;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.app-date { font-size: 0.875rem; color: var(--muted); margin: 0; }
.app-date b { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1rem; }

.app-form .btn { align-self: flex-start; margin-top: .5rem; }

.app-done {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

.app-done h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .75rem; }
.app-done a { color: var(--brand); }

@media (max-width: 540px) {
  .form-row.wide, .form-row.three { grid-template-columns: 1fr; }
}
