/* =============================================================
   MIRSAFIAN LAW GROUP — MERGED CUSTOM CSS
   Full replacement for Appearance → Customize → Additional CSS
   Existing rules preserved. New rules appended at the bottom.
   CHANGE: form-section + contact-form-section no longer hidden
   on practice pages (fixes Task 18 — missing contact forms).
   ============================================================= */

@media (min-width: 1200px) {
    .container {
        max-width: 1280px!important;
    }
}

/* WHY US – CARD BLOCK LAYOUT */
.why-us-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-us-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 35px 28px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  border-top: 5px solid #1f3a8a;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-us-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #111827;
}
.why-us-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}
.why-us-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}
@media (max-width: 1024px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .why-us-wrap {
    padding: 40px 16px;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .why-us-card {
    padding: 26px 20px;
  }
  .why-us-card h3 {
    font-size: 17px;
  }
  .why-us-card p {
    font-size: 14px;
  }
}

/*public*/
.legal-resources-container {
    line-height: 1.6;
    color: #333;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
}
.legal-resources-container h2 {
    color: #000;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}
.legal-resources-container h3 {
    color: #2c5282;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}
.legal-resources-container p {
    margin-bottom: 15px;
}
.legal-resources-container em {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-style: italic;
}
.legal-resources-container ul {
    margin-bottom: 20px;
    padding-left: 25px;
}
.legal-resources-container li {
    margin-bottom: 8px;
}
.legal-resources-container a {
    color: #2b6cb0;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}
.legal-resources-container a:hover {
    color: #c53030;
    text-decoration: none;
}
.disclaimer-box {
    background-color: #f7fafc;
    border-left: 5px solid #2d3748;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 1.1em;
}
.resource-section {
    margin-bottom: 5px;
    padding: 10px 0;
}
hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

input[type="checkbox"] {
    margin: 4px 0 0;
    margin-top: 1px \9;
    line-height: normal;
    height: 20px!important;
    text-align: left !important;
}

.home-team .slide-item .caption {
    padding-top: 100px!important;
    padding-bottom: 100px!important;
    padding-right:100px!important;
    position: relative;
}

/* CHANGED: removed .form-section and .contact-form-section from this block so
   contact forms render on practice pages (Task 18). Kept the other hide rules. */
body.postid-2240 #jp-relatedposts,
body.postid-1775 #jp-relatedposts,
body.postid-1621 #jp-relatedposts,
body.postid-1771 #jp-relatedposts,
body.postid-1773 #jp-relatedposts,
body.postid-1619 #jp-relatedposts,
body.postid-1604 #jp-relatedposts,
body.postid-2240 .practice-post-object,
body.postid-1775 .practice-post-object,
body.postid-1621 .practice-post-object,
body.postid-1771 .practice-post-object,
body.postid-1773 .practice-post-object,
body.postid-1619 .practice-post-object,
body.postid-1604 .practice-post-object,
body.postid-2240 .pagination-practice,
body.postid-1775 .pagination-practice,
body.postid-1621 .pagination-practice,
body.postid-1771 .pagination-practice,
body.postid-1773 .pagination-practice,
body.postid-1619 .pagination-practice,
body.postid-1604 .pagination-practice {
    display: none !important;
}

.col-md-7 {
    width: 100%;
}

.title-section {
    margin-bottom: 22px;
}
.title-section h5 {
   font-size: 45px!important;
}

.form-section, .contact-form-section {
    padding: 35px;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
}
.wpcf7-form input {
    height: 45px;
}
.wpcf7-form textarea {
    height: 120px;
    resize: vertical;
}
.wpcf7-form .button {
    width: 100%;
    height: 100%!important;
}

.legal-resources-container a {
    color: #0000EE;
    text-decoration: underline!important;
}
.legal-resources-container a:hover {
    color: #0000EE;
    text-decoration: underline!important;
}

/* =============================================================
   APRIL 2026 REVISIONS — new rules from Masoud's feedback
   ============================================================= */

/* Task 1 + 2: Header bar — stack email/phone/address vertically */
.hakim-top-bar .top-info,
.top-bar .top-info,
.header-top .top-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.3;
}
.hakim-top-bar .top-info > *,
.top-bar .top-info > *,
.header-top .top-info > * {
  margin: 0;
}

/* Task 10: Footer phone/fax/email visual weight consistent */
.footer-widget .phone,
.footer-widget .fax,
.footer-widget .email {
  font-weight: 600;
}
.footer-widget .contact-info p {
  margin-bottom: 4px;
}

/* Tasks 7, 11: Footer split into two centered halves + centered copyright */
.footer-widgets .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-widgets .widget-area {
  flex: 1 1 45%;
  text-align: center;
}
.footer-widgets .widget-area h4,
.footer-widgets .widget-area .widget-title {
  text-align: center;
  margin-bottom: 16px;
}
.copyright, .footer-copyright, .site-info {
  text-align: center !important;
}

/* Task 16: Standardize vertical spacing between sections */
section,
.hakim-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (max-width: 768px) {
  section,
  .hakim-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Task 17: Contact Us heading — prevent CONT/ACT US mobile wrap
   (overrides the 45px !important on small screens) */
.title-section h5 {
  white-space: normal;
  word-break: keep-all;
  hyphens: none;
}
@media (max-width: 480px) {
  .title-section h5 {
    font-size: 28px !important;
  }
}

/* Task 19: Contact form checkbox inline with consent text */
.wpcf7-acceptance {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
}
.wpcf7-acceptance label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}
.wpcf7-acceptance input[type="checkbox"] {
  margin-top: 4px !important;
  flex-shrink: 0;
  width: auto !important;
  height: 18px !important;
}

/* Tasks 21, 22: Carousel arrows — always visible, bigger, on sides
   (practice areas + attorneys carousels) */
.slick-prev, .slick-next,
.owl-prev, .owl-next,
.swiper-button-prev, .swiper-button-next {
  opacity: 1 !important;
  visibility: visible !important;
  width: 48px !important;
  height: 48px !important;
  background: rgba(0,0,0,0.6) !important;
  border-radius: 50%;
  z-index: 50 !important;
  top: 50% !important;
  transform: translateY(-50%);
}
.slick-prev:before, .slick-next:before,
.owl-prev:before, .owl-next:before,
.swiper-button-prev:after, .swiper-button-next:after {
  font-size: 24px !important;
  color: #fff !important;
}
.slick-prev, .owl-prev, .swiper-button-prev { left: -24px !important; }
.slick-next, .owl-next, .swiper-button-next { right: -24px !important; }

/* Task 24: Hero slider center on wide screens */
.rev_slider_wrapper,
.tp-banner-container {
  max-width: 100% !important;
  margin: 0 auto !important;
}
.tp-bgimg.defaultimg {
  background-position: center center !important;
}

/* Task 28: Fix stacked images on practice area inner pages */
.single-hakim-practice .practice-gallery img,
.practice-area-inner .gallery img {
  display: block;
  margin: 0 auto 16px auto;
  max-width: 100%;
  height: auto;
}
.single-hakim-practice .practice-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Task 33: Masoud's photo crop on mobile */
@media (max-width: 768px) {
  .hakim-team-item img,
  .team-card img,
  .attorney-photo img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    object-position: center top;
    max-height: 400px;
  }
}

/* Task 34: Legal Team image bleeding into white area */
.team-card,
.hakim-team-item {
  overflow: hidden;
  border-radius: 8px;
}
.team-card img,
.hakim-team-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Task 8: Footer disclaimer paragraph spacing */
.footer-disclaimer p,
.footer-disclaimer li {
  margin-bottom: 6px;
}