/* فونت فارسی (اختیاری) */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

body {
  background: linear-gradient(135deg, #ffd6e8 0%, #ffc1d6 100%);
  position: relative;
  overflow-x: hidden;
  font-family: 'Vazirmatn', sans-serif;
  min-height: 100vh;
  padding-top: 80px;
}

/* ریسه رنگی بالای صفحه */
.ribbon {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 80" xmlns="http://www.w3.org/2000/svg"><path d="M0 60 Q125 0 250 60 T500 60" fill="none" stroke="%23ff6ec4" stroke-width="4"/><circle cx="0" cy="60" r="6" fill="%23ff80b3"/><circle cx="125" cy="0" r="6" fill="%23ffb347"/><circle cx="250" cy="60" r="6" fill="%237873f5"/><circle cx="375" cy="0" r="6" fill="%23ff6ec4"/><circle cx="500" cy="60" r="6" fill="%23ffd700"/></svg>');
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.4;
  z-index: -1;
}

/* بادکنک‌ها */
.balloon {
  position: fixed;
  width: 80px;
  height: 100px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.balloon1 { top: 10%; left: 10%; background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff69b4" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><ellipse cx="32" cy="30" rx="16" ry="22"/><line x1="32" y1="52" x2="32" y2="64" stroke="%23ff69b4" stroke-width="4"/></svg>'); }
.balloon2 { top: 60%; right: 15%; background-image: url('data:image/svg+xml;utf8,<svg fill="%237873f5" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><ellipse cx="32" cy="30" rx="16" ry="22"/><line x1="32" y1="52" x2="32" y2="64" stroke="%237873f5" stroke-width="4"/></svg>'); }
.balloon3 { top: 30%; left: 60%; background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffd700" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><ellipse cx="32" cy="30" rx="16" ry="22"/><line x1="32" y1="52" x2="32" y2="64" stroke="%23ffd700" stroke-width="4"/></svg>'); }
.balloon4 { bottom: 10%; right: 30%; background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff8c00" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><ellipse cx="32" cy="30" rx="16" ry="22"/><line x1="32" y1="52" x2="32" y2="64" stroke="%23ff8c00" stroke-width="4"/></svg>'); }

/* ستاره‌ها */
.star {
  position: fixed;
  width: 14px;
  height: 14px;
  background: transparent;
  z-index: -1;
  pointer-events: none;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.4); }
}

.star svg {
  fill: #ff80b3;
  opacity: 0.8;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.1));
}

/* موقعیت ستاره‌ها */
.star1 { top: 5%; left: 10%; }
.star2 { top: 20%; right: 15%; }
.star3 { top: 35%; left: 30%; }
.star4 { top: 50%; right: 25%; }
.star5 { top: 65%; left: 50%; }
.star6 { top: 80%; right: 10%; }
.star7 { top: 25%; left: 70%; }
.star8 { top: 40%; right: 45%; }
.star9 { top: 55%; left: 15%; }
.star10 { top: 75%; right: 30%; }
.star11 { top: 90%; left: 40%; }
.star12 { top: 15%; right: 40%; }

/* محتوای اصلی */
.content {
  text-align: center;
  position: relative;
  z-index: 1;
}

h1 {
  color: #d63384;
  font-size: 3rem;
  margin-bottom: 20px;
}

p {
  font-size: 1.3rem;
  color: #555;
}

/*---------------*/
/*-------Header--------*/
/*---------------*/

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: transparent; /* بک‌گراند روی container هست */
        padding: 5px 0;
    }

    .header-container {
        max-width: 1200px;
        width: 95%;
        margin: 0 auto;
        padding: 15px 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        background: linear-gradient(135deg, #ff6ec4, #7873f5);
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        color: white;
    }

    .header-logo {
        height: 50px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(255,255,255,0.5);
    }

    nav {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .button {
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        padding: 10px 20px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.2s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .button:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

    .hamburger {
        display: none;
        font-size: 28px;
        cursor: pointer;
        color: white;
    }

    @media (max-width: 768px) {
        nav {
            display: none;
            flex-direction: column;
            background: linear-gradient(135deg, #ffffff, #ffe0f7);
            position: absolute;
            top: 70px;
            right: 20px;
            border-radius: 15px;
            padding: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 999;
        }

        nav.show {
            display: flex;
        }

        .button {
            background-color: #ff80b3;
            color: white;
            margin: 5px 0;
            justify-content: center;
        }

        .button:hover {
            background-color: #ff66a1;
        }

        .hamburger {
            display: block;
        }
    }
header.hide {
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

/*---------------*/
/*-------Header--------*/
/*---------------*/

/*---------------*/
/*-------Slider--------*/
/*---------------*/


.custom-box-container {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

.custom-box {
  background: #fefefe;
  border-radius: 16px;
  border: 1px solid #ececec;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-width: 850px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.custom-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.box-header {
  background: linear-gradient(45deg, #ff9a9e, #fad0c4);
  font-size: 1.6rem;
  font-weight: 600;
  padding: 18px 24px;
  color: #333;
  text-align: center;
}

.box-body {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.box-text {
  flex: 1;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

.box-image {
  max-width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 192, 203, 0.2);
  transition: transform 0.3s ease;
}

.custom-box:hover .box-image {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .box-body {
    flex-direction: column;
    text-align: center;
  }

  .box-image {
    max-width: 100%;
  }
}

/*---------------*/
/*-------Slider--------*/
/*---------------*/


h1 {
  font-size: 2.2rem;
  text-align: center;
  margin: 40px 0 20px;
  color: #333;
  font-weight: 700;
  position: relative;
}

h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #ff758c, #ff7eb3);
  margin: 10px auto 0;
  border-radius: 5px;
}

/* بخش توضیحات مراحل */
.tozih {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.tozih .box {
  background: #fff3f8;
  border: 1px solid #ffd6e0;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #444;
  box-shadow: 0 4px 14px rgba(255, 182, 193, 0.2);
  transition: all 0.3s ease;
  min-width: 220px;
  text-align: center;
  cursor: pointer;
}

.tozih .box:hover {
  background: #ffeaf1;
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(255, 142, 170, 0.25);
}

/* بخش عکس و متن */
.aksvamatn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 20px;
}

.aksvamatn .item {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aksvamatn .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 165, 180, 0.15);
}

.aksvamatn img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.aksvamatn .text {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}

/*---------------*/
/*-------Form--------*/
/*---------------*/

/* کانتینر اصلی */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px; /* کاهش فاصله بین فرم و عکس */
  padding: 40px 20px;
  font-family: 'Vazirmatn', sans-serif;
}

/* باکس فرم */
form {
  max-width: 420px;
  width: 100%;
  margin: 0;
  background: #ffffff;
  padding: 20px; /* کاهش پدینگ */
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(174, 144, 255, 0.1);
}

/* ورودی‌ها */
form input[type="text"],
form input[type="tel"],
form input[type="email"],
form input[type="date"],
form input[type="file"],
form select {
  width: 100%;
  padding: 12px 16px;
  margin: 6px 0 12px; /* کاهش margin پایین */
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background: #fcfaff;
  transition: all 0.3s ease;
}

form input:focus,
form select:focus {
  border-color: #b388ff;
  box-shadow: 0 0 8px rgba(179, 136, 255, 0.2);
  outline: none;
}

/* لیبل‌ها */
form label {
  font-weight: bold;
  margin-top: 12px;
  display: block;
  color: #555;
}

/* گروه‌های رادیویی و چک‌باکس‌ها */
.radio-group-container,
.checkbox-container {
  background: #faf5ff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 12px; /* کمتر از 20px */
}

/* گروه‌های رادیویی */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* نمایش افقی چک‌باکس‌ها */
.checkbox-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.checkbox-container > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* چک‌باکس‌ها و رادیو */
input[type="radio"],
input[type="checkbox"] {
  margin-left: 6px;
}

/* دکمه ذخیره */
form input[type="submit"] {
  background: linear-gradient(to right, #b388ff, #ff73b9);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 14px;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

form input[type="submit"]:hover {
  background: linear-gradient(to right, #a667e0, #ff4cbf);
}

/* فیلدهای قابل نمایش/مخفی */
#fileAndTimeFields,
#phoneFields,
#emailFields {
  margin-top: 20px;
  padding: 15px;
  background: #f3f0ff;
  border-radius: 12px;
  border: 1px dashed #ddd;
}

/* باکس چپ */
.left-section {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(255, 122, 164, 0.1);
  padding: 30px;
  max-width: 420px;
  flex: 1 1 300px;
  text-align: center;
}

.left-section h2 {
  font-size: 1.5rem;
  color: #a14fc2;
  margin-bottom: 15px;
}

.left-section p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: stretch;
  }

  .left-section,
  form {
    width: 100%;
  }

  .checkbox-container {
    flex-direction: column;
    gap: 10px;
  }
}

/*---------------*/
/*-------footer--------*/
/*---------------*/

footer {
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  padding: 25px 30px;
  font-family: 'Vazirmatn', sans-serif;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: white;
  max-width: 1200px;
  margin: 40px auto 20px;
  text-align: center;
}

.foot {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 250px;
  min-width: 220px;
  text-align: center;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-section button {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-section button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.socials a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
  display: inline-block;
}

.socials a:hover {
  color: #ff80b3;
  cursor: pointer;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .foot {
    flex-direction: column;
    gap: 30px;
  }

  .footer-section {
    min-width: unset;
  }
}
