/* أنماط حاسبة الأسعار */
.majex-price-calculator {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}
.majex-career-section {
    margin-top: 120px;
}

.majex-price-calculator .form-group {
    margin-bottom: 20px;
}

.majex-price-calculator label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.majex-price-calculator select,
.majex-price-calculator input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.majex-price-calculator button {
    background: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
}

.majex-price-calculator button:hover {
    background: #0056b3;
}

#calculationResult {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.price {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}


/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .majex-price-calculator,
    .majex-form {
        padding: 20px;
    }
    
    .majex-price-calculator button,
    .majex-form button {
        padding: 12px 20px;
        font-size: 16px;
    }
}





/* أنماط عامة للنماذج */
.majex-forms-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0 auto;
    max-width: 1200px;
	background-color: #f7f7f700;
}

section#Careers {
    margin-top: 120px;
}

.majex-container {
    max-width: 800px;
    margin: 0 auto;
}

/* رأس القسم */
.majex-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.majex-section-title {
    font-size: 2.5rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 15px !important;
    position: relative !important;
    display: inline-block !important;
    font-weight: 700 !important;
}
.majex-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}
.majex-section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* النموذج */

/* لجميع الحقول النصية select/inputs */
.majex-form-input,
input[type="text"].majex-form-input,
input[type="email"].majex-form-input,
input[type="tel"].majex-form-input,
input[type="number"].majex-form-input,
textarea.majex-form-input,
select.majex-form-input {
    /* اتبع اتجاه الصفحة */
    direction: inherit;
    text-align: start;
}

/* placeholder */
.majex-form-input::placeholder,
input[type="text"].majex-form-input::placeholder,
input[type="email"].majex-form-input::placeholder,
input[type="tel"].majex-form-input::placeholder,
input[type="number"].majex-form-input::placeholder,
textarea.majex-form-input::placeholder,
select.majex-form-input::placeholder {
    color: #a0a0a0;
    opacity: 1;
    direction: inherit !important;
    text-align: start !important;
}

/* إذا الصفحة عربية */
html[dir="rtl"] .majex-form-input,
html[dir="rtl"] .majex-form-input::placeholder {
    direction: rtl !important;
    text-align: right !important;
}

/* إذا الصفحة انجليزية */
html[dir="ltr"] .majex-form-input,
html[dir="ltr"] .majex-form-input::placeholder {
    direction: ltr !important;
    text-align: left !important;
}

.majex-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.majex-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.majex-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.majex-form-group {
    flex: 1;
    margin-bottom: 20px;
    position: relative;
}

.majex-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* القاعدة العامة */
.majex-form-input,
input[type="text"].majex-form-input,
input[type="email"].majex-form-input,
input[type="tel"].majex-form-input,
input[type="number"].majex-form-input,
select.majex-form-input {
    width: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
    box-sizing: border-box;
}

/* عند التركيز */
.majex-form-input:focus,
input[type="text"].majex-form-input:focus,
input[type="email"].majex-form-input:focus,
input[type="tel"].majex-form-input:focus,
input[type="number"].majex-form-input:focus,
select.majex-form-input:focus {
    outline: none;
    border-color: var(--border-secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* عند إضافة كلاس focused */
.majex-form-input.majex-input-focused,
input[type="text"].majex-form-input.majex-input-focused,
input[type="email"].majex-form-input.majex-input-focused,
input[type="tel"].majex-form-input.majex-input-focused,
input[type="number"].majex-form-input.majex-input-focused,
select.majex-form-input.majex-input-focused {
    border-color: var(--border-secondary);
    transform: translateY(-2px);
}

/* الـ Placeholder */
.majex-form-input::placeholder,
input[type="text"].majex-form-input::placeholder,
input[type="email"].majex-form-input::placeholder,
input[type="tel"].majex-form-input::placeholder,
input[type="number"].majex-form-input::placeholder {
    color: #a0a0a0;
}

/* الـ Select */
select.majex-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* أزرار */
.majex-form-actions {
    text-align: center;
    margin-top: 30px;
}

.majex-btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    min-width: 140px;
}

.majex-btn-primary {
    background: var(--gradient-secondary);
    color: white;
}

.majex-btn-primary:hover {
    transform: translateY(-2px);
	background-color: var(--border-primary) !important;
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.4);
}

