/*
  Contact By Karsu – Form Styles (Elementor-safe)
  نکته مهم: همه‌چیز Scoped شده روی .crafto-form-style-1 تا با استایل‌های قالب/المنتور تداخل نداشته باشد.
*/

.crafto-form-style-1{
  --p:#0D83DD;
  --a:#FB8E17;
  --text:#0f172a;
  --muted:#64748b;
  --line: rgba(13,131,221,.18);

  direction: rtl;
  font-family:'IRANSans','IranSans','IRANSansWeb','Vazirmatn',sans-serif !important;
  color: var(--text);

  max-width: 760px;
  margin: 0 auto;

  padding: 14px 14px 10px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
  background:
    linear-gradient(180deg, rgba(13,131,221,.12), rgba(255,255,255,0) 55%),
    linear-gradient(90deg, rgba(251,142,23,.10), rgba(13,131,221,.06));
  box-shadow: 0 18px 42px rgba(2, 20, 35, .10);
  position: relative;
  overflow: hidden;
}

.crafto-form-style-1 *{ box-sizing:border-box; }

/* تزئین‌ها */
.crafto-form-style-1::before{
  content:"";
  position:absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(13,131,221,.35);
  top: 12px;
  left: 18px;
  opacity: .75;
}
.crafto-form-style-1::after{
  content:"";
  position:absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(251,142,23,.95);
  top: 42px;
  left: 56px;
  opacity: .85;
}

/* Screen reader label */
.crafto-form-style-1 .screen-reader-text{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* فاصله‌ها */
.crafto-form-style-1 .input-wrapper{
  position: relative;
  margin: 0 0 8px;
}

/* Inputs: compact + icon lane */
.crafto-form-style-1 input[type="text"],
.crafto-form-style-1 input[type="tel"],
.crafto-form-style-1 textarea{
  --icon: none;
  width: 100%;
  background-color: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 8px 12px;
  padding-left: 52px;
  font-size: 13.8px;
  line-height: 1.2;
  color: var(--text);
  background-image:
    linear-gradient(to right, rgba(13,131,221,.08) 0 44px, transparent 44px),
    var(--icon);
  background-repeat: no-repeat, no-repeat;
  background-size: 44px 100%, 17px 17px;
  background-position: left 0 center, left 14px center;
  box-shadow: 0 8px 18px rgba(2,20,35,.08);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.crafto-form-style-1 textarea{
  min-height: 86px;
  resize: vertical;
  padding-top: 10px;
  background-position: left 0 top, left 14px top 14px;
}

.crafto-form-style-1 ::placeholder{ color: rgba(100,116,139,.9); }

.crafto-form-style-1 input:focus,
.crafto-form-style-1 textarea:focus{
  border-color: rgba(13,131,221,.55);
  box-shadow: 0 0 0 4px rgba(13,131,221,.12), 0 12px 22px rgba(2,20,35,.10);
  transform: translateY(-1px);
}

/* متن قوانین */
.crafto-form-style-1 .contact-form-text{
  padding: 2px 6px 0;
  font-size: 12.2px;
  line-height: 1.55;
  color: var(--muted);
}
.crafto-form-style-1 .contact-form-text label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crafto-form-style-1 .contact-form-text input[type="checkbox"]{
  width: 16px;
  height: 16px;
  accent-color: var(--p);
}

/* دکمه */
.crafto-form-style-1 .elementor-button{
  width: 100%;
  border: 0 !important;
  border-radius: 14px;
  padding: 9px 12px;
  font-weight: 900;
  font-size: 13.6px;
  color: #fff !important;
  background: linear-gradient(135deg, #0D83DD, #0A6FB8);
  box-shadow: 0 14px 28px rgba(13,131,221,.24), 0 10px 20px rgba(2,20,35,.10);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.crafto-form-style-1 .elementor-button:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}
.crafto-form-style-1 .elementor-button:active{ transform: translateY(0); }

/* نتیجه */
.crafto-form-style-1 .karsu-result{
  margin-top: 8px;
  font-size: 12.8px;
  color: var(--text);
}

/* آیکون‌های هر فیلد (با id ها در شورت‌کد ست شده‌اند) */
.crafto-form-style-1 #your-name{
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230D83DD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
}
.crafto-form-style-1 #your-phone{
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230D83DD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.86.32 1.7.59 2.5a2 2 0 0 1-.45 2.11L8.1 9.1a16 16 0 0 0 6.8 6.8l.77-1.15a2 2 0 0 1 2.11-.45c.8.27 1.64.47 2.5.59A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E");
}
.crafto-form-style-1 #your-subject{
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230D83DD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12V7a2 2 0 0 0-2-2h-5L4 14l6 6 9-9z'/%3E%3Cpath d='M7.5 11.5h.01'/%3E%3C/svg%3E");
}

/* موبایل */
@media (max-width: 767px){
  .crafto-form-style-1{ padding: 13px 12px 10px; }
  .crafto-form-style-1 .input-wrapper{ margin-bottom: 7px; }
}
