.stockist-section {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  background: var(--color-background, #fff);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.account-section {
  text-align: center;
  margin-bottom: 20px;
}

.account-section a {
  color: var(--color-link, #050505);
  text-decoration: none;
  font-weight: bold;
}

.account-section a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: bold;
  color: var(--label-text-color, #444);
  background-color: var(--label-background-color, transparent);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  width: fit-content;
}

input,
textarea,
select {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-input-focus, #007bff);
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.2);
}

.input-warning {
  font-size: 13px;
  margin-top: 4px;
  color: red;
}

.phone-number-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-number-container select,
.phone-number-container input {
  flex: 1;
}

button {
  background-color: var(--color-button, #000);
  color: var(--color-button-text, #fff);
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;

  /* 🆕 Fix alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  height: 45px; /* Fixed height for better alignment */
}

button:hover {
  background-color: var(--color-button-hover, #0056b3);
}

#success-message {
  margin-top: 20px;
  font-size: 16px;
  color: green;
  text-align: center;
  font-weight: bold;
}

/* Responsive Enhancements */
@media screen and (min-width: 480px) {
  .phone-number-container {
    flex-direction: row;
  }
}

@media screen and (max-width: 768px) {
  .stockist-section {
    padding: 20px;
    margin: 20px;
  }

  form {
    gap: 12px;
  }

  input,
  textarea,
  select {
    font-size: 15px;
  }

  button {
    font-size: 15px;
    padding: 10px 12px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  .account-section {
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  .stockist-section {
    padding: 15px 20px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 16px;
  }

  .phone-number-container {
    flex-direction: column;
  }

  form {
    gap: 12px;
  }

  input,
  textarea,
  select {
    font-size: 15px;
  }

  button {
    font-size: 15px;
  }
}
#stockist-form h1,
#stockist-form h2,
#stockist-form > p:first-of-type {
  text-align: center;
}