.my-form {
  max-width: 98%;
  margin: 0 auto;
  direction: rtl;
  font-family: "IRANSans", "Tahoma", sans-serif;
  text-align: right;
  background: #f8fbff; /* زمینه بسیار روشن آبی */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 80, 160, 0.08);
}

.my-form .form-group {
  margin-bottom: 18px;
}

.my-form label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: #003366; /* آبی تیره خوانا */
}

.my-form input,
.my-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #bcd3eb; /* آبی خیلی ملایم */
  border-radius: 8px;
  background-color: #ffffff;
  color: #003366;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.my-form input::placeholder {
  color: #7a9bbd;
}

.my-form select option {
  color: #003366;
}

.my-form input:focus,
.my-form select:focus {
  outline: none;
  border-color: #4da3ff;
  box-shadow: 0 0 5px rgba(77, 163, 255, 0.4);
}

.my-form button {
  width: 100%;
  background-color: #4da3ff; /* آبی اصلی */
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(77, 163, 255, 0.3);
}

.my-form button:hover {
  background-color: #2b8eff; /* آبی کمی تیره‌تر */
  box-shadow: 0 6px 16px rgba(43, 142, 255, 0.4);
}

.form-response {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: #004080;
}
/* ===== Hard override: fix white text while typing ===== */
.my-form,
.my-form * {
  box-sizing: border-box;
}

/* Inputs */
.my-form input,
.my-form input[type],
.my-form select,
.my-form textarea {
  background-color: #fff !important;
  color: #003366 !important;
  -webkit-text-fill-color: #003366 !important; /* Chrome/Safari */
  caret-color: #003366 !important;            /* cursor */
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* States */
.my-form input:focus,
.my-form input:active,
.my-form input:hover,
.my-form input:focus-visible,
.my-form select:focus,
.my-form textarea:focus {
  color: #003366 !important;
  -webkit-text-fill-color: #003366 !important;
}

/* Placeholder */
.my-form input::placeholder,
.my-form textarea::placeholder {
  color: #7a9bbd !important;
  -webkit-text-fill-color: #7a9bbd !important;
  opacity: 1 !important;
}

/* Chrome autofill */
.my-form input:-webkit-autofill,
.my-form input:-webkit-autofill:hover,
.my-form input:-webkit-autofill:focus,
.my-form textarea:-webkit-autofill,
.my-form select:-webkit-autofill {
  -webkit-text-fill-color: #003366 !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 999999s ease-in-out 0s !important;
}

/* If a theme applies dark scheme to form controls */
.my-form {
  color-scheme: light !important;
}
