/* ============================================
   نظام خيارات التصميم - Design Options System
   تصميم بسيط وأنيق وسهل الاستخدام
   ============================================ */

.design-options-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #F3F4F6;
    margin-bottom: 2rem;
}

.design-options-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.design-options-title i {
    color: var(--primary);
}

/* Option Group */
.option-group {
    margin-bottom: 1.5rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.option-label .required {
    color: #EF4444;
    margin-right: 0.25rem;
}

.option-label .optional {
    color: #9CA3AF;
    font-weight: 400;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Radio Buttons - Modern Style */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #6B7280;
    font-size: 0.9375rem;
    user-select: none;
}

.radio-option label:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.radio-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    border-color: #7C3AED;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.radio-option label .radio-icon {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + label .radio-icon::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: radioCheck 0.3s ease;
}

@keyframes radioCheck {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Checkboxes - Modern Style */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

.checkbox-option {
    position: relative;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #374151;
    font-size: 0.9375rem;
    user-select: none;
}

.checkbox-option label:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.checkbox-option input[type="checkbox"]:checked + label {
    background: rgba(124, 58, 237, 0.05);
    border-color: #7C3AED;
    color: #7C3AED;
}

.checkbox-option label .checkbox-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-option input[type="checkbox"]:checked + label .checkbox-icon {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    border-color: #7C3AED;
}

.checkbox-option input[type="checkbox"]:checked + label .checkbox-icon::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 0.75rem;
    animation: checkboxCheck 0.3s ease;
}

@keyframes checkboxCheck {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Input Field - Head Size */
.head-size-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #374151;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    background: #F9FAFB;
}

.head-size-input:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: white;
}

.head-size-input::placeholder {
    color: #9CA3AF;
}

/* Textarea - Notes */
.notes-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #374151;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.notes-textarea:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.notes-textarea::placeholder {
    color: #9CA3AF;
}

/* Hidden Sections */
.option-section {
    display: none;
    animation: slideDown 0.3s ease;
}

.option-section.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Divider */
.option-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, #E5E7EB, transparent);
    margin: 1.5rem 0;
}

/* Helper Text */
.helper-text {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.helper-text i {
    color: #9CA3AF;
}

/* Image Upload */
.image-upload-container {
    position: relative;
}

.image-upload-input {
    display: none;
}

.image-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    background: #F9FAFB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-label:hover {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.05);
}

.image-upload-icon {
    font-size: 3rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.image-upload-label:hover .image-upload-icon {
    color: #7C3AED;
    transform: translateY(-5px);
}

.image-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.image-upload-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
}

.image-upload-subtitle {
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.image-preview {
    position: relative;
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #E5E7EB;
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.image-remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.image-remove-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .design-options-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-option label {
        width: 100%;
        justify-content: flex-start;
    }
}
