/*
Theme Name: Maria Deprm
Theme URI: https://ad-m.co
Author: Maria Deprma
Author URI: https://ad-m.co
Description: هذا قالب ووردبريس مخصص لتصميم المواقع ودعم اللغة العربية بالكامل. يتميز بالسرعة وسهولة التخصيص وإمكانية التوافق مع جميع الأجهزة والمنصات.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mariadeprma
*/

/* =========================================================
   ✅ BASE RESET
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* لا نخفي المشكلة على مستوى الموقع كله */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}

/* إزالة الخط من جميع الروابط */
a,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none !important;
}

/* =========================================================
   ✅ ELEMENTOR / SLIDERS (Clean + Stable)
   هدفنا: لا توسّع خارج الشاشة + لا قص للصور + لا خروج خارج الأسهم
   ========================================================= */

/* إصلاح Stretch Section (سبب شائع للتوسّع) */
.elementor-section.elementor-section-stretched {
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* عناصر Elementor الأساسية تلتزم بعرض الصفحة بدون تدمير Swiper */
.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap,
.elementor-element {
  max-width: 100%;
}

/* =========================================
   ✅ Allow arrows outside + keep slides clipped
   ========================================= */

/* خلي الويدجت يسمح بخروج الأسهم */
.elementor-widget-image-carousel,
.elementor-widget-media-carousel,
.elementor-widget-slides,
.elementor-widget-loop-carousel{
  overflow: visible !important;
  position: relative;
}

/* قصّ الصور/السلايدات فقط داخل إطار السلايدر */
.elementor-widget-image-carousel .swiper,
.elementor-widget-media-carousel .swiper,
.elementor-widget-slides .swiper,
.elementor-widget-loop-carousel .swiper{
  overflow: hidden !important;
}

/* تأكد الأسهم فوق كل شيء */
.elementor-widget-image-carousel .elementor-swiper-button,
.elementor-widget-media-carousel .elementor-swiper-button,
.elementor-widget-slides .elementor-swiper-button,
.elementor-widget-loop-carousel .elementor-swiper-button{
  z-index: 999 !important;
}


/* صور السلايدر */
.elementor-widget-image-carousel .swiper-slide img,
.elementor-widget-media-carousel .swiper-slide img,
.elementor-widget-slides .swiper-slide img,
.elementor-widget-loop-carousel .swiper-slide img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* لو ودجت Slides يستخدم خلفية */
.elementor-widget-slides .elementor-slide-background,
.elementor-widget-slides .elementor-slide-background img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* الأسهم فوق المحتوى */
.elementor-swiper-button,
.swiper-button-next,
.swiper-button-prev {
  z-index: 50 !important;
}

/* =========================================================
   🧱 PAGE LAYOUT (Desktop/Tablet/Mobile)
   ========================================================= */
.container1,
.page-layout,
.content-area {
  width: 100%;
  max-width: 100%;
}

.page-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.page-layout.sidebar-left .sidebar {
  width: 25%;
  order: -1;
  padding: 15px;
}

.page-layout.sidebar-left .content-area {
  width: 75%;
  padding: 20px;
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 768px) {
  .page-layout {
    flex-direction: column;
  }
  .page-layout.sidebar-left .sidebar,
  .page-layout.sidebar-left .content-area {
    width: 100%;
    order: initial;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .page-layout {
    flex-direction: column;
  }
  .page-layout.sidebar-left .sidebar,
  .page-layout.sidebar-left .content-area {
    width: 100%;
    order: initial;
  }
}

/* =========================================================
   🔗 Social Icons
   ========================================================= */
.mariadeprma-social-icons .social-icon {
  text-decoration: none !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ddd;
  color: #000;
  transition: all 0.3s ease;
  font-size: 18px;
}

/* =========================================================
   🛒 WooCommerce - Layout + Products Grid + Sidebar
   ========================================================= */
.woocommerce-page #content {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 25px;
}

/* Sidebar */
.shop-sidebar,
#shop-sidebar,
.woocommerce-page #secondary {
  flex: 0 0 23%;
  max-width: 23%;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

/* Products Area */
.woocommerce-page #primary {
  flex: 1;
  max-width: 70%;
  float: right;
  width: 70%;
}

