.wpcf7 {
  max-width: 100%;
  margin: 0 auto;
  direction: rtl;
  font-family: 'Arial', sans-serif;
}

:where(.wpcf7,form) .cf7-uniform-height-form {
  background: #fff;
  border: 2px solid #28668e;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,123,255,0.1);
  text-align: center; /* מרכוז כל התוכן בטופס */
}

:where(.wpcf7,form) .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
  justify-content: center; /* מרכוז השדות בשורה */
}

:where(.wpcf7,form) .cf7-uniform-height-form label {
  display: block;
  font-weight: bold;
  color: #000;
  margin-bottom: 5px;
  text-align: right;
  font-size: 17px;
}

:where(.wpcf7,form) .form-control {
  width: 200px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 17px;
  box-sizing: border-box;
  transition: border-color 0.3s;
  height: 40px;
  resize: none;
}

:where(.wpcf7,form) .form-control:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

:where(.wpcf7,form) .form-control::placeholder {
  color: #999;
  text-align: right;
}

:where(.wpcf7,form) .btn-submit {
  background-color: #28A745;
  color: white;
  padding: 9px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 17px;
  width: 82%;
  transition: background-color 0.3s;
  display: block;
  box-sizing: border-box;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
}

:where(.wpcf7,form) .btn-submit:hover {
  background-color: #218838;
}

:where(.wpcf7,form) .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 12px;
}

:where(.wpcf7,form) .wpcf7-response-output {
  border-radius: 5px;
  padding: 8px;
  margin-top: 8px;
}

:where(.wpcf7,form) .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

:where(.wpcf7,form) .wpcf7-validation-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* התאמה לנייד */
@media (max-width: 768px) {
  :where(.wpcf7,form) .form-row {
    flex-direction: column;
    justify-content: center; /* מרכוז גם בנייד */
  }
  :where(.wpcf7,form) .cf7-uniform-height-form {
    padding: 10px;
  }
  :where(.wpcf7,form) .form-control {
    width: 100%;
    height: 40px;
  }
  :where(.wpcf7,form) .btn-submit {
    padding: 10px 20px;
  }
}
:where(.wpcf7,form) .form-title {
  font-size: 18px;
  font-weight: bold;
  color: #28668e;
  margin-bottom: 15px;
  font-family: "Open Sans", sans-serif;
}
:where(.wpcf7,form) .wpcf7-acceptance {
  flex-direction: row-reverse; /* שם את התיבה מימין */
  align-items: center;
  text-align: right;
  margin-top: 10px;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
}

:where(.wpcf7,form) .wpcf7-acceptance input[type="checkbox"] {
  margin-left: 5px; /* מרווח בין התיבה לטקסט */
  visibility: visible; /* ודא שהתיבה גלויה */
}

:where(.wpcf7,form) .wpcf7-acceptance .privacy-text {
  margin-right: 5px; /* מרווח בין הטקסט לתיבה */
}

/* התאמה לנייד */
@media (max-width: 768px) {
  :where(.wpcf7,form) .wpcf7-acceptance {
    flex-direction: row-reverse;
    margin-top: 5px;
  }
}