/* Frontend note: Styles for contact inline. */
.contact-v3 {
  background: #f6f6f6;
  color: #2c2c2c;
  font-family: 'Vazirmatn', Arial, sans-serif;
}

.contact-v3 * {
  box-sizing: border-box;
}

.contact-v3 .cv3-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 58px 28px 92px;
}

.contact-v3 .cv3-hero {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  align-items: stretch;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f7f8f3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.contact-v3 .cv3-hero-media {
  background: linear-gradient(90deg, #e6f1c8 0%, #ebf2d4 48%, #f3f6e9 100%);
  min-height: 630px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 40px;
}

.contact-v3 .cv3-hero-img {
  width: min(620px, 95%);
  height: auto;
  display: block;
}

.contact-v3 .cv3-hero-info {
  padding: 82px 68px 58px 72px;
  text-align: right;
}

.contact-v3 .cv3-hero-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  color: #171717;
  white-space: nowrap;
}

.contact-v3 .cv3-hero-title span {
  display: inline;
}

.contact-v3 .cv3-accent {
  color: #a2c84f;
}

.contact-v3 .cv3-hero-lead {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 2.02;
  font-weight: 400;
  color: #747474;
}

.contact-v3 .cv3-divider {
  height: 2px;
  width: 92%;
  margin: 44px 0 30px auto;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.contact-v3 .cv3-info-block {
  margin-top: 22px;
}

.contact-v3 .cv3-info-label {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: #3b3b3b;
}

.contact-v3 .cv3-info-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  font-weight: 400;
  color: #7d7d7d;
}

.contact-v3 .cv3-actions {
  margin-top: 92px;
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
}

.contact-v3 .cv3-action {
  text-align: center;
  padding: 10px 16px;
}

.contact-v3 .cv3-action-media {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.contact-v3 .cv3-action-img {
  max-height: 200px;
  width: auto;
  display: block;
}

.contact-v3 .cv3-action-title {
  margin: 18px 0 10px;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f1f1f;
}

.contact-v3 .cv3-action-text {
  margin: 0 auto 22px;
  max-width: 430px;
  font-size: 15px;
  line-height: 2;
  font-weight: 400;
  color: #555555;
}

.contact-v3 .cv3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 206px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  background: #a2c84f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.contact-v3 .cv3-btn:hover,
.contact-v3 .cv3-btn:focus,
.contact-v3 .cv3-btn:active,
.contact-v3 .cv3-btn:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-decoration: none;
}

.contact-v3 .cv3-btn::after {
  content: "";
  width: 0;
  height: 0;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 180ms ease, transform 180ms ease, width 180ms ease, height 180ms ease;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23ffffff' stroke-width='2'/%3E%3Cpath d='M15 12H8' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M10.5 9.5L8 12l2.5 2.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.contact-v3 .cv3-btn:hover::after {
  width: 14px;
  height: 14px;
  opacity: 1;
  transform: translateX(0);
}

.contact-v3 .cv3-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(162, 200, 79, 0.35);
  filter: brightness(1.01);
}

/* Contact form modal */
.contact-v3 .cv3-modal{
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.contact-v3 .cv3-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}

.contact-v3 .cv3-modal-dialog{
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: 8vh auto 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(0,0,0,0.22);
  padding: 24px 22px 20px;
}

.contact-v3 .cv3-modal-close{
  position: absolute;
  top: 8px;
  left: 10px;
  border: none;
  background: transparent;
  color: #6c6c6c;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.contact-v3 .cv3-modal-title{
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #232323;
}

.contact-v3 .cv3-modal-form{
  display: grid;
  gap: 12px;
}

.contact-v3 .cv3-field{
  display: grid;
  gap: 6px;
}

.contact-v3 .cv3-field span{
  font-size: 14px;
  font-weight: 600;
  color: #3f3f3f;
}

.contact-v3 .cv3-field input{
  height: 42px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 14px;
  color: #2a2a2a;
}

.contact-v3 .cv3-field textarea{
  min-height: 110px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  resize: vertical;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #2a2a2a;
}

.contact-v3 .cv3-field input:focus{
  outline: none;
  border-color: #a2c84f;
  box-shadow: 0 0 0 3px rgba(162,200,79,0.18);
}

