* {
  box-sizing: border-box;
}

:host {
  box-sizing: border-box;
  background: var(--card-background-color);
  border-radius: 0.5rem;
  margin: auto;
  font-size: var(--space-14);
  border: 0.05rem solid var(--border-color);
  padding: 0.5rem;
  width: 100%;
  font-family: 'Poppins', serif;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  --primary-color: var(--primary-blue, #001e57);
  --dropdown-bg-color: #f5f5f5;
}

h1,
p {
  margin: 0;
}

.step-number {
  flex-shrink: 0;
  display: inline-grid;
  place-content: center;
  width: 1.5rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  font-weight: 600;
  color: var(--primary-blue);
  margin-right: 0.5rem;
  background-color: var(--bg-blue);
}

h1 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-black);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

custom-select {
  width: 100%;
}

custom-select::part(select-button) {
  font-family: 'Poppins', serif;
  border-radius: var(--space-12);
}

.required-field {
  color: red;
}

textarea {
  font-family: 'Poppins', serif;
  width: 100%;
  padding: 0.5rem;
  border: 0.1rem solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1rem;
  resize: vertical;
  min-height: 6rem;
  max-height: 21rem;
  transition: border-color 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

textarea::-webkit-scrollbar {
  width: 6px;
}

textarea::-webkit-scrollbar-track {
  background: transparent;
}

textarea::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

#submit-button {
  background-color: var(--primary-blue);
  padding: 0.5rem 1rem;
  font-family: var(--ism-primary-font-family);
  color: white;
  border: none;
  border-radius: var(--space-12);
  cursor: pointer;
}

#submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 6px;
  padding: 8px;
  margin: 8px 0;
}

.error-message {
  color: #dc2626;
  font-size: 12px;
}

.error-close-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.error-close-btn:hover {
  opacity: 0.8;
}

recent-order-item-card::part(image-container) {
  width: 50px;
  height: 50px;
}
