* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #8400ff 100%);
    direction: rtl;
    padding: 30px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}


.main-page {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 8px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-page:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}


.container {
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInScale 0.8s ease forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e0e0ff;
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 15px;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: #d3d3f5;
    font-style: italic;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    background-color: rgba(0, 0, 0, 0.788);
    box-shadow: 0 0 12px #718cff;
    outline: none;
    transition: box-shadow 0.3s ease;
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px;
}

select {
    background-color: rgba(255, 255, 255, 0.2); /* ← اینو اضافه کن */
}



button {
    width: 100%;
    background: linear-gradient(45deg, #8800ff, #5d00ff);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(107, 115, 255, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(54, 58, 143, 0.9);
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(107, 115, 255, 0.7);
}

@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .container {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }

  h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  label {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  input[type="text"],
  select,
  textarea {
    font-size: 0.9rem;
    padding: 10px 12px;
    margin-bottom: 15px;
  }

  button {
    font-size: 1rem;
    padding: 12px;
    border-radius: 10px;
  }

 @media (max-width: 768px) {
  .main-page {
    position: fixed;
    top: 100px;         /* رفت بالا */
    right: 110px;       /* گوشه راست بالا */
    left: auto;
    bottom: auto;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 10px;
    display: flex;
    justify-content: center;   /* وسط‌چین کردن متن */
    text-align: center;
    min-width: 160px;
    max-width: 90%;
  }
}


}
