* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'cairo','elmessiri', 'Poppins', sans-serif;
}



.contact-container {
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 4fr 6fr;
    overflow: hidden;
	margin: 0 auto;
	
}

/* ستايل قسم معلومات الاتصال */
.contact-info {
    background: linear-gradient(135deg, #0039e0, #0040fe);
    color: #ffffff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.info-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.info-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-header p {
    font-size: 14px;
    color: #e0e7ff;
    line-height: 1.6;
}

.info-links {
    margin: 40px 0;
	font-family:cairo;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(-15px); /* التحريك لليسار في الـ RTL */
}

.info-item i {
    font-size: 20px;
    margin-left: 15px; /* مسافة على اليسار بدل اليمين للأيقونة */
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-item:hover i {
    background: #ffffff;
    color: #0040fe;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-item span {
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #ffffff;
    color: #0040fe;
    transform: translateY(-15px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ستايل النموذج والفورم */
.contact-form-wrapper {
    padding: 40px;
    position: relative;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 30px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.custom-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-field.full-width {
    grid-column: span 2;
}

.custom-field i {
    position: absolute;
    right: 15px; /* تعديل مكان أيقونة الحقل لتصبح على اليمين */
    top: 46px;
    color: #0040fe;
    transition: color 0.3s ease;
    pointer-events: none;
}

.custom-field label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

.custom-field input, 
.custom-field select, 
.custom-field textarea {
    width: 100%;
    padding: 12px 42px 12px 15px; /* زيادة الحشو الداخلي من اليمين للأيقونة */
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

.custom-field select {
    appearance: none;
    cursor: pointer;
}

/* السهم المخصص للقائمة المنسدلة */
.custom-field.dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 15px; /* السهم يصبح على اليسار */
    top: 46px;
    color: #0040fe;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.custom-field.dropdown:focus-within::after {
    transform: rotate(180deg);
    color: #4f46e5;
}

.custom-field input:focus, 
.custom-field select:focus, 
.custom-field textarea:focus {
    border-color: #0f60b6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.custom-field input:focus ~ i, 
.custom-field select:focus ~ i, 
.custom-field textarea:focus ~ i {
    color: #4f46e5;
}

.custom-field textarea {
    resize: none;
    height: 120px;
}

/* الزر التفاعلي */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0039e0, #0040fe);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #072a92, #0840e8);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.submit-btn .btn-icon {
    transform: scaleX(-1); /* قلب اتجاه أيقونة الطائرة الورقية لتناسب الـ RTL */
}

/* خلفية الأيقونات الديناميكية */
.dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dynamic-bg .shape {
    position: absolute;
    color: rgba(255, 255, 255, 0.25);
    font-size: 35px;
    animation: floatAround 20s infinite linear;
}

.dynamic-bg .shape:nth-child(1) { top: 35%; right: 15%; animation-duration: 18s; font-size: 140px; }
.dynamic-bg .shape:nth-child(2) { top: 45%; right: 75%; animation-duration: 25s; font-size: 90px; }
.dynamic-bg .shape:nth-child(3) { top: 75%; right: 20%; animation-duration: 22s; font-size: 135px; }
.dynamic-bg .shape:nth-child(4) { top: 25%; right: 80%; animation-duration: 16s; font-size: 45px; }
.dynamic-bg .shape:nth-child(5) { top: 15%; right: 15%; animation-duration: 23s; font-size: 145px; }

.circle-shape {
    position: absolute;
    background: linear-gradient(rgba(40,56,128,0.20), rgba(40,56,128,0));
    border-radius: 50%;
    animation: floatAround 30s infinite alternate ease-in-out;
}
.c1 { width: 120px; height: 120px; top: -20px; left: -20px; animation-duration: 28s; }
.c2 { width: 80px; height: 80px; bottom: 30%; right: -30px; animation-duration: 22s; }
.c3 { width: 50px; height: 50px; bottom: 10%; left: 20%; animation-duration: 15s; }

@keyframes floatAround {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-30px) translateX(-15px) rotate(120deg) scale(1.1); }
    66% { transform: translateY(15px) translateX(20px) rotate(240deg) scale(0.9); }
    100% { transform: translateY(0) translateX(0) rotate(360deg) scale(1); }
}

.submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 10;
}

.success-card.active {
    opacity: 1;
    visibility: visible;
}

.success-card i {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
    animation: scaleUp 0.4s ease-out forwards;
}

@keyframes scaleUp {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .custom-field.full-width { grid-column: span 1; }
    .contact-info { gap: 40px; }
}
