:root {
    --primary-color: #6B46C1;
    --primary-dark: #553399;
    --primary-light: #8B5CF6;
    --success-color: #10B981;
    --error-color: #EF4444;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --text-color: #111827;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    background-color: #F9FAFB;
}

.projyar-registration-wrapper {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    gap: 0;
}

.projyar-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    right: 0;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.sidebar-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 24px;
    font-weight: 700;
}

.sidebar-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.step-item.active {
    background: white;
    color: var(--primary-color);
    border-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-item.active .step-number {
    background: var(--success-color);
    color: white;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    line-height: 1.3;
}

.projyar-content {
    margin-right: 280px;
    flex: 1;
    padding: 40px;
    max-width: 1000px;
    width: 100%;
}

.stage-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.stage-content.active {
    display: block;
}

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

.stage-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--gray-200);
}

.stage-header h2 {
    color: var(--text-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stage-description {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.stage-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

.time-icon {
    font-size: 16px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.projyar-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
}

.required {
    color: var(--error-color);
    margin-left: 3px;
}

.field-description {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 400;
    margin-top: -5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="url"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group input[type="text"]:disabled,
.form-group input[type="email"]:disabled,
.form-group input[type="url"]:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group select {
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B46C1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 14px;
}

.form-group input[type="text"].error,
.form-group input[type="email"].error,
.form-group input[type="url"].error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color) !important;
    background-color: rgba(239, 68, 68, 0.05);
}

.info-text {
    font-size: 12px;
    color: var(--gray-600);
    font-style: italic;
    margin-top: 5px;
}

.btn-next {
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.btn-next:active {
    transform: translateY(0);
}

.btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    font-size: 12px;
    color: var(--error-color);
    display: none;
    margin-top: -3px;
}

.error-message.show {
    display: block;
}

.success-message {
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-right: 3px solid var(--success-color);
    border-radius: 6px;
    color: var(--success-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.error-message-box {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-right: 3px solid var(--error-color);
    border-radius: 6px;
    color: var(--error-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

@media (max-width: 768px) {
    .projyar-registration-wrapper {
        flex-direction: column;
    }
    
    .projyar-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        border-bottom: 2px solid var(--gray-200);
    }
    
    .projyar-content {
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
    }
    
    .sidebar-steps {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
    }
    
    .step-item {
        flex-shrink: 0;
        width: 80px;
        flex-direction: column;
        padding: 8px;
    }
    
    .step-title {
        font-size: 11px;
    }
    
    .stage-header h2 {
        font-size: 22px;
    }
    
    .projyar-form {
        gap: 18px;
    }
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    flex: 1;
}

.checkbox-label {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.checkbox-item input[type="checkbox"]:checked + label .checkbox-label {
    color: var(--primary-color);
    font-weight: 600;
}

.sub-checkboxes {
    background: rgba(107, 70, 193, 0.03);
    padding: 12px;
    border-radius: 6px;
    border-right: 3px solid var(--primary-light);
}

.sub-checkboxes .checkbox-item {
    margin-bottom: 8px;
}

.sub-checkboxes .checkbox-item:last-child {
    margin-bottom: 0;
}
    .projyar-sidebar {
        padding: 15px;
    }
    
    .projyar-content {
        padding: 15px;
    }
    
    .sidebar-title {
        font-size: 22px;
    }
    
    .step-item {
        width: 70px;
    }
    
    .step-title {
        font-size: 10px;
    }
    
    .stage-header h2 {
        font-size: 20px;
    }
    
    .stage-description {
        font-size: 13px;
    }
}