@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.form-wrapper:hover {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header i {
    font-size: 50px;
    color: #764ba2;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-header p {
    color: #718096;
    font-size: 16px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group label i {
    margin-left: 8px;
    color: #764ba2;
}

.required {
    color: #e53e3e;
    font-weight: 700;
    margin-right: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
    background: white;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    font-weight: 400;
}

/* File Upload Area */
.file-drop-area {
    position: relative;
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f7fafc;
    cursor: pointer;
}

.file-drop-area:hover {
    border-color: #764ba2;
    background: #f0e6ff;
}

.file-drop-area.dragover {
    border-color: #764ba2;
    background: #e9d9ff;
    transform: scale(1.02);
}

.file-drop-area i {
    font-size: 48px;
    color: #764ba2;
    margin-bottom: 12px;
    display: block;
}

.file-drop-area p {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 5px;
}

.file-drop-area .file-limit {
    color: #a0aec0;
    font-size: 13px;
}

.file-drop-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File List */
.file-list {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-item {
    background: #f0e6ff;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2d3748;
    border: 1px solid #d6b3ff;
    animation: slideIn 0.3s ease;
}

.file-item i {
    color: #764ba2;
    font-size: 20px;
}

.file-item .remove-file {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 0 5px;
    font-size: 16px;
    transition: transform 0.2s;
}

.file-item .remove-file:hover {
    transform: scale(1.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress-container {
    margin-top: 20px;
    background: #edf2f7;
    border-radius: 50px;
    height: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 50px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Status Message */
.status-message {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: none;
    animation: fadeIn 0.5s ease;
}

.status-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #48bb78;
    display: block;
}

.status-message.error {
    background: #fed7d7;
    color: #9b2c2c;
    border: 2px solid #fc8181;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit Button */
button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.4);
}

button[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

button[type="submit"] i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 25px;
    }
    
    .form-header h1 {
        font-size: 24px;
    }
    
    .file-drop-area {
        padding: 25px 15px;
    }
    
    .file-drop-area i {
        font-size: 36px;
    }
    
    .file-item {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .form-wrapper {
        padding: 20px;
        border-radius: 20px;
    }
    
    .form-header h1 {
        font-size: 20px;
    }
}