  .contact-card-modern {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    }

  .contact-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28ab88 0%, #013366 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    }

  .contact-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(40, 171, 136, 0.15);
    border-color: #28ab88;
  }

  .contact-card-modern:hover::before {
    transform: scaleX(1);
  }

  .contact-icon-modern {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #28ab88 0%, #013366 100%);
    border-radius: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(40, 171, 136, 0.25);
  }

  .contact-card-modern:hover .contact-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(40, 171, 136, 0.35);
    }

  .contact-icon-modern svg {
    width: 2rem;
    height: 2rem;
  }

  .contact-form-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
  }

  .contact-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(40, 171, 136, 0.12);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }

  .contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(40, 171, 136, 0.1), rgba(1, 51, 102, 0.05));
    border-radius: 0 0 0 100%;
    z-index: 0;
  }

  .contact-info-card > * {
    position: relative;
    z-index: 1;
  }

  .contact-info-card-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 
      0 12px 40px rgba(40, 171, 136, 0.15),
      0 0 0 1px rgba(40, 171, 136, 0.1);
  }
  
  .contact-form-section-row {
    display: flex;
    align-items: stretch;
  }
  
  @media (min-width: 768px) {
    .contact-form-card,
    .contact-info-card {
      height: 100%;
      display: flex;
      flex-direction: column;
    }
  }

  .contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.6);
  }

  .contact-info-item:last-child {
    margin-bottom: 0;
  }

  .contact-info-item:hover {
    background: rgba(40, 171, 136, 0.08);
    transform: translateX(-4px);
    border-color: rgba(40, 171, 136, 0.2);
    box-shadow: 0 4px 16px rgba(40, 171, 136, 0.1);
  }

  .contact-info-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #28ab88 0%, #013366 100%);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 171, 136, 0.25);
  }

  .contact-info-item:hover .contact-info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 28px rgba(40, 171, 136, 0.35);
  }

  .contact-info-icon svg {
    width: 1.875rem;
    height: 1.875rem;
    stroke: white;
    stroke-width: 2;
    }

  .contact-info-item h6 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .contact-info-item p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }

  .contact-info-item a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #28ab88;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .contact-info-item a:hover {
    color: #013366;
    text-decoration: underline;
  }

  .contact-info-card > h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .contact-info-card > p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .form-control:focus,
  .form-select:focus {
    border-color: #28ab88;
    box-shadow: 0 0 0 0.2rem rgba(40, 171, 136, 0.15);
  }

  .contact-card-modern .btn {
    background: linear-gradient(135deg, #28ab88 0%, #013366 100%);
    border: none;
    color: white;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(40, 171, 136, 0.3);
    transition: all 0.3s ease;
    font-size: 0.875rem;
  }

  .contact-card-modern .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 171, 136, 0.4);
    background: linear-gradient(135deg, #22a085 0%, #012a55 100%);
    }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }

  @media (max-width: 768px) {
    .stats-grid {
      grid-template-columns: 1fr;
    }
  }

  .stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .stat-number {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, #28ab88 0%, #013366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  /* Contact Form Styles */
  .contact-form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .contact-form-messages {
    margin-bottom: 1.5rem;
  }

  .contact-form {
    margin-top: 0;
  }

  .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .form-label {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .form-label svg {
    color: #28ab88;
    flex-shrink: 0;
  }

  .form-control,
  .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #ffffff;
  }

  .form-control::placeholder,
  .form-select::placeholder {
    color: #94a3b8;
    opacity: 1;
  }

  .form-control:focus,
  .form-select:focus {
    border-color: #28ab88;
    box-shadow: 0 0 0 0.2rem rgba(40, 171, 136, 0.15);
    outline: none;
  }

  .form-control:hover,
  .form-select:hover {
    border-color: #cbd5e1;
  }

  textarea.form-control {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
  }

  .btn-primary {
    background: linear-gradient(135deg, #28ab88 0%, #013366 100%);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(40, 171, 136, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 171, 136, 0.4);
    background: linear-gradient(135deg, #22a085 0%, #012a55 100%);
    color: white;
  }

  .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 171, 136, 0.25), 0 4px 16px rgba(40, 171, 136, 0.3);
  }

  .contact-form .btn-primary {
    margin-top: 0.5rem;
  }

  .contact-submit-btn {
    width: 100%;
    min-width: 200px;
  }

  @media (min-width: 768px) {
    .contact-submit-btn {
      width: auto;
      padding-left: 2.5rem;
      padding-right: 2.5rem;
    }
  }

  /* چینش منظم دو ستونه برای راه‌های ارتباط */
  .contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  @media (max-width: 768px) {
    .contact-channels-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ===== Contact page layout tuning (more compact / balanced) ===== */
  .contact-hero.blog-hero {
    padding: 3.5rem 0 3rem;
  }

  /* شِل اصلی دو بخش "پیام خود را..." و "اطلاعات تماس" برای ظاهر مدرن‌تر */
  .contact-main-shell {
    position: relative;
    border-radius: 1.75rem;
    padding: 2.75rem 2.5rem;
    background:
      radial-gradient(900px 380px at 0% 0%, rgba(40, 171, 136, 0.08), transparent 60%),
      radial-gradient(900px 380px at 100% 100%, rgba(1, 51, 102, 0.08), transparent 60%),
      #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
      0 18px 40px rgba(15, 23, 42, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.7);
    overflow: hidden;
  }

  .contact-main-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.12) 0, transparent 55%);
    mix-blend-mode: soft-light;
    opacity: 0.7;
    pointer-events: none;
  }

  .contact-main-shell > .row {
    position: relative;
    z-index: 1;
  }

  /* روی دسکتاپ دو ستون حتماً چپ و راست هم باشند */
  @media (min-width: 992px) {
    .contact-main-shell > .row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      column-gap: 2.25rem;
      align-items: stretch; /* هر دو ستون به یک ارتفاع کشیده شوند */
    }
  }

  .contact-hero .hero-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
  }

  .contact-hero .hero-description {
    font-size: 1rem;
    max-width: 40rem;
  }

  .contact-hero .stats-grid {
    margin-top: 2rem;
  }

  @media (max-width: 768px) {
    .contact-main-shell {
      padding: 1.75rem 1.5rem;
      border-radius: 1.25rem;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    }

    .contact-form-card,
    .contact-info-card {
      padding: 1.75rem 1.5rem;
    }

    .contact-form-card h3 {
      font-size: 1.5rem !important;
    }

    .contact-info-card h3 {
      font-size: 1.35rem !important;
    }

    .contact-form-header {
      margin-bottom: 1.5rem;
      padding-bottom: 1.25rem;
    }

    .contact-form-header p {
      font-size: 1rem !important;
    }

    .form-label {
      font-size: 0.875rem;
      margin-bottom: 0.5rem;
    }

    .form-control,
    .form-select {
      padding: 0.75rem 0.875rem;
      font-size: 0.875rem;
    }

    textarea.form-control {
      min-height: 120px;
    }

    .btn-primary {
      padding: 0.75rem 1.5rem;
      font-size: 0.9375rem;
    }

    .hero-badge {
      margin-bottom: 0.75rem;
    }

    .contact-form .row.g-4 {
      --bs-gutter-y: 1rem;
    }

    .contact-info-item {
      padding: 1rem;
      margin-bottom: 1.5rem;
    }

    .contact-info-icon {
      width: 3rem;
      height: 3rem;
    }

    .contact-info-icon svg {
      width: 1.5rem;
      height: 1.5rem;
    }
  }

  /* Success Popup Notification Styles */
  .success-popup {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    animation: slideDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    pointer-events: none;
  }

  @keyframes slideDown {
    0% {
      top: -120px;
      opacity: 0;
    }
    100% {
      top: 20px;
      opacity: 1;
    }
  }

  .success-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 
      0 20px 60px rgba(40, 171, 136, 0.25),
      0 0 0 1px rgba(40, 171, 136, 0.1),
      0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    pointer-events: all;
    border: 2px solid rgba(40, 171, 136, 0.2);
  }

  .success-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28ab88 0%, #013366 100%);
    animation: progressBar 4s linear forwards;
  }

  @keyframes progressBar {
    0% {
      width: 100%;
    }
    100% {
      width: 0%;
    }
  }

  .success-popup-icon {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    background: linear-gradient(135deg, #28ab88 0%, #013366 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(40, 171, 136, 0.35);
    animation: iconPulse 0.6s ease-out;
  }

  @keyframes iconPulse {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .success-popup-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke-width: 3;
  }

  .success-popup-text {
    flex: 1;
    min-width: 0;
  }

  .success-popup-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
  }

  .success-popup-message {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
  }

  .success-popup-close {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border: none;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    padding: 0;
  }

  .success-popup-close:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #1e293b;
    transform: rotate(90deg);
  }

  .success-popup-close svg {
    width: 1rem;
    height: 1rem;
  }

  /* Mobile Responsive */
  @media (max-width: 768px) {
    .success-popup {
      width: calc(100% - 2rem);
      max-width: none;
      top: -150px;
    }

    @keyframes slideDown {
      0% {
        top: -150px;
        opacity: 0;
      }
      100% {
        top: 1rem;
        opacity: 1;
      }
    }

    .success-popup-content {
      padding: 1rem 1.25rem;
      gap: 0.875rem;
    }

    .success-popup-icon {
      width: 3rem;
      height: 3rem;
      min-width: 3rem;
    }

    .success-popup-icon svg {
      width: 1.5rem;
      height: 1.5rem;
    }

    .success-popup-title {
      font-size: 1rem;
    }

    .success-popup-message {
      font-size: 0.875rem;
    }

    .success-popup-close {
      width: 1.75rem;
      height: 1.75rem;
      min-width: 1.75rem;
    }
  }