/* HERO */
.contact-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(90,107,30,0.18) 0%, rgba(90,107,30,0) 52%),
    radial-gradient(circle at 85% -10%, rgba(62,74,18,0.12) 0%, rgba(62,74,18,0) 55%),
    linear-gradient(160deg, #f7f6f2 0%, #efe8dc 100%);
  padding:140px 0 100px;
}

.contact-hero::before{
  content:"";
  position:absolute;
  inset:-25% -10%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(62,74,18,0.06) 0,
      rgba(62,74,18,0.06) 1px,
      transparent 1px,
      transparent 16px
    );
  opacity:0.18;
  transform:rotate(-2deg);
  pointer-events:none;
}

.contact-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 0%, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 62%);
  pointer-events:none;
}

.contact-hero .container{
  position:relative;
  z-index:1;
}

.contact-hero h1{
  font-size:48px;
}

.contact-hero p{
  max-width:600px;
  margin:15px auto 0;
  color:#555;
}

/* CONTACT INFO */
.contact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:22px;
  text-align:left;
  align-items:stretch;
}

.contact-card{
  position:relative;
  overflow:hidden;
  padding:28px 24px 26px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
  text-align:center;
  border-radius:18px;
  border:1px solid #e2e9de;
  background:#ffffff;
  box-shadow:0 9px 20px rgba(20,33,24,0.08);
  transition:transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height:100%;
}

.contact-heading{
  width:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.contact-icon{
  width:50px;
  height:50px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#124734;
  background:#f3f6eb;
  border:1px solid #d8e3cd;
  box-shadow:0 6px 14px rgba(20,33,24,0.09);
  transition:transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink:0;
}

.contact-icon svg{
  width:28px;
  height:28px;
  display:block;
}

.contact-icon svg *{
  stroke:currentColor !important;
  fill:none !important;
}

.contact-icon--svg{
  color:#124734;
  transition:transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-card h3{
  margin:0;
  font-size:17px;
  font-weight:700;
  letter-spacing:0.1px;
  font-family:'Manrope', sans-serif;
  color:#1d2f25;
  line-height:1.3;
  transition:color 0.25s ease, transform 0.25s ease;
}

/* FORM */
.contact-form-section h2{
  margin-bottom:15px;
}

.contact-form-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.contact-form-copy p{
  max-width:560px;
  width:100%;
  text-align:left;
}

.contact-form-logo{
  margin-top:22px;
  width:min(390px, 98%);
  height:auto;
  display:block;
  margin-left:auto;
  margin-right:auto;
  object-fit:contain;
  filter:drop-shadow(0 14px 24px rgba(18,71,52,0.16));
  transition:transform 0.25s ease, filter 0.25s ease;
}

.contact-form-logo:hover{
  transform:scale(1.04);
  filter:drop-shadow(0 16px 26px rgba(18,71,52,0.2)) brightness(1.08);
}

.contact-form{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.contact-honeypot{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.contact-form input,
.contact-form textarea{
  padding:14px 16px;
  border-radius:12px;
  border:1px solid #ddd;
  font-family:'Manrope',sans-serif;
  resize: none;        /* يمنع التحكم في الحجم */
  overflow-y: auto;  
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#5a6b1e;
}

.contact-form-status{
  min-height:22px;
  margin:2px 0 0;
  text-align:center;
  font-size:14px;
  font-weight:500;
  line-height:1.45;
  color:#2e4b2f;
}

.contact-form-status.is-success{
  color:#2e4b2f;
}

.contact-form-status.is-error{
  color:#a03535;
}

.contact-form .btn[disabled]{
  opacity:0.82;
  cursor:not-allowed;
  transform:none;
  filter:none;
}

/* MAP */
.contact-map iframe{
  width:100%;
  height:400px;
  border:none;
  border-radius:20px;
}

.contact-card p{
  word-break:break-word;
  overflow-wrap:anywhere;
  margin:0;
  color:#55624f;
  line-height:1.7;
  font-size:15px;
  text-align:center;
  max-width:34ch;
}

.contact-card a{
  color:inherit;
  text-decoration:none;
}

.contact-card:hover,
.contact-card:focus-within{
  border-color:#e2e9de;
  transform:none;
  box-shadow:0 9px 20px rgba(20,33,24,0.08);
}

.contact-heading:hover .contact-icon,
.contact-heading:focus-within .contact-icon{
  color:#1e1e1e;
  background:#cfe06b;
  border-color:#cfe06b;
  transform:translateY(-2px) scale(1.04);
  box-shadow:0 12px 22px rgba(0,0,0,0.2);
}

.contact-heading:hover h3,
.contact-heading:focus-within h3{
  color:#5a6b1e;
  transform:translateY(-2px);
}

.contact-card a:hover,
.contact-card a:focus{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}

@media (max-width:900px){
  .contact-card{
    padding:24px 18px 22px;
    text-align:center;
  }

  .contact-icon{
    width:50px;
    height:50px;
  }

  .contact-icon svg{
    width:28px;
    height:28px;
  }

  .contact-heading,
  .contact-card p{
    text-align:center;
  }

  .contact-card p{
    max-width:100%;
  }

  .contact-form-logo{
    width:min(320px, 94%);
  }
}

