.contact-section{
    padding:80px 0;
    background:#f8fafc;
    direction:rtl;
}

.container{
    width:92%;
    max-width:1300px;
    margin:auto;
}

.contact-header{
    text-align:center;
    margin-bottom:40px;
}

.contact-header h2{
    font-size:40px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:15px;
}

.contact-header p{
    color:#64748b;
    font-size:17px;
}

.contact-form-wrapper{
    background:#fff;
    border-radius:24px;
    padding:45px;
    box-shadow:
    0 15px 50px rgba(0,0,0,.06);
}

.form-grid{
    display:grid;
    grid-template-columns:
    repeat(2,1fr);
    gap:25px;
}

.form-group{
    display:flex;
    flex-direction:column;
}
.phone-wrapper {
      display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}

.phone-wrapper label{
    margin-bottom:10px;
    font-weight:700;
    color:#1e293b;
}

.form-group label{
    margin-bottom:10px;
    font-weight:700;
    color:#1e293b;
}

.form-group input,
.form-group select,
.form-group textarea{
    height:58px;
    border:1px solid #dbe3ea;
    border-radius:14px;
    padding:0 18px;
    outline:none;
    transition:.3s;
    font-size:15px;
}

.form-group textarea{
    height:180px;
    resize:none;
    padding-top:15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#2563eb;
    box-shadow:
    0 0 0 4px
    rgba(37,99,235,.1);
}



.phone-wrapper select{
    width:130px;
}

.phone-wrapper input{
    flex:1;
}

.full-width{
    grid-column:1/-1;
}

.send-btn{
    width:100%;
    height:62px;
    border:none;
    border-radius:16px;
    background: #9256f2;

    color:#fff;
    font-size:18px;
    font-weight:800;
    cursor:pointer;
    transition:.3s;
}

.send-btn:hover{
    transform:translateY(-2px);
}

@media(max-width:768px){
    .phone-wrapper select {
    width: 50px;
}
     .form-grid{
        grid-template-columns:1fr;
    }
  }


   

@media (min-width:1200px){
    
    .form-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.full-width{
    grid-column:1 / -1;
}


}

    .contact-form-wrapper{
        padding:25px;
    }

    .contact-header h2{
        font-size:30px;
    }

}

.phone-wrapper{
    display:flex;
    gap:10px;
    align-items:center;
}

.country-box{
   flex:0 0 130px; /* عرض ثابت لكود الدولة */
    display:flex;
    align-items:center;
    gap:8px;
    height:58px;
    border:1px solid #dbe3ea;
    border-radius:14px;
    padding:0 12px;
    background:#fff;
    box-sizing:border-box;
}

.country-box select{
    border:none;
    outline:none;
    background:transparent;
    width:100%;
    font-size:15px;
}

.fi{
    width:22px;
    height:16px;
    display:inline-block;
    border-radius:3px;
}

.phone-wrapper input{
    flex:1;
}

.phone-wrapper input[type="text"]{
    flex:1;
    min-width:0;
    height:58px;
    margin:0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea{
    width:100%;
    height:58px;
    border:1px solid #dbe3ea;
    border-radius:14px;
    padding:0 18px;
    font-size:15px;
    outline:none;
    background:#fff;
    transition:.3s;
    box-sizing:border-box;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.1);
}

.phone-wrapper input{
    flex:1;
    height:58px;
}