.form-control[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 0 48px 0 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--foreground);
  background-color: var(--surface-3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8f34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  color-scheme: dark;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.form-control[type="date"]:focus {
  border-color: var(--accent);
  background-color: #232823;
  box-shadow: 0 0 0 3px rgba(184, 243, 74, 0.12);
}

.form-control[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 48px;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.form-help {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 580px) {
  .form-control[type="date"] {
    min-height: 56px;
    padding-left: 14px;
    padding-right: 50px;
    border-radius: 5px;
    font-size: 1rem;
  }

  .form-help {
    font-size: 0.7rem;
  }
}