@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input,
textarea {
  font-family: "Vazirmatn", "Poppins", sans-serif;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
  background-color: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form {
  width: 100%;
  max-width: 820px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  opacity: 90%;
}

.contact-form {
  background-color: #bc1a1a;
  position: relative;
}

.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 20%, #921414);
  position: absolute;
}

.circle.one {
  width: 130px;
  height: 130px;
  top: 130px;
  left: -40px; 
}

.circle.two {
  width: 80px;
  height: 80px;
  top: 10px;
  left: 30px; 
}

.contact-form:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: #bc1a1a;
  transform: rotate(45deg);
  top: 50px;
  right: -13px; 
}

form {
  padding: 2.3rem 2.2rem;
  z-index: 10;
  overflow: hidden;
  position: relative;
}

.title {
  color: #fff;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.input-container {
  position: relative;
  margin: 1rem 0;
}

.input {
  width: 100%;
  outline: none;
  border: 2px solid #dbdbdb;
  background: #fafafa;
  padding: 0.6rem 1.2rem;
  color: #111111;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 5px;
  transition: 0.3s;
  text-align: right; 
}

textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 5px;
  resize: none;
  overflow-y: auto;
  text-align: right; 
}

.input-container label {
  position: absolute;
  top: 50%;
  right: 15px; 
  transform: translateY(-50%);
  padding: 0 0.4rem;
  color: #161616;
  font-size: 0.9rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 1000;
  transition: 0.5s;
}

.input-container.textarea label {
  top: 1rem;
  transform: translateY(0);
}

.btn {
  padding: 0.6rem 1.3rem;
  background-color: #fff;
  border: 2px solid #fafafa;
  font-size: 0.95rem;
  color: #bc1a1a;
  line-height: 1;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
  width: 100%;
}

.btn:hover {
  background-color: transparent;
  color: #fff;
}

.input-container span {
  position: absolute;
  top: 0;
  right: 25px; 
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 0 0.4rem;
  color: transparent;
  pointer-events: none;
  z-index: 500;
}

.input-container span:before,
.input-container span:after {
  content: "";
  position: absolute;
  width: 10%;
  opacity: 0;
  transition: 0.3s;
  height: 5px;
  background-color: #bc1a1a;
  top: 50%;
  transform: translateY(-50%);
}

.input-container span:before {
  right: 50%; 
}

.input-container span:after {
  left: 50%; 
}

.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  right: 25px; 
  font-size: 0.8rem;
}

.input-container.focus span:before,
.input-container.focus span:after {
  width: 50%;
  opacity: 1;
}

.contact-info {
  padding: 2.3rem 2.2rem;
  position: relative;
}

.contact-info .title {
  color: #bc1a1a;
}

.text {
  color: #333;
  margin: 1.5rem 0 2rem 0;
  text-align: right; 
  line-height: 1.6;
}

.information {
  display: flex;
  color: #555;
  margin: 0.7rem 0;
  align-items: center;
  font-size: 0.95rem;
  justify-content: flex-end; 
}

.information i {
  color: #1ABC9C;
  margin-right: 0; 
  margin-left: 10px; 
}

.icon {
  width: 28px;
  margin-left: 0.7rem; 
}

.social-media {
  padding: 2rem 0 0 0;
}

.social-media p {
  color: #333;
  text-align: right; 
}

.social-icons {
  display: flex;
  margin-top: 0.5rem;
  justify-content: flex-end; 
}

.social-icons a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(45deg, #bc1a1a, #921414);
  color: #fff;
  text-align: center;
  line-height: 35px;
  margin-left: 0.5rem; 
  transition: 0.3s;
}

.social-icons a:hover {
  transform: scale(1.05);
}