.majex-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.majex-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.majex-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* رفع الملف */
.majex-file-upload-wrapper {
    position: relative;
}

.majex-custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 5px;
}

.majex-custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin: 0;
    opacity: 0;
}

.majex-custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #f9f9f9;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.majex-custom-file-label:hover {
    border-color: var(--border-secondary);
}

.majex-custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 100%;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    color: #495057;
    content: "Browse";
    background-color: #e9ecef;
    border-left: inherit;
    border-radius: 0 8px 8px 0;
}

/* الرسائل */
.majex-form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
}

.majex-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.majex-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* مؤشر التحميل */
.majex-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: majex-spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 768px) {
    .majex-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .majex-section-title {
        font-size: 2rem;
    }
    
    .majex-form {
        padding: 25px;
    }
    
    .majex-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* دعم RTL للغة العربية */
.majex-forms-container[dir="rtl"] {
    text-align: right;
}

.majex-forms-container[dir="rtl"] .majex-custom-file-label::after {
    right: auto;
    left: 0;
    border-left: none;
    border-right: inherit;
    border-radius: 8px 0 0 8px;
}

.majex-forms-container[dir="rtl"] select.majex-form-input {
    background-position: left 15px center;
    padding-right: 15px;
    padding-left: 45px;
}

.majex-forms-container[dir="rtl"] .majex-loading-spinner {
    margin-right: 0;
    margin-left: 8px;
}


#custom-tracking-wrapper {
    max-width: 600px !important;
    margin: -1vw auto !important;
    padding: 0 rem;
    background-color: #f9f9f900 !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    direction: inherit !important;
    text-align: start !important;
	padding-bottom: 100px;
}

#custom-tracking-wrapper .input-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: stretch !important;
}

#custom-tracking-wrapper input[type="text"] {
    flex: 1 !important;
    padding: 0.75rem 1rem !important;
    font-size: 1.6rem !important;
    border: 1px solid #ccc !important;
    border-radius: 2px !important;
    background-color: #fff !important;
    color: #000 !important;
	font-family: sans-serif !important;
}

#custom-tracking-wrapper button {
    padding: 0.75rem 1.5rem !important;
    background-color: var(--secondary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 2px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

#custom-tracking-wrapper button:hover {
    background-color: var(--border-primary) !important;
}

#custom-tracking-wrapper .error-message {
    margin-top: 0.5rem !important;
    color: #d40511 !important;
    font-size: 0.875rem !important;
}

/* الحقل داخل custom tracking */
#custom-tracking-wrapper input[type="text"],
#custom-tracking-wrapper input[type="text"]::placeholder {
    direction: inherit !important;
    text-align: start !important;
}

/* إذا الصفحة عربية */
html[dir="rtl"] #custom-tracking-wrapper input[type="text"],
html[dir="rtl"] #custom-tracking-wrapper input[type="text"]::placeholder {
    direction: rtl !important;
    text-align: right !important;
}

/* إذا الصفحة انجليزية */
html[dir="ltr"] #custom-tracking-wrapper input[type="text"],
html[dir="ltr"] #custom-tracking-wrapper input[type="text"]::placeholder {
    direction: ltr !important;
    text-align: left !important;
}


@keyframes slideIn {
    from { transform: translateY(-100px); opacity: 0 !important; }
    to { transform: translateY(0); opacity: 1 !important; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1 !important; }
    to { transform: translateY(-100px); opacity: 0 !important; }
}

@keyframes pulse {
    0% { transform: scale(1) !important; }
    50% { transform: scale(1.05) !important; }
    100% { transform: scale(1) !important; }
}