  @font-face {
        font-family: 'Vazir';
        src: url('/assets/fonts/Vazir.woff2') format('woff2');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }
.navbar
{
	padding-left:7rem !important;
	padding-right:7rem !important;
}
html, body, * {
    font-family: 'Vazir', Tahoma, sans-serif !important;
}
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Vazir', 'Tahoma', sans-serif;
           background: linear-gradient(135deg, #1E355F, #3f6a96);

        min-height: 100vh;
        display: flex;
        position: relative;
        overflow: hidden;
		 flex-direction: column;
    }
	main {
  flex: 1; /* پر کردن ارتفاع باقی‌مونده */
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-elements::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 225, 12, 0.15), transparent 70%);
    z-index: 0;
}

.bg-elements::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 70%, rgba(168, 225, 12, 0.1), transparent 70%);
    animation: pulse 10s ease-in-out infinite; /* تنفس ملایم‌تر */
    z-index: 0;
}

.bg-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(168, 225, 12, 0.7);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

/* لوکیشن و سرعت‌های مختلف برای هر ذره */
.particle:nth-child(1) { top: 15%; left: 25%; animation-duration: 16s; animation-delay: 0s; }
.particle:nth-child(2) { top: 35%; left: 75%; animation-duration: 20s; animation-delay: 4s; }
.particle:nth-child(3) { top: 65%; left: 15%; animation-duration: 18s; animation-delay: 7s; }
.particle:nth-child(4) { top: 25%; left: 55%; animation-duration: 22s; animation-delay: 10s; }
.particle:nth-child(5) { top: 85%; left: 65%; animation-duration: 24s; animation-delay: 13s; }

/* انیمیشن‌ها */
@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