.contact-info:before {
  content: "";
  position: absolute;
  /* ابعاد و موقعیت برای نمایش بهتر تصویر پس‌زمینه */
  width: 100%; 
  height: 100%;
  top: 0;
  left: 0; 
  /* حذف border و border-radius برای تصویر */
  border: none;
  border-radius: 0;
  
  /* 👈🏻 مهم: اضافه کردن تصویر پس‌زمینه (سپر قرمز) */
  background: url('saya_logo1.png') no-repeat bottom left / 50% auto;
  
  /* 👈🏻 مهم: تنظیم میزان کمرنگ بودن (شفافیت) */
  opacity: 0.15; /* مقدار بین 0 (کاملاً شفاف) تا 1 (کاملاً کدر) */
  
  /* تنظیم z-index برای قرار گرفتن در پشت محتوا */
  z-index: 1; /* در صورت نیاز به عقب‌تر بردن، این مقدار را کاهش دهید. */
  display: none;
}

/* 🟢 شروع تغییرات برای جایگزینی دایره با تصویر */
.big-circle {
  position: absolute;
  width: 500px; /* عرض تصویر */
  height: 500px; /* ارتفاع تصویر */
  border-radius: 0; /* برای تصویر مربعی یا مستطیلی */
  /* 👇🏻 مسیر 'img/background-image.jpg' را با مسیر تصویر خود جایگزین کنید. */
  background: url('./image/saya_logo1.png') no-repeat center center / contain;
  /* 'contain' باعث می‌شود تصویر کامل نمایش داده شود و تمام المان را پر نکند. از 'cover' یا '100% 100%' برای پر کردن کامل استفاده کنید. */
  
  bottom: 50%;
  left: 50%; 
  transform: translate(40%, 38%); 
}

/* ❌ حذف بخش توخالی: این شبه المان که دایره توخالی را ایجاد می‌کرد حذف شده است. */
/* .big-circle:after { ... } دیگر وجود ندارد */

.square {
  position: absolute;
  height: 400px;
  top: 50%;
  right: 50%; 
  transform: translate(-181%, 11%); 
  opacity: 0.2;
}
/* 🔴 پایان تغییرات */

@media (max-width: 850px) {
  .form {
    grid-template-columns: 1fr;
  }

  .contact-info:before {
    bottom: initial;
    top: -75px;
    left: 65px; 
    transform: scale(0.95);
    
  }

  .contact-form:before {
    top: -13px;
    right: initial; 
    left: 70px; 
  }

  .square {
    transform: translate(-140%, 43%); 
    height: 350px;
  }

  /* 🟢 تنظیمات رسپانسیو برای تصویر جدید */
  .big-circle {
    background-size: contain; /* یا 'cover' */
    bottom: 75%;
    transform: scale(0.9) translate(40%, 30%); 
    left: 50%; 
  }
  /* 🔴 پایان تنظیمات رسپانسیو */

  .text {
    margin: 1rem 0 1.5rem 0;
  }

  .social-media {
    padding: 1.5rem 0 0 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }

  .contact-info:before {
    display: none;
  }

  .square,
  .big-circle {
    display: none;
  }

  form,
  .contact-info {
    padding: 1.7rem 1.6rem;
  }

  .text,
  .information,
  .social-media p {
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.15rem;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .icon {
    width: 23px;
  }

  .input {
    padding: 0.45rem 1.2rem;
  }

  .btn {
    padding: 0.45rem 1.2rem;
  }
}






/* ... کد قبلی ... */
@media (max-width: 850px) {
  /* ... سایر تنظیمات رسپانسیو قبلی ... */

  /* 🟢 تنظیمات رسپانسیو برای تصویر جدید (.big-circle) */
  .big-circle {
    width: 500px; /* کمی کوچک‌تر شود */
    height: 500px;
    bottom: initial; /* موقعیت پایین را حذف کنید */
    top: 0; /* به بالا منتقل شود */
    left: 0;
    transform: translate(-40%, -40%); /* جابجایی به گوشه بالا و چپ */
    opacity: 0.1; /* شاید کمی شفافیت بیشتر نیاز باشد */
  }
  /* 🔴 پایان تنظیمات رسپانسیو */

  /* ... سایر تنظیمات رسپانسیو قبلی ... */
}
/* ... کد قبلی ... */






/* ... کد قبلی ... */
@media (max-width: 480px) {
  /* ... سایر تنظیمات رسپانسیو قبلی ... */

  .square,
  .big-circle {
    display: none; /* لوگوی پس‌زمینه را مخفی می‌کند */
  }

  /* ... سایر تنظیمات رسپانسیو قبلی ... */
}