.tf-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    direction: rtl;
    font-family: 'Tahoma', 'IranSans', sans-serif;
}

.tf-form-wrapper h3 {
    color: #ff3333;
    border-bottom: 2px solid #ff3333;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.tf-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tf-step.active {
    display: block;
}

.tf-field {
    margin-bottom: 20px;
}

.tf-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ff6666;
}

.tf-field input:not([type="checkbox"]),
.tf-field select,
.tf-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #cc0000;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.tf-field input:focus,
.tf-field select:focus,
.tf-field textarea:focus {
    border-color: #ff3333;
    outline: none;
    box-shadow: 0 0 10px rgba(255,51,51,0.3);
}

.tf-field.checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.tf-field.checkbox input {
    width: auto;
}

.tf-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.tf-buttons button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tf-next, .tf-submit {
    background: linear-gradient(135deg, #cc0000, #ff3333);
    color: white;
    flex: 1;
}

.tf-prev {
    background: #333;
    color: white;
    flex: 1;
}

.tf-next:hover, .tf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,51,51,0.4);
}

.tf-prev:hover {
    background: #444;
    transform: translateY(-2px);
}

.tf-file-input {
    background: #1a1a1a;
    border: 1px solid #cc0000;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: white;
}

#tf-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

#tf-message.success {
    background: rgba(0,255,0,0.2);
    border: 1px solid #00cc00;
    color: #00ff00;
}

#tf-message.error {
    background: rgba(255,0,0,0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .tf-form-wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .tf-buttons button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .tf-field input,
    .tf-field select,
    .tf-field textarea {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tf-buttons {
        flex-direction: column;
    }
    
    .tf-buttons button {
        width: 100%;
    }
}