@keyframes particleFloat {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-110vh) translateX(40px) scale(0.6); opacity: 0; }
}


    .form {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        padding: 45px 40px;
        border-radius: 28px;
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        position: relative;
        z-index: 10;
        animation: containerEntry 1s cubic-bezier(0.2, 0.8, 0.2, 1);
        border: 1px solid rgba(168, 225, 12, 0.15);
	    max-width: 500px;   
        width: 100%;
        margin: 20px auto;
		
    }

    @keyframes containerEntry {
        0% {
            opacity: 0;
            transform: translateY(40px) scale(0.95);
            filter: blur(10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }
    }

    .headers {
        text-align: center;
        margin-bottom: 40px;
        position: relative;
    }

    .headers::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 6px;
        background: linear-gradient(90deg, #A8E10C 0%, #94d00a 100%);
        border-radius: 3px;
        box-shadow: 0 0 20px rgba(168, 225, 12, 0.5);
        animation: headerGlow 3s ease-in-out infinite;
    }

    @keyframes headerGlow {
        0%, 100% { 
            box-shadow: 0 0 20px rgba(168, 225, 12, 0.5);
            transform: translateX(-50%) scaleX(1);
        }
        50% { 
            box-shadow: 0 0 30px rgba(168, 225, 12, 0.8);
            transform: translateX(-50%) scaleX(1.1);
        }
    }

    h2 {
        color: #1E355F;
        font-size: 26px;
        font-weight: 700;
        margin-top: 20px;
        letter-spacing: -0.5px;
    }

    .input-container {
        position: relative;
        margin-bottom: 28px;
        opacity: 0;
        transform: translateY(30px);
        animation: inputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .input-container:nth-child(1) { animation-delay: 0.1s; }
    .input-container:nth-child(2) { animation-delay: 0.2s; }
    .input-container:nth-child(3) { animation-delay: 0.3s; }
    .input-container:nth-child(4) { animation-delay: 0.4s; }
    .input-container:nth-child(5) { animation-delay: 0.5s; }

    @keyframes inputSlide {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .input-label {
        position: absolute;
        top: 50%;
        right: 24px;
        transform: translateY(-50%);
        color: #95a3b3;
        font-size: 15px;
        font-weight: 400;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2;
        background: transparent;
        padding: 0 6px;
    }

    .input-field {
        width: 100%;
        padding: 18px 24px;
        border: 2px solid #e8ecf0;
        border-radius: 18px;
        font-size: 15px;
        background: rgba(255, 255, 255, 0.9);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
        color: #1E355F;
        font-weight: 500;
        position: relative;
        z-index: 1;
    }

    .input-field:focus {
        border-color: #A8E10C;
        background: #ffffff;
        box-shadow: 
            0 0 0 6px rgba(168, 225, 12, 0.12),
            0 12px 30px rgba(168, 225, 12, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        transform: translateY(-3px);
    }

    .input-field:focus + .input-label,
    .input-field:not(:placeholder-shown) + .input-label {
        top: -8px;
        font-size: 12px;
        color: #A8E10C;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 2px 8px;
        transform: translateY(0);
    }

    .input-field:focus + .input-label {
        color: #A8E10C;
        text-shadow: 0 0 8px rgba(168, 225, 12, 0.3);
    }

    .input-field:valid:not(:placeholder-shown) {
        border-color: #A8E10C;
        background: linear-gradient(145deg, #ffffff 0%, rgba(168, 225, 12, 0.04) 100%);
        box-shadow: 0 2px 10px rgba(168, 225, 12, 0.1);
    }

    .input-container:hover .input-field {
        border-color: rgba(168, 225, 12, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .submit-container {
        margin-top: 30px;
        opacity: 0;
        transform: translateY(30px);
        animation: inputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    }

    .submit-btn {
        width: 100%;
        padding: 20px;
        background: linear-gradient(135deg, #A8E10C 0%, #94d00a 50%, #85c109 100%);
        border: none;
        border-radius: 18px;
        color: #1E355F;
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 
            0 12px 30px rgba(168, 225, 12, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        letter-spacing: 0.5px;
    }

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .submit-btn:hover {
        background: linear-gradient(135deg, #94d00a 0%, #A8E10C 50%, #b8f01d 100%);
        transform: translateY(-4px);
        box-shadow: 
            0 20px 40px rgba(168, 225, 12, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .submit-btn:hover::before {
        left: 100%;
    }

    .submit-btn:active {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(168, 225, 12, 0.4);
    }

    .submit-btn.loading {
        pointer-events: none;
        background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
        color: #6b7280;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .submit-btn.loading::after {
        content: '';
        position: absolute;
        width: 22px;
        height: 22px;
        border: 3px solid #6b7280;
        border-top: 3px solid transparent;
        border-radius: 50%;
        animation: buttonSpin 1s linear infinite;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    @keyframes buttonSpin {
        0% { transform: translate(-50%, -50%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg); }
    }

    .success-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background: linear-gradient(135deg, #A8E10C 0%, #94d00a 100%);
        color: #1E355F;
        padding: 25px 35px;
        border-radius: 20px;
        font-weight: 700;
        font-size: 16px;
        box-shadow: 
            0 25px 50px rgba(168, 225, 12, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        z-index: 1000;
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        text-align: center;
        letter-spacing: 0.3px;
    }

    .success-popup.show {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .success-popup::before {
        content: '✨';
        display: block;
        font-size: 24px;
        margin-bottom: 8px;
        animation: sparkle 2s ease-in-out infinite;
    }

    @keyframes sparkle {
        0%, 100% { transform: scale(1) rotate(0deg); }
        50% { transform: scale(1.2) rotate(180deg); }
    }

    /* Mobile optimization */
    @media (max-width: 480px) {
        .container {
            margin: 20px;
            padding: 35px 30px;
            border-radius: 24px;
        }
        
        h2 {
            font-size: 22px;
        }
        
        .input-field {
            padding: 16px 20px;
            font-size: 14px;
            border-radius: 16px;
        }
        
        .submit-btn {
            padding: 18px;
            font-size: 16px;
            border-radius: 16px;
        }
    }

    .bg-elements {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
.submit-container {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #f6f9ff;
  padding: 60px 0; 
}

.btn-nirad-unique {
  position: relative;
  display: flex;
  background: linear-gradient(135deg, #007BFF, #0056D2);
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 91, 255, 0.3);
    justify-content: space-around;
	margin:-30px 35px;

}

.btn-nirad-unique::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
  transition: all 0.6s ease;
}

.btn-nirad-unique:hover::before {
  left: 100%;
}

.btn-nirad-unique:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 91, 255, 0.5);
}

.btn-nirad-unique:active {
  transform: scale(0.96);
}
