.order-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 1rem;
}

.order-form__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  font: inherit;
}

.order-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.order-form button {
  width: 100%;
}

.order-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#order-success,
#order-error {
  margin-top: 1rem;
}

#order-success {
  color: green;
}

#order-error {
  color: red;
}

@media (min-width: 768px) {

  .order-form__row {
    flex-direction: row;
  }

  .order-form__row input {
    flex: 1;
    min-width: 0;
  }

  .order-form button {
    width: auto;
    align-self: flex-start;
  }
}

html.dark .order-form input,
html.dark .order-form textarea {
  background-color: var(--bg-color);
  color: var(--text-primary);
  border-color: #444;
}

html.dark .order-form input::placeholder,
html.dark .order-form textarea::placeholder {
  color: #999;
}

html.dark .order-form input:focus,
html.dark .order-form textarea:focus {
  border-color: #28374E;
}

html.dark #order-success {
  color: #7ddc7d;
}

html.dark #order-error {
  color: #ff8a8a;
}