/* Products UL */
.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: flex-start;
  margin: 20px;
}

/* Product Card (عام) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: center;
}

/* عنوان المنتج ارتفاع ثابت */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* زر داخل البطاقة للأسفل */
.woocommerce ul.products li.product .button {
  margin-top: auto;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .woocommerce-page #primary {
    max-width: 100%;
    width: 100%;
    float: right;
  }
  .woocommerce ul.products {
    justify-content: center;
  }
}

/* Responsive - <= 991px */
@media (max-width: 991px) {
  .woocommerce-page #content {
    flex-direction: column;
  }

  .shop-sidebar,
  #shop-sidebar,
  .woocommerce-page #secondary {
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
    float: right;
  }

  .woocommerce ul.products li.product {
    width: calc(50% - 15px);
  }
}

@media (max-width: 600px) {
  .woocommerce ul.products li.product {
    width: 100%;
  }
}

/* Sidebar position tweaks */
aside#shop-sidebar {
  float: right;
  margin-top: 35px;
  margin-right: 1%;
  margin-left: 3%;
}

#primary {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

/* إخفاء الزوائد */
.woocommerce .woocommerce-ordering,
.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-breadcrumb {
  display: none;
}

/* إزالة pseudo بعد/قبل لمنتجات */
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
  content: " ";
  display: none;
}

/* =========================================================
   ✅ قواعد Grid عامة (كما كانت عندك)
   ========================================================= */

/* هذا السطر أنت كنت تعتمد عليه (تركناه) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: left;
  margin: 0;
  padding: 0;
  position: relative;
  width: 22.05%;
}

/* Grid: columns-3 */
.woocommerce ul.products.columns-3 li.product,
.woocommerce-page ul.products.columns-3 li.product {
  width: 17%;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 5px;
  margin-left: 1px;
  margin-right: 1px;
}

@media (max-width: 767px) {
  .woocommerce ul.products.columns-3 li.product,
  .woocommerce-page ul.products.columns-3 li.product {
    width: 44%;
  }
}

/* Grid: columns-5 */
.woocommerce ul.products.columns-5 li.product {
  width: 17%;
  margin-bottom: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  padding: 6px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .woocommerce ul.products.columns-5 li.product {
    width: 48%;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products.columns-5 li.product {
    width: 45%;
  }
}

/* =========================================================
   🧩 Markoom Categories Widget
   ========================================================= */
.markoom-categories-widget {
  text-align: left;
  border-top: 2px solid #648a3a;
  border-bottom: 2px solid #648a3a;
  padding: 10px 0;
}

.markoom-cat-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #000;
}

.markoom-cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.markoom-cat-item {
  position: relative;
  display: block;
  width: 100%;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.markoom-cat-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.4s ease;
  z-index: 1;
}

.markoom-cat-item span {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: #08a04af2;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 10px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.markoom-cat-item:hover img {
  transform: scale(1.05);
}
.markoom-cat-item:hover span {
  background: rgba(100, 138, 58, 1);
}

@media (max-width: 768px) {
  .markoom-cat-item {
    height: 50px;
  }
  .markoom-cat-item span {
    font-size: 14px;
    padding: 5px 8px;
  }
}

/* =========================================================
   🌍 RTL Support
   ========================================================= */
[dir="rtl"] .markoom-cat-item span {
  left: auto;
  right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

[dir="rtl"] .markoom-cat-title {
  text-align: right;
}
[dir="rtl"] .markoom-categories-widget {
  text-align: right;
}

[dir="rtl"] aside#shop-sidebar {
  float: none;
  margin-top: 35px;
  margin-right: 3%;
  margin-left: 1%;
}

[dir="rtl"] .woocommerce-page #primary {
  flex: 1;
  float: left;
  margin-left: 3%;
}

