@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: linear-gradient(180deg,#fffaf7 0%,#fff 100%);
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #333;
  overflow-y: auto;
  height: auto;
  padding: 20px;
}

.form-wrapper {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
  padding: 30px 28px;
  text-align: center;
  position: relative;
}

.logo-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.shine-effect {
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer 2.5s infinite;
  z-index: 2;
}

@keyframes shimmer {
  0% { left: -75%; }
  100% { left: 125%; }
}

h1 {
  font-size: 20px;
  color: #002366;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
}

.tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.tag {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  color: #444;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tag.selected {
  background-color: #fff7f0;
  border: 1px solid #d47b00;
  color: #d47b00;
  font-weight: bold;
}

.tag.selected::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background-color: #d47b00;
  border-radius: 2px;
}

.form-group {
  margin-bottom: 18px;
  text-align: right;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

input {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  direction: rtl;
}

button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #002366;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 12px;
  font-family: 'Vazirmatn', sans-serif;
}

button:hover {
  background-color: #001a4d;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .form-wrapper {
    padding: 20px 16px;
    box-shadow: none;
    border-radius: 12px;
    margin-top: 10px;
  }

  .logo-container {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .info-box {
    padding: 10px;
    margin: 12px 0;
  }

  .info-row {
    font-size: 13px;
    padding: 4px 0;
  }

  p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 8px;
  }

  .red {
    font-size: 13px;
    margin-top: 10px;
    text-align: justify;
  }

  .btn-download {
    margin-top: 12px;
    padding: 10px;
    font-size: 14px;
  }
}


.header h1,
.header .subtitle {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .btn-download {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    margin: 0 auto;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  body {
    padding-bottom: 80px; /* جا برای دکمه شناور پایین */
  }
}
