.box {
  direction: rtl;
  margin: 30px auto;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
}

.box img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.cta-box {
  padding: 15px;
  text-align: right;
  color: #fff;
}

.cta-box__header {
  font-size: 25px !important;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ✅ استایل ورودی سفارشی فرم */
/* حالت پیش‌فرض: فرم شماره تلفن */
.custom-phone-submit {
  display: flex;
  flex-direction: row-reverse;
  background: #fff;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  padding: 5px;
}

/* ورودی فرم */
.custom-phone-submit input[type="text"] {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 16px;
}

/* دکمه فرم */
.custom-phone-submit button {
  background-color: #9BFF00 !important;
  color: #000 !important;
  border: none;
  padding: 0 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 6px !important;
}

.custom-phone-submit button:hover {
  background-color: #005a87;
  color: #fff !important;
}

/* حالت فقط دکمه تماس */
.custom-phone-submit.full-button {
  display: block !important;
  background: transparent;
  border: none;
  max-width: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

.custom-phone-submit.full-button a {
  display: block;
  text-decoration: none;
}

.custom-phone-submit.full-button button {
  width: 100%;
  background-color: #9BFF00 !important;
  color: #000 !important;
  font-size: 18px;
  padding: 12px 0;
  border-radius: 8px !important;
  border: none;
}


/* ✅ مخفی‌سازی دکمه اصلی گرویتی فرم */
.gform_legacy_markup_wrapper {
  padding-right: 0 !important;
}

.gform_footer {
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: -1 !important;
}

/* ✅ placeholder ورودی تلفن */
input[id^="input_"][id$="_2"]::placeholder {
  text-align: left !important;
  font-size: 18px !important;
}

/* ✅ استایل حالت شماره تماس */
.cta-phone-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 10px 15px;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 8px;
  color: #000;
}

.cta-phone-box a {
  display: inline-block;
  padding: 10px 20px;
  background: #9BFF00;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-phone-box a:hover {
  background: #005a87;
  color: #fff;
}

