.custom-form {
  max-width: 100%;
  margin: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  direction: rtl;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid #ccc;
  border-radius: 12px;
  font: inherit;
  box-sizing: border-box;
  direction: rtl;
}

textarea { min-height: 100px; resize: vertical; }

.form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.form-row input[type="email"], .form-row input[type="tel"] { flex: 1; }

.radio-buttons { display: flex; justify-content: space-between; gap: 15px; background-color: white; }
.radio-buttons label { flex: 1; }
.radio-buttons input { display: none; }
.radio-buttons span {
  display: block; padding: var(--spacing-md); text-align: center;
  border: 1px solid #ccc; border-radius: 12px; cursor: pointer;
  transition: .3s;  color: #707070;
}
.radio-buttons input:checked+span {
  background: linear-gradient(to right,var(--primary),var(--primary-light));
  color: #fff; border: none; font-weight: bold;
}

@media (max-width:400px) {
  .custom-form { padding: 10px 2px; gap: 12px; }
  .custom-form input, .custom-form textarea {  padding: 10px; border-radius: 9px; }
  .form-row, .radio-buttons { flex-direction: column; gap: 7px; }
  .radio-buttons span { font-size: 13px; padding: 10px 0; }
}