.contact-v3 .cv3-field textarea:focus{
  outline: none;
  border-color: #a2c84f;
  box-shadow: 0 0 0 3px rgba(162,200,79,0.18);
}

.contact-v3 .cv3-modal-submit{
  margin-top: 4px;
  width: 100%;
  height: 44px;
}

.contact-v3 .cv3-btn:focus-visible {
  outline: 2px solid rgba(162, 200, 79, 0.7);
  outline-offset: 3px;
}

@media (max-width: 1200px) {
  .contact-v3 .cv3-hero-title {
    font-size: 38px;
  }

  .contact-v3 .cv3-info-label {
    font-size: 18px;
  }

  .contact-v3 .cv3-info-text,
  .contact-v3 .cv3-hero-lead {
    font-size: 14px;
  }

  .contact-v3 .cv3-actions {
    gap: 42px;
  }
}

@media (max-width: 991px) {
  .contact-v3 .cv3-container {
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .contact-v3 .cv3-hero {
    grid-template-columns: 1fr;
  }

  .contact-v3 .cv3-hero-media {
    min-height: 360px;
    padding: 26px;
  }

  .contact-v3 .cv3-hero-info {
    padding: 30px 24px 28px;
  }

  .contact-v3 .cv3-hero-title {
    font-size: 30px;
  }

  .contact-v3 .cv3-info-label {
    font-size: 18px;
    line-height: 1.4;
  }

  .contact-v3 .cv3-info-text,
  .contact-v3 .cv3-hero-lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .contact-v3 .cv3-divider {
    margin: 20px 0 16px;
    height: 2px;
  }

  .contact-v3 .cv3-actions {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
  }

  .contact-v3 .cv3-action-media {
    height: 170px;
  }

  .contact-v3 .cv3-action-img {
    max-height: 150px;
  }

  .contact-v3 .cv3-action-title {
    font-size: 24px;
  }
}

/* =========================
   CONTACT V3 — HERO CARD (match screenshot)
   Only modifies the FIRST big rectangle
   ========================= */

/* Page background must be white like the mock */
.contact-v3{
  background:#ffffff;
}

/* Card: softer border + stronger shadow like screenshot */
.contact-v3 .cv3-hero{
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  overflow: hidden;
}

/* Left area: stronger green -> white fade (exact look) */
.contact-v3 .cv3-hero-media{
  background: linear-gradient(90deg,
    rgba(230, 245, 200, 0.95) 0%,
    rgba(238, 248, 220, 0.72) 42%,
    rgba(255, 255, 255, 1) 100%
  );
  min-height: 560px;          /* closer to screenshot */
  padding: 44px 40px;
}

/* Make the illustration sit a bit lower-left like mock */
.contact-v3 .cv3-hero-img{
  width: min(560px, 92%);
  transform: translate(-20px, 28px);
  filter: drop-shadow(0 22px 26px rgba(0,0,0,0.14));
}

/* Right side spacing closer + more airy */
.contact-v3 .cv3-hero-info{
  padding: 72px 64px 56px 70px;
}

/* Title line = a bit smaller and tighter (mock) */
.contact-v3 .cv3-hero-title{
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
  white-space: nowrap;
}

/* Make only the green “پادرا متعهد،” lighter like mock */
.contact-v3 .cv3-accent{
  color: #a2c84f;
  font-weight: 700;
}

/* Lead text a touch smaller/lighter */
.contact-v3 .cv3-hero-lead{
  margin-top: 14px;
  font-size: 14px;
  line-height: 2.0;
  color: rgba(0,0,0,0.50);
  max-width: 560px;
}

/* Divider: thin line + subtle shadow (not thick bar) */
.contact-v3 .cv3-divider{
  height: 2px;
  margin: 34px 0 24px;
  background: rgba(0,0,0,0.10);
  box-shadow: 0 6px 10px rgba(0,0,0,0.12);
  border-radius: 999px;
  width: 88%;                 /* shorter like screenshot */
  margin-right: 0;            /* keeps it aligned to right */
  margin-left: auto;
}

/* Info blocks: more spacing + lighter typography */
.contact-v3 .cv3-info-block{
  margin-top: 26px;
}

.contact-v3 .cv3-info-label{
  font-size: 20px;
  font-weight: 700;
  color: rgba(0,0,0,0.58);
  margin-bottom: 8px;
}

.contact-v3 .cv3-info-text{
  font-size: 19px;
  line-height: 2.0;
  color: rgba(0,0,0,0.46);
}

/* Responsive: keep the same “feel” */
@media (max-width: 991px){
  .contact-v3 .cv3-hero-media{
    min-height: 320px;
    padding: 26px 22px;
  }
  .contact-v3 .cv3-hero-img{
    width: min(420px, 92%);
    transform: translate(0, 10px);
  }
  .contact-v3 .cv3-hero-info{
    padding: 26px 22px 26px;
  }
  .contact-v3 .cv3-hero-title{
    font-size: 28px;
  }
  .contact-v3 .cv3-divider{
    width: 100%;
    margin: 20px 0 14px;
  }
}
/* Force visual layout */
.contact-v3 .cv3-hero{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* image bigger */
  direction: ltr;                     /* control layout direction */
}

/* Keep text RTL */
.contact-v3 .cv3-hero-info{
  direction: rtl;
  text-align: right;
}

/* Explicit positioning */
.contact-v3 .cv3-hero-media{
  grid-column: 1; /* LEFT */
}

.contact-v3 .cv3-hero-info{
  grid-column: 2; /* RIGHT */
}

/* Hero size boost (desktop) */
@media (min-width: 992px){
  .contact-v3 .cv3-container{
    max-width: 1680px;
  }

  .contact-v3 .cv3-hero{
    min-height: 760px;
  }

  .contact-v3 .cv3-hero-media{
    min-height: 720px;
    padding: 56px 52px;
  }

  .contact-v3 .cv3-hero-img{
    width: min(720px, 95%);
  }

  .contact-v3 .cv3-hero-info{
    padding: 74px 64px 58px 66px;
  }
}

/* Smaller typography for contact info block (requested) */
.contact-v3 .cv3-info-label{
  font-size: 16px;
  line-height: 1.5;
}

.contact-v3 .cv3-info-text{
  font-size: 14px;
  line-height: 1.9;
}

/* Smaller lower action cards (requested) */
.contact-v3 .cv3-actions{
  margin-top: 72px;
  margin-bottom: 56px;
  gap: 56px;
}

.contact-v3 .cv3-action-title{
  font-size: 21px;
  line-height: 1.4;
  margin: 14px 0 8px;
}

.contact-v3 .cv3-action-text{
  font-size: 13px;
  line-height: 1.85;
  margin: 0 auto 16px;
  max-width: 360px;
}

.contact-v3 .cv3-btn{
  min-width: 176px;
  height: 40px;
  font-size: 12px;
  padding: 0 16px;
}

/* FINAL: Contact hero/banner responsive fix */
@media (max-width: 991px){
  .contact-v3 .cv3-wrap{ padding-top: 20px !important; }
  .contact-v3 .cv3-container{ max-width: 100% !important; padding-left: 14px !important; padding-right: 14px !important; }
  .contact-v3 .cv3-hero{
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
  }
  .contact-v3 .cv3-hero-media{
    grid-column: 1 !important;
    min-height: 0 !important;
    padding: 18px 14px !important;
  }
  .contact-v3 .cv3-hero-img{
    width: min(460px, 100%) !important;
    transform: none !important;
    margin: 0 auto !important;
    display: block;
  }
  .contact-v3 .cv3-hero-info{
    grid-column: 1 !important;
    padding: 22px 14px 18px !important;
  }
  .contact-v3 .cv3-hero-title{
    font-size: clamp(22px, 4.8vw, 30px) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  .contact-v3 .cv3-hero-lead{
    font-size: 13px !important;
    line-height: 1.95 !important;
    max-width: 100% !important;
  }
  .contact-v3 .cv3-divider{
    width: 100% !important;
    margin: 16px 0 12px !important;
  }
}

@media (max-width: 479px){
  .contact-v3 .cv3-hero{ border-radius: 14px !important; }
  .contact-v3 .cv3-hero-title{ font-size: 20px !important; }
  .contact-v3 .cv3-info-label{ font-size: 14px !important; }
  .contact-v3 .cv3-info-text{ font-size: 12px !important; line-height: 1.8 !important; }
}
