        @font-face {
            font-family: 'IRANSansWeb';
            src: url('../fonts/IRANSansXFaNumWeb.ttf') format('truetype');
            -moz-font-feature-settings: "ss04";
            -webkit-font-feature-settings: "ss04";
            font-feature-settings: "ss04";
            font-weight: normal;
            font-style: normal;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .logo {
            width: 90px;
            height: 90px;
            margin: 0 auto 10px;

        }
        
            @keyframes breathe {
        0%, 100% {
            opacity: 0.4;
            transform: scale(0.97);
            filter: drop-shadow(0 0 2px rgba(30,144,255,0.2));
        }
        50% {
            opacity: 1;
            transform: scale(1.03);
            filter: drop-shadow(0 0 15px rgba(30,144,255,0.8));
        }
    }

        body {
            background: #f0f2f5;
            font-family: 'IRANSansWeb', 'Segoe UI', 'IRANSans', sans-serif;
            padding: 30px 20px;
              user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
            direction: rtl;
        }

        .form-container {
            max-width: 1300px;
            margin: 0 auto;
            background: white;
            border-radius: 24px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .two-columns {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }

        .right-col, .left-col {
            flex: 1;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            font-weight: bold;
            margin-bottom: 8px;
            color: #333;
            font-size: 14px;
        }

        input, .skills-selector, .dropdown-header {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            background: white;
        }
        
        select {
            width: 100%;
            padding: 12px;
            padding-left: 35px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            background: white;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
            background-repeat: no-repeat;
            background-position: left 12px center;
            background-size: 16px;
        }
        
        .skills-selector, .dropdown-header {
            width: 100%;
            padding: 12px;
            padding-left: 35px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            background: white;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
            background-repeat: no-repeat;
            background-position: left 12px center;
            background-size: 16px;
        }
        
        .skills-selector span:last-child, .dropdown-header span:last-child {
            display: none;
        }

        input:focus, select:focus {
            outline: none;
            border-color: none;
        }

        .date-triple {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .date-triple input {
            flex: 1;
            text-align: center;
            cursor: pointer;
        }

        .calendar-btn {
            font-family: "IRANSansWeb";
            background: #1577da;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            white-space: nowrap;
        }

        .skills-dropdown {
            position: relative;
        }

        .skills-selector {
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .skills-list {
            position: absolute;
            margin-top: 4px;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ccc;
            border-radius: 8px;
            max-height: 200px;
            overflow-y: auto;
            display: none;
            z-index: 100;
        }

        .skills-list div {
            padding: 10px;
            cursor: pointer;
        }

        .skills-list div:hover {
            background: #f0f0f0;
        }

        .skills-list .disabled {
            background: #e9ecef;
            color: #afafaf;
            cursor: not-allowed;
            text-decoration: line-through;
        }

        .selected-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
            min-height: 45px;
        }

        .tag {
            background: #edf0f3;
            padding: 5px 10px;
            border-radius: 10px;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .tag button {
            background: none;
            border: none;
            color: #ff1d34;
            cursor: pointer;
            font-weight: bold;
            font-size: 20px;
            line-height: 1;
        }

        .searchable-dropdown {
            position: relative;
            width: 100%;
        }

        .dropdown-header {
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-sizing: border-box;
        }

        .dropdown-body {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ccc;
            border-radius: 8px;
            margin-top: 4px;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .dropdown-search {
            width: 100%;
            padding: 10px;
            border: none;
            border-bottom: 1px solid #eee;
            outline: none;
            box-sizing: border-box;
                background-position: left 10px center;
    background-repeat: no-repeat;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
        }

        .dropdown-options {
            max-height: 200px;
            overflow-y: auto;
        }

        .dropdown-options div {
            padding: 8px 12px;
            cursor: pointer;
        }

        .dropdown-options div:hover {
            background: #f0f0f0;
        }

        .dropdown-header.disabled-city {
            background-color: #e9ecef;
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
        }

        .info-bar {
            margin-bottom: 25px;
        }
        
        .info-bar-div {
            margin-bottom: 10px;
            font-weight: bold;
        }

        .submit-btn {
            font-family: "IRANSansWeb";
            width: 100%;
            padding: 14px;
            background: #ccc;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: bold;
            cursor: not-allowed;
            margin-top: 20px;
        }

        .submit-btn.active {
            background: #28a745;
            cursor: pointer;
        }

        .file-upload {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
        }

        .file-preview {
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
        }

        .file-preview img {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 4px;
        }

        .file-preview .file-info {
            flex: 1;
            font-size: 13px;
        }

        .file-preview button {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
            font-size: 20px;
            font-weight: bold;
        }

        .error-border {
            border-color: #dc3545 !important;
        }
        
        .error-message {
            color: #dc3545;
            font-size: 14px;
            margin-top: 5px;
            display: block;
            width: 100%;
            clear: both;
        }

        @media (max-width: 768px) {
            .two-columns {
                flex-direction: column;
            }
            .date-triple {
                flex-wrap: wrap;
            }
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            padding: 20px;
            border-radius: 16px;
            width: 90%;
            max-width: 400px;
        }

        .modal-header {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
        }

        .modal-years, .modal-months, .modal-days {
            display: none;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 15px;
            max-height: 300px;
            overflow-y: auto;
        }

        .modal-years div, .modal-months div, .modal-days div {
            padding: 10px;
            text-align: center;
            cursor: pointer;
            border-radius: 8px;
            background: #f0f0f0;
        }

        .modal-years div:hover, .modal-months div:hover, .modal-days div:hover {
            background: #1577da;
            color: white;
        }
                .date-wrapper {
            width: 100%;
        }
        
        .date-triple {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .date-triple input {
            flex: 1;
            text-align: center;
            cursor: pointer;
        }
        
        .date-wrapper .error-message {
            margin-top: 5px;
        }
                /* استایل خوشگل برای آپلود فایل */
        .custom-file-upload {
            position: relative;
            display: inline-block;
            width: 100%;
        }
        
        .custom-file-upload input[type="file"] {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            right: 0;
            top: 0;
        }
        
        .file-upload-label {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 12px;
            background: #f8f9fa;
            border: 2px dashed #ccc;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'IRANSansWeb', sans-serif;
        }
        
        .file-upload-label:hover {
            border-color: #28a745;
            background: #f0f0f0;
        }
        
        .file-upload-label i {
            font-size: 20px;
        }
        
        .file-preview {
            position: relative;
            margin-top: 10px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
        }
        
        .file-preview img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .file-preview img:hover {
            transform: scale(1.05);
        }
        
        .file-preview .file-info {
            flex: 1;
            font-size: 13px;
            color: #333;
        }
        
        .file-preview .remove-file {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
            font-size: 20px;
            font-weight: bold;
            padding: 5px;
        }
        
        /* مودال زوم عکس */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }
        
        .image-modal img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 8px;
        }
        /* مودال موفقیت */
.success-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.success-modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 50px;
    height: 50px;
}

.success-title {
    font-size: 22px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

.success-message {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-btn {
    background: #1577da;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'IRANSansWeb', sans-serif;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background: #0f5cad;
    transform: scale(1.02);
}
/* اسپینر دکمه ثبت */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn.loading {
    background: #1577da !important;
    cursor: wait !important;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
/* Toast اعلان خطا - نسخه بالا */
.toast-error {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #dc3545;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    direction: rtl;
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 90%;
}

.toast-error.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-error .toast-message {
    flex: 1;
    font-size: 14px;
    font-family: 'IRANSansWeb', sans-serif;
}

.toast-error .toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0 5px;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast-error .toast-close:hover {
    opacity: 1;
}

.toast-error .toast-icon {
    font-size: 20px;
}
.required-star {
    color: #dc3545;
    font-size: 16px;
}
/* جلوگیری از زوم خودکار در iOS برای همه فیلدها */
input, 
textarea, 
select,
.select-trigger,
.custom-select .select-trigger,
.floating-group input,
.floating-group textarea,
.search-input {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
}
@media (max-width: 600px) {
    .date-triple {
        flex-wrap: wrap;
    }
    
    .date-triple input {
        width: calc(33.33% - 7px);
        flex: 1;
    }
    
    .calendar-btn {
        width: 100%;
        margin-top: 10px;
    }
}