@media (max-width: 1023px) and (min-width: 768px) {
  [dir="rtl"] aside#shop-sidebar {
    float: none;
    margin-top: 35px;
    margin-right: 1%;
    margin-left: 3%;
  }
  [dir="rtl"] .woocommerce-page #primary {
    float: none;
  }
}

@media (max-width: 767px) {
  [dir="rtl"] aside#shop-sidebar {
    float: none;
    margin-right: 0;
    margin-left: 0;
  }
  [dir="rtl"] .woocommerce-page #primary {
    float: none;
  }
}

/* =========================================================
   🖼️ Product Image Frame + Hover
   ========================================================= */
.woocommerce ul.products li.product img {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  padding: 2px;
  background-image: linear-gradient(135deg, #0aa04a, #000000);
  background-clip: padding-box;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

/* Product Title */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #0aa04a;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
  transition: color 0.3s ease;
}

.woocommerce ul.products li.product h2:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
  color: #062847;
}

/* Product Button */
.woocommerce ul.products li.product .button {
  background: linear-gradient(135deg, #0aa04a, #062847);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  display: inline-block;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product .button:hover {
  background: linear-gradient(135deg, #062847, #0aa04a);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   🔎 WooCommerce Product Search
   ========================================================= */
.woocommerce-product-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
}

.woocommerce-product-search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #0aa04a;
  border-radius: 6px;
  font-size: 14px;
  color: #062847;
  background-color: #fff;
  transition: all 0.3s ease;
}

.woocommerce-product-search input[type="search"]:focus {
  outline: none;
  border-color: #062847;
  box-shadow: 0 0 6px rgba(10, 160, 74, 0.4);
}

.woocommerce-product-search button,
.woocommerce-product-search input[type="submit"] {
  background: linear-gradient(135deg, #0aa04a, #062847);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.woocommerce-product-search button:hover,
.woocommerce-product-search input[type="submit"]:hover {
  background: linear-gradient(135deg, #062847, #0aa04a);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.woocommerce-product-search + h2,
.widget_product_search h2 {
  color: #062847;
  border-bottom: 2px solid #0aa04a;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

/* =========================================================
   🧾 Single Product Page
   ========================================================= */
.single-product .site-main,
.single-product .woocommerce {
  max-width: 70%;
  padding: 0 15px;
  float: left;
  display: contents;
}

.related.products {
  margin: 0px !important;
  width: 100% !important;
}

.related.products ul.products li.product {
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 15px;
  text-align: center;
  transition: 0.3s;
  width: 100%;
}

.related.products ul.products li.product img {
  max-height: fit-content !important;
  object-fit: contain;
  margin-bottom: 10px;
}

.woocommerce ul.products li.product {
  height: auto !important;
}

/* =========================================================
   🟩 Category Bar / Custom
   ========================================================= */
.woocommerce-loop-category-22q {
  margin: 20px 20px;
  background: green;
  padding: 10px;
  border-radius: 11px;
}

/* =========================================================
   📰 Articles / Blog
   ========================================================= */
.articles-container {
  width: 90%;
  margin: auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.article-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
  margin-bottom: 30px;
  text-align: center;
}

.article-item:hover {
  transform: translateY(-4px);
}

.article-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.article-title {
  font-size: 22px;
  margin: 10px 0;
  color: #006837;
}

.excerpt {
  color: #666;
  font-size: 15px;
  margin-top: 10px;
}

/* Read More Button */
.read-more-btn {
  background: linear-gradient(135deg, #0aa04a, #062847);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  display: inline-block;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  text-align: center;
  width: 100%;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.read-more-btn:hover {
  background: linear-gradient(135deg, #062847, #0aa04a);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

/* Blog Page */
.blog-container {
  width: 80%;
  margin: 0 auto;
  padding-top: 30px;
}

/* Filter Form */
.filter-form {
  margin: 20px auto 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #062847;
  border-bottom: solid;
  border-radius: 14px;
  padding: 13px;
  text-align: center;
  align-items: anchor-center;
  color: #fff;
}

/* Blog filter hidden (كما كان عندك) */
.blog-container form.filter-form {
  display: none;
}

#category-filter {
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
}

/* Global button style */
button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
button:hover {
  background-color: #388E3C;
}

/* =========================================================
   🚧 Prevent WC styles leaking into non-WC pages
   ========================================================= */
body:not(.woocommerce) .woocommerce,
body:not(.woocommerce-page) .woocommerce {
  display: block !important;
  width: auto !important;
  float: none !important;
  max-width: 100% !important;
}

body:not(.woocommerce) #shop-sidebar,
body:not(.woocommerce-page) #shop-sidebar,
body:not(.woocommerce) .shop-sidebar {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

body:not(.woocommerce-page) ul.products {
  display: block !important;
  gap: 0 !important;
}

body:not(.woocommerce-page) ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.single-project,
body.post-type-archive-project,
body.tax-project_cat {
  width: 100% !important;
}

body.single-project ul.products,
body.post-type-archive-project ul.products,
body.tax-project_cat ul.products {
  display: block !important;
}

body:not(.woocommerce) #primary,
body:not(.woocommerce-page) #primary {
  float: none !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

body.woocommerce #content,
body.woocommerce-page #content {
  display: flex !important;
  gap: 25px;
  align-items: flex-start;
}

body.woocommerce #shop-sidebar,
body.woocommerce .shop-sidebar {
  width: 23% !important;
  max-width: 23% !important;
}

body.woocommerce #primary {
  width: 70% !important;
  max-width: 70% !important;
}

body.woocommerce .article-item,
body.woocommerce .articles-grid,
body.woocommerce .articles-container {
  all: unset !important;
  display: block;
}

/* =========================================================
   ✅ Archive overflow fixes
   ========================================================= */
.archive .content-area,
.archive.woocommerce .content-area {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.archive .widget-area,
.archive.woocommerce .widget-area {
  width: 25%;
  margin: 0;
  padding: 0 20px;
}

.archive .site-main,
.archive.woocommerce .site-main {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.archive .widget-area,
.archive .site-main {
  height: auto;
}

@media (max-width: 767px) {
  body.woocommerce #primary {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce #shop-sidebar,
  body.woocommerce .shop-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* =========================================================
   🔝 Back to top button
   ========================================================= */
button#mariadeprma-back-to-top {
  padding: 0px;
  color: green;
}

/* =========================================================
   📩 Contact Form 7 (CF7)
   ========================================================= */
form.wpcf7-form.init {
  display: flex;
  flex-wrap: wrap;
}

form.wpcf7-form.init p {
  max-width: 100%;
  margin: 10px;
}



.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea {
  /**  width: 100%;  **/
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus {
  border-color: #0073e6;
}

.wpcf7-submit {
  background-color: #0073e6;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
  background-color: #005bb5;
}

.wpcf7-response-output {
  font-size: 14px;
  color: #4caf50;
  margin-top: 20px;
}

.wpcf7-response-output.wpcf7-validation-errors {
  color: #f44336;
}

.wpcf7-form-control-wrap.two-columns {
  flex: 0 0 48%;
  margin-right: 4%;
}

@media (max-width: 768px) {
  .wpcf7-form-control-wrap.two-columns {
    flex: 0 0 100%;
    margin-right: 0;
  }

  form.wpcf7-form.init p {
    max-width: 100%;
    margin: 10px;
  }

  form.wpcf7-form.init {
    display: block;
  }
}

.hidden-fields-container {
  display: none;
}

form .wpcf7-form p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

form .wpcf7-form p label {
  width: 45%;
}

form .wpcf7-form p input,
form .wpcf7-form p textarea {
  width: 45%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form .wpcf7-form p textarea {
  width: 45%;
  height: 100px;
}

form .wpcf7-form p input[type="submit"] {
  width: auto;
  margin-top: 10px;
}

/* =========================================================
   🧩 Misc / Product tweaks
   ========================================================= */
li.product.status-publish.first.instock.product_cat----ar.has-post-thumbnail.shipping-taxable.product-type-simple {
  margin-left: 0px;
  margin-right: 0px;
}

.single-product-page1 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

h2.woocommerce-loop-category__title {
  width: 100%;
}

.product_meta {
  display: none;
}

/* Fixed table LTR */
.fixed-table {
  direction: ltr !important;
  text-align: left !important;
}
.fixed-table table {
  direction: ltr !important;
}
.fixed-table table td,
.fixed-table table th {
  text-align: left !important;
  direction: ltr !important;
}

/* Product gallery images */
.woocommerce div.product div.images img {
  display: block;
  width: 100%;
  max-height: 330px;
  box-shadow: none;
  height: 180px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
  width: 22%;
  display: inline-block;
  margin: 5px;
}


/* =========================================================
   ✅ CF7 Contact Form Styling (Modern + Responsive)
   Works with: .cf7-contact-form .cf7-row
   ========================================================= */

.cf7-contact-form{
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* spacing between rows */
.cf7-contact-form .cf7-row{
  margin-bottom: 14px;
}

/* labels */
.cf7-contact-form label{
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #111827;
}

/* inputs + textarea + select */
.cf7-contact-form .wpcf7-form-control:not(.wpcf7-submit){
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: #f9fafb;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #111827;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* textarea */
.cf7-contact-form textarea.wpcf7-form-control{
  min-height: 140px;
  resize: vertical;
}

/* focus */
.cf7-contact-form .wpcf7-form-control:not(.wpcf7-submit):focus{
  background: #fff;
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

/* placeholder */
.cf7-contact-form .wpcf7-form-control::placeholder{
  color: rgba(17,24,39,.45);
}

/* select arrow fix a bit */
.cf7-contact-form select.wpcf7-form-control{
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(17,24,39,.55) 50%),
    linear-gradient(135deg, rgba(17,24,39,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* acceptance checkbox row */
.cf7-contact-form .wpcf7-acceptance{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cf7-contact-form .wpcf7-acceptance input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #3b82f6; /* modern browsers */
}

.cf7-contact-form .wpcf7-acceptance .wpcf7-list-item-label{
  font-size: 13px;
  color: rgba(17,24,39,.75);
  line-height: 1.5;
}

/* submit button */
.cf7-contact-form .wpcf7-submit{
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #111827;
  color: #fff;
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 12px 26px rgba(17,24,39,.18);
}

.cf7-contact-form .wpcf7-submit:hover{
  opacity: .96;
  box-shadow: 0 14px 30px rgba(17,24,39,.22);
}

.cf7-contact-form .wpcf7-submit:active{
  transform: translateY(1px);
}

/* CF7 response messages */
.cf7-contact-form .wpcf7-response-output{
  margin: 14px 0 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
}

/* success */
.cf7-contact-form form.sent .wpcf7-response-output{
  border: 1px solid rgba(34,197,94,.25);
  background: rgba(34,197,94,.10);
  color: #14532d;
}

/* error */
.cf7-contact-form form.invalid .wpcf7-response-output,
.cf7-contact-form form.failed .wpcf7-response-output,
.cf7-contact-form form.aborted .wpcf7-response-output{
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  color: #7f1d1d;
}

/* field error message */
.cf7-contact-form .wpcf7-not-valid-tip{
  margin-top: 8px;
  font-size: 13px;
  color: #b91c1c;
}

/* invalid fields */
.cf7-contact-form .wpcf7-not-valid{
  border-color: rgba(239,68,68,.55) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.10) !important;
  background: #fff;
}

/* spinner */
.cf7-contact-form .wpcf7-spinner{
  display: block;
  margin: 10px auto 0;
}

/* Responsive */
@media (max-width: 520px){
  .cf7-contact-form{
    padding: 16px;
    border-radius: 14px;
  }
  .cf7-contact-form label{
    font-size: 13px;
  }
  .cf7-contact-form .wpcf7-form-control:not(.wpcf7-submit){
    font-size: 14px;
    padding: 11px 12px;
  }
}

/* Optional: better spacing for RTL pages */
html[dir="rtl"] .cf7-contact-form select.wpcf7-form-control{
  background-position:
    18px calc(50% + 2px),
    12px calc(50% + 2px);
  padding-right: 14px;
  padding-left: 40px;
}
