@font-face {
  font-family: 'Qahwa Arabic';
  src: url('fonts/Qahwa-Arabic.otf') format('opentype');
}

@font-face {
  font-family: 'STC Regular';
  src: url('fonts/STC-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'IBMPlexArabic';
  src: url('fonts/IBMPlexArabic.ttf') format('truetype');
}




:root {

  --green: #38726c;
  --orange: #fca311;
  --teal: #4ecdc4;
  --red: #e94f37;
  --navy: #001f3f;
  --bej:#f6efe4;
  --brik:#b96414;
  --blue:#0a719e;
  --blue-gray:#66859f;
}
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'IBMPlexArabic', sans-serif;
}

body{
  background:white;
  direction:rtl;
  padding:0 80px 40px;
}

/* ===== رأس بسيط (خلفية بيضاء) ===== */
.navbar{
  position:sticky;
  top:0;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  z-index:100;
}
.navbar .logo{
  color:var(--green);
  font-size:30px;
  font-weight:bold;
  font-family:'Qahwa Arabic', serif;
  margin:0;
  text-decoration:none;
  cursor:pointer;
}
.menu-icon{
  display:flex;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}
.menu-icon span{
  width:28px;
  height:3px;
  background:var(--green);
  border-radius:2px;
}
.menu{
  position:fixed;
  top:0;
  right:0;
  width:250px;
  height:100%;
  background:var(--green);
  padding:20px;
  box-shadow:-2px 0 8px rgba(0,0,0,.3);
  transform:translateX(100%);
  transition:transform .4s ease;
  z-index:9999;
}
.menu.open{ transform:translateX(0); }
.menu ul{ list-style:none; margin:0; padding:0; }
.menu li{ margin:20px 0; }
.menu a{ color:#fff; text-decoration:none; font-size:18px; font-family:'IBMPlexArabic', sans-serif; }
.menu a:hover{ color:var(--brik); }
.close-btn{ font-size:28px; color:#fff; cursor:pointer; text-align:right; margin-bottom:20px; }
.close-btn:hover{ color:var(--brik); }

.main-title{
  text-align:center;
  color:var(--green);
  margin-top:30px;
  margin-bottom:20px;
  font-size:25px;
  font-family: 'Qahwa Arabic';
}

.service-box{
  border-bottom:1px solid #9bb7b0;
  padding:25px 0;
}

.service-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.text{
  flex:1;
  text-align:right;
}

.text h2{
  color:var(--green);
  margin-bottom:10px;
  font-size:20px;
  font-family: 'Qahwa Arabic';
}

.text p{
  color:var(--green);
  font-size:20px;
}


.toggle-btn{
  background:var(--green);
  color:white;
  border:none;
  padding:12px 40px;
  border-radius:10px;
  font-size:20px;
  cursor:pointer;
  font-family: 'Qahwa Arabic';
}
/*.form-box{
  gap:40px;

  max-height:0;
  overflow:hidden;
  opacity:0;

  transition:all 0.4s ease;
  margin-top:0;

}*/.form-box {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
}

.service-box.active .form-box {
  max-height: 1000px;
  opacity: 1;
  margin-top: 20px;
}/*
.form-box .field:last-child {
  flex: 1;
}*/
/*
.form-box.show{
  display:flex;
    max-height:500px;
  opacity:1;
  margin-top:20px;
}*/

.inputs{
  display:grid;
  grid-template-columns:repeat(2,150px);
  gap:26px;
  justify-content:start;
  margin-right:50px;
}

.inputs input,
.inputs select{
  border:2px solid #8aa7a0;
  border-radius:8px;
  padding:6px;
  font-size:18px;
   width:100%;
  max-width:160px;
}


input[type="file"]{
  padding:8px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:5px;
}

label{
  font-size:14px;
  color:var(--green);
  font-weight:bold;
}

.field input,
.field select{
  padding:8px;
  border:2px solid #8aa7a0;
  border-radius:8px;
  font-size:13px;
  color: var(--green);
}

.custom-select{
  position:relative;
}

.custom-select select{
  border:2px solid #8aa7a0;
  border-radius:8px;
  padding:6px;
  font-size:14px;
  width:100%;
  max-width:160px;
  color:var(--green) ;
  appearance:none;
  cursor:pointer;
}


.custom-select::after{
  content:"⌵";
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:var(--green);
  font-size:20px;
  pointer-events:none;
  font-family: 'IBMPlexArabic';
}

.field{
  display:flex;
  flex-direction:column;
  gap:5px;
}


.file-input{
 display:flex;
  justify-content:space-between;
  align-items:center;
  border:2px solid #8aa7a0;
  border-radius:8px;
  padding:6px;
  font-size:18px;
   width:100%;
  max-width:160px;
   background:white;
  cursor:pointer;
}

.file-input input{
  display:none;
}

.img{
  width:24px;
  height:24px;

  display:block;
  margin:0 auto;
}
.icon img{
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  object-fit:contain;
}

.form-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}


.textarea-box {
  display: flex;
  flex-direction: column;
   gap:5px;
}

.textarea-box textarea {
  width: 350px;
  height: 220px;
  resize: none;
  border: 2px solid #8aa7a0;
  border-radius: 10px;
  padding: 12px;
  font-size: 18px;
  outline: none;
  color: var(--green);
}

.error{
  color:red;
  font-size:12px;
  margin-top:3px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Qahwa Arabic';
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 350px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg,#89d6b7 0%, var(--green) 100%);
}

.toast.error {
    background: linear-gradient(135deg, #e58957 0%, #ac1c2f 100%);
}

/* ===== تجاوب الموبايل ===== */
@media (max-width: 768px){
  body{ padding: 0 16px 30px; }
  .main-title{ font-size: 22px; margin-top: 18px; }
  .text h2{ font-size: 18px; }
  .text p{ font-size: 14px; }
  .toggle-btn{ padding: 10px 22px; font-size: 16px; white-space: nowrap; }
  .service-header{ flex-wrap: wrap; gap: 12px; }
  .icon img{ width: 42px; height: 42px; }

  /* النموذج يتحول إلى عمود واحد متناسق */
  .form-box, .form-layout{ flex-direction: column; gap: 18px; }
  .inputs{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-right: 0;
    width: 100%;
  }
  .inputs input,
  .inputs select,
  .custom-select select,
  .field input,
  .field select{ max-width: 100%; width: 100%; font-size: 15px; }
  .custom-select{ width: 100%; }
  .textarea-box{ width: 100%; }
  .textarea-box textarea{ width: 100%; height: 150px; font-size: 15px; }
  .counter{ width: 100%; max-width: 180px; }
}

@media (max-width: 480px){
  .inputs{ grid-template-columns: 1fr; }
}

html,body{ max-width:100%; overflow-x:hidden; }