/* Public rental application form: stable spacing and readable controls. */
.dk-rental-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.dk-rental-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dk-rental-fieldset {
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid rgb(148 163 184 / 0.32);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dk-rental-fieldset > legend {
  float: none;
  width: auto;
  max-width: 100%;
  margin: 0 0 0.15rem;
  padding: 0 0.45rem 0 0;
  line-height: 1.35;
}

.dk-rental-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.dk-rental-control {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.dk-rental-label {
  display: block;
  margin: 0 !important;
  line-height: 1.4;
}

.dk-rental-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  box-sizing: border-box;
  line-height: 1.4;
}

textarea.dk-rental-input {
  min-height: 6.5rem;
  resize: vertical;
}

select.dk-rental-input {
  padding-right: 2.75rem;
}

input[type="file"].dk-rental-input {
  min-height: 3.25rem;
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  overflow: hidden;
}

.dk-rental-confirmations {
  gap: 0.8rem;
}

.dk-rental-checkbox {
  min-height: 3.25rem;
  margin: 0;
  line-height: 1.45;
}

.dk-rental-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.22rem;
}

.dk-rental-actions {
  margin-top: 0.25rem;
  gap: 0.75rem;
}

.dk-rental-draft-notice {
  line-height: 1.5;
}

@media (min-width: 768px) {
  .dk-rental-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dk-rental-form {
    gap: 1.25rem;
  }

  .dk-rental-fieldset {
    padding: 1rem;
    gap: 1rem;
  }

  .dk-rental-grid {
    row-gap: 1rem;
  }
}

/* v3: clear validation feedback without resetting entered values. */
.dk-rental-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.14) !important;
  background-image: none !important;
}

.dk-rental-checkbox.dk-rental-invalid,
.dk-rental-checkbox:has(input.dk-rental-invalid) {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.10) !important;
}

.dk-rental-invalid:focus {
  outline: none !important;
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 4px rgb(220 38 38 / 0.18) !important;
}
