body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.brief-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    background: linear-gradient(135deg, #800000, #a00000);
    color: #fff;
    padding: 20px;
    margin: -30px -30px 25px -30px;
    border-radius: 15px 15px 0 0;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

label {
    display: block;
    margin: 15px 0 5px 0;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* Radio button specific styling */
input[type="radio"] {
    width: auto;
        margin: 1px 8px 1px 9px;
    transform: scale(1.2);
}

/* Radio button labels - keep inline */
label:has(input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    margin: 0 20px 10px 0;
    font-weight: normal;
    cursor: pointer;
    width: auto;
}

/* Date input label - keep inline */
label:has(input[type="date"]) {
    display: inline-flex;
    align-items: center;
    margin: 0 20px 10px 0;
    font-weight: bold;
    width: auto;
}

/* Date input field */
input[type="date"] {
    width: auto;
    margin: 0 0 0 10px;
    background: #f8f9fa;
    cursor: not-allowed;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 5px rgba(128, 0, 0, 0.3);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Radio button group styling */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
 margin: 1px 8px 1px 9px;
    transform: scale(1.2);
}

.upload-section {
    margin-bottom: 20px;
}

.upload-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.upload-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px dashed #ddd;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #e9ecef;
    border-color: #800000;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

button {
    background: linear-gradient(135deg, #800000, #a00000);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
}

button:hover {
    background: linear-gradient(135deg, #a00000, #c00000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

button[type="button"] {
    background: linear-gradient(135deg, #a00000, #c00000);
}

button[type="button"]:hover {
    background: linear-gradient(135deg, #a00000b4, #c00000c7);
}

/* Media queries for mobile responsiveness */
@media (max-width: 600px) {
    .brief-form {
        margin: 10px;
        padding: 20px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    label:has(input[type="radio"]) {
        margin: 0 0 5px 0;
    }
    
    label:has(input[type="date"]) {
        flex-direction: column;
        align-items: flex-start;
        margin: 0 0 10px 0;
    }
    
    input[type="date"] {
        margin: 5px 0 0 0;
        width: 100%;
    }
    
    .upload-buttons {
        flex-direction: column;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .brief-form {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .form-buttons {
        display: none;
    }
}
