
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 55px;
    background-position: 
    /* موقعیت عکس ها : */
        10% 10%,    
        15% 40%,   
        89% 60%,  
        110% 60%,    
        76% 40%,
        50% 55%,
        90% 35%,   
        8% 77%;   
    background-image: 
        url('../images/sticker/b1.svg'),
        url('../images/sticker/b2.svg'),
        url('../images/sticker/b5.svg'),
        url('../images/sticker/b3.svg'),
        url('../images/sticker/b3.svg'),
        url('../images/sticker/b4.svg'),
        url('../images/sticker/b6.svg'),
        url('../images/sticker/b7.svg');
    opacity: 0.2;
    /* انیمیشن حذف شد */
}
 
        
        
        @font-face {
            font-family: 'vazir';
            src: url('../fonts/Vazir.woff') format('woff2');
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        * {
            font-family: 'vazir', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: white;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Registration Form Section */
        .registration-form-section {
            padding: 80px 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        .form-wrapper {
            background-color: #f8f9fa;
            border-radius: 11px;
            padding: 60px 50px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            max-width: 500px;
            width: 100%;
            border: #243d74 1px solid;
        }
        .form-wrapper p{
            text-align: center;
            padding: 10px;
            color: #5177ff;
        }

        .form-title {
            color: #243d74;
            font-size: 28px;
            margin-bottom: 40px;
            font-weight: 700;
            text-align: center;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        form #id_name , #id_phone{
            padding: 10px;
            border-radius: 15px;
            margin: 5px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        label {
            color: #243d74;
            font-weight: 600;
            margin-bottom: 10px;
            font-size: 15px;
        }

        input {
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 15px;
            font-family: 'vazir', Tahoma, Geneva, Verdana, sans-serif;
            transition: all 0.3s ease;
            background-color: white;
            color: #333;
        }

        input:focus {
            outline: none;
            border-color: #5177ff;
            box-shadow: 0 0 0 3px rgba(81, 119, 255, 0.1);
        }

         input::placeholder {
            color: #999;
        }

        input[type="text"]:valid {
            border-color: #5177ff;
        }

        input[type="tel"]:valid {
            border-color: #5177ff;
        }

        .form-errors {
            color: #dc3545;
            font-size: 13px;
            margin-top: 8px;
        }

        .form-errors ul {
            list-style: none;
            padding-left: 0;
        }

        .form-errors ul li {
            margin-bottom: 5px;
        }

        .form-errors ul li:before {
            content: "• ";
            margin-right: 5px;
        }

        .submit-btn {
            background-color: #5177ff;
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 15px;
        }

        .submit-btn:hover {
            background-color: #3d5fd9;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(81, 119, 255, 0.3);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        /* Responsive Design */
        @media (max-width: 640px) {
            .registration-form-section {
                padding: 40px 0;
                min-height: auto;
            }

            .form-wrapper {
                padding: 40px 25px;
            }

            .form-title {
                font-size: 24px;
                margin-bottom: 30px;
            }

            .form-group input {
                padding: 12px 14px;
                font-size: 14px;
            }

            .submit-btn {
                padding: 14px 24px;
                font-size: 15px;
            }
        }


@media (max-width: 768px) {
    .form-wrapper {
        width: 350px;
        }
    body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 0px;
    }
}
.errorlist {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: fadeInOut 6s ease-in-out forwards;
}

.errorlist li {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}