/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: A child theme for Hello Elementor
Author: Your Name
Author URI: https://yourwebsite.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-child
*/

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: #fff;
}

::-webkit-scrollbar-thumb {
    background-color: var(--e-global-color-primary);
    border-radius: 20px;
}


* {
  box-sizing: border-box;
  outline: none;
  margin: 0;
  padding: 0;
  direction: rtl;
}

body {
  direction: rtl;
  overflow: auto;
}

.flex {
  display: flex;
}

li {
  list-style: none;
}

button {
    font-family: "IRANSans", Sans-serif;
    font-weight:600;
}

.invisible {
  display: none;
}

.header-container {
  width: 100%;
  justify-content: center;
  flex-direction: column;
}

.upper-header-container {
  justify-content: center;
  align-items: center;
}

.upper-header {
  background-color: var(--e-global-color-primary);
  max-width: 1300px;
  width: 100%;
  padding: 10px;
}

.upper-header a {
  color: #fff;
  font-weight: 600;
}

.upper-header .icon {
  padding-left: 5px;
  fill: #fff;
  font-size: 15px;
}

.upper-header .icon svg {
  width: 15px;
}

.upper-header ul {
  gap: 20px;
  justify-content: center;
  flex-grow: 1;
}

.lower-header {
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #00AFB9;
  border-right: 1px solid #00AFB9;
  border-left: 1px solid #00AFB9;
  padding: 10px;
  border-radius: 0 0 10px 10px;
  background-color: white;
}

.posts p:has(img) {
    display: flex
;
    flex-direction: column;
    align-items: center;
}


.lower-header img {
  width: 130px;
}

.lower-header .menu {
  margin-right: 5px;
  justify-content: center;
  flex-grow: 1;
}

.lower-header .menu ul {
  flex-grow: 1;
  align-items: center;
}

.lower-header .menu li {
  align-items: center;
  padding: 0px 10px 0px 10px;
}

.lower-header .menu .menu-items {
  color: #181818;
  padding: 10px !important;
  padding-right: 6px !important;
  font-size: 16px;
  align-items: center;
}

.lower-header .menu .menu-items i {
  font-size: 15px;
  color: black;
  margin-left: 5px;
  margin-top: 5px;
}


.lower-header .menu .menu-items svg {
  width: 16px;
  height: 16px;
}

.lower-header .menu span {
  padding-left: 5px;
  display: flex;
}

.lower-header .menu .menu-items:hover {
  color: #00AFB9;
}

.lower-header .button-container a {
  flex-grow: 1;
  justify-content: center;
background-color: var(--e-global-color-accent);
padding: 14px;
font-weight: 600;
color: black;
}

.lower-header .sub-menu {
  flex-direction: column;
  flex-wrap: initial;
  justify-content: initial;
  align-items: initial;
  flex-basis: auto;
  flex-grow: 1;
  flex-shrink: 1;
  align-self: auto;
}

.lower-header .sub-menu-container {
  position: absolute;
  width: 1300px;
  background-color: white;
  top: 125px;
  right: 0;
}

.lower-header .sub-menu .sub-menu-header-container {
  background-color: var(--e-global-color-primary);
  padding: 10px;
}

.lower-header .sub-menu-header {


  font-family: "IRANSans", Sans-serif;
  font-weight: 600;
  justify-content: center;
  color: #FFF;
  font-size: 21px;
}

.lower-header .sub-menu .sub-menu-content {
  display: grid;
  place-items: center;
  gap: 27px 0 !important;
  border-bottom: 1px solid #00AFB9;
  border-right: 1px solid #00AFB9;
  border-left: 1px solid #00AFB9;
  border-radius: 0 0 10px 10px;
  padding: 20px 23px;
}

.lower-header .sub-menu .sub-menu-content a {
  border: 2px solid var(--e-global-color-primary);
  border-radius: 10px;
  padding: 5px;
  width: 67%;
  align-items: center;
}

.lower-header .sub-menu .sub-menu-content a:hover {
  transform: scale(1.1, 1.1);
  transition: 0.3s;
}

.lower-header .sub-menu .sub-menu-content .title {
  padding-right: 10px;
  color: black;
  font-size: 16px;
  font-weight: 600;
}

.lower-header .menu .agency-sub-menu-container {
  position: absolute;
  width: 1300px;
  top: 125px;
  right: 0;
  flex-direction: column;
}

.lower-header .menu .agency-sub-menu-container .sub-menu-header-container {
  background-color: var(--e-global-color-primary);
  padding: 10px;
}

.lower-header .menu .agency-sub-menu-container .list-container {
  padding: 10px 20px 20px 10px;
  flex-direction: column;
  gap: 10px;
}

.lower-header .menu .agency-sub-menu-container .list-container a {
  padding: 10px 20px;
  border-radius: 10px;
}

.lower-header .menu .agency-sub-menu-container .list-container a:hover {
  color: white !important;
  background-color: var(--e-global-color-accent);
  border-radius: 10px;
  transition: 0.7s;
}

.lower-header .menu .agency-sub-menu-container .agency-sub-menu-content {
  gap: 45px;
  background-color: white;
  border-bottom: 1px solid #00AFB9;
  border-right: 1px solid #00AFB9;
  border-left: 1px solid #00AFB9;
  padding: 10px;
  border-radius: 0 0 10px 10px;
}

/* تنظیمات برای حالت تبلت */
@media (max-width: 1024px) {
  .header-container {
    flex-direction: column;
    /* چینش عمودی */
  }

  .upper-header {
    flex-wrap: wrap;
    text-align: center;
    padding: 10px 5px;
  }

  .lower-header {
    gap: 0px;
    padding: 10px;
    align-items: center;
  }

  .lower-header .logo {
    width: 15%
  }

  .lower-header img {
    width: 120px;
    height: auto;
  }

  .lower-header .menu {
    align-items: center;
    margin: 0;
    width: 118%;
  }

  .lower-header .menu li {
    padding: 0;
  }

  .lower-header .menu .menu-items {
    font-size: 12px;
    padding: 5px !important;
  }

  .lower-header .sub-menu-container {
    right: -92px;
    top: 41px;
    width: 748px;
  }

  .lower-header .sub-menu .sub-menu-content {
    gap: 18px;
    padding: 14px;
  }

  .lower-header .sub-menu-header {
    font-size: 18px;
  }

  .lower-header .sub-menu .sub-menu-content .title {
    font-size: 12px !important;

  }

  .lower-header .sub-menu .sub-menu-content a {
    width: 91%;
  }

  .lower-header .sub-menu .sub-menu-content a .icon {
    font-size: 25px !important;
  }

  #agency1 {
    width: 748px;
    top: 41px;
    right: -172px !important;
  }

  #agency2 {
    width: 748px;
    top: 41px;
    right: -271px !important;
  }

  #agency2 .agency-sub-menu-content {
    gap: 16px;
  }

  #agency3 {
    width: 748px;
    top: 41px;
    right: -377px !important;
  }

  #agency4 {
    width: 748px;
    top: 41px;
    right: -482px !important;
  }

  .lower-header .menu .agency-sub-menu-container .list-container {
    padding: 0px;
  }

  .lower-header .menu .agency-sub-menu-container .list-container a {
    padding: 10px 6px;
    font-size: 14px;
  }

  .lower-header .menu .agency-sub-menu-container .agency-sub-menu-content {
    gap: 0;
    padding: 8px 3px 15px 0px;
  }

  .lower-header .button-container {
    width: 10%;
  }

  .lower-header .button-container a {
    font-size: 9px;
    text-align: center;
    padding: 10px 0px 10px 1px;
  }

  .comment-slider .swiper-slide {
    min-height: 400px;
    height: auto;
  }

  .comment-slider .review-text {
    font-size: 14px !important;
    line-height: 2.5 !important;
  }

  .comment-slider .user-photo {
    width: 60px !important;
    height: 60px !important;
  }
}


.form .wpforms-title {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
}

.form .wpforms-field {
  padding: 10px !important;
}

div.wpforms-container-full select:not([multiple])>option:not(.placeholder):checked {
  font-weight: 500 !important;
}

.contact-form select {
  -webkit-appearance: none !important;
}

.form .wpforms-field-large {
  border: none !important;
  background-color: #f0f0f1 !important;
  color: #322a2a;
  font-weight: 500 !important;
  font-size: 14px;
  appearance: auto;
}

.form .wpforms-field-large:focus {
  box-shadow: none !important;
}

.form .wpforms-submit-container {
  width: 100%;
  padding-right: 10px;
}

.form button {
  width: 100% !important;
  font-weight: 600 !important;
}


.comment-slider .swiper {
  width: 100%;
  max-width: 700px;
  margin: auto;
  cursor: grab;
}

.comment-slider .swiper-slide {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.5s ease;
  text-align: center;
  min-height: 345px;
}

.comment-slider .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  z-index: 3;
}

.comment-slider .swiper-slide-next,
.swiper-slide-prev {
  transform: scale(0.95);
  opacity: 0.8;
  z-index: 2;
}

.comment-slider .user-name {
  background: #7D83FF;
  color: white;
  padding: 5px 15px;
  border-radius: 8px 8px 20px 8px;
  display: inline-block;
  position: absolute;
  top: 0px;
  right: -6px;
  font-size: 14px;
}

.comment-slider .user-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 20px auto;
  border: 2px dashed #ccc;
}

.comment-slider .user-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-slider .stars {
  text-align: center;
  margin: 15px 0;
}

.comment-slider .stars i {
  color: #FFA500;
  font-size: 20px;
}

.comment-slider .review-text {
  text-align: justify;
  font-size: 15px;
  color: #555;
  margin-top: 10px;
  line-height: 2.8;
}


@media only screen and (max-width: 600px) {
  .form .wpforms-field-label {
    font-size: 13px !important;
  }
}

@media only screen and (max-width: 600px) {
  .form .wpforms-field-large {
    font-size: 13px !important;
  }
}

.contactus-card {
  background: linear-gradient(135deg, #f0f4ff, #ffffff);

}

.contactus-card {
  box-shadow: inset 20px 20px 20px rgba(0, 0, 0, 0.05), 25px 35px 20px rgba(0, 0, 0, 0.05), 25px 30px 30px rgba(0, 0, 0, 0.05), inset -20px -20px 25px rgba(255, 255, 255, 0.9);
  transition: 0.5s ease-in-out;
  border-radius: 50%;
}

.contactus-card:hover {

  transform: scale(1.05);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);

}

@media (max-width: 767px) {
  .contactus-card {
    height: 160px;
  }

  .contactus-card .elementor-flip-box__layer__overlay {
    height: 160px;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .aboutus-card-container {
    height: 200px;
  }
}

.aboutus-card-container .elementor-flip-box__layer {
  border-radius: 10px
}

@media (max-width: 767px) {
  .aboutus-card .elementor-flip-box__layer {
    height: 200px;
  }
}

.posts h2 {
  color: #303F9F !important;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 20px;
}

.posts h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8em;
  margin-bottom: 5px;
  color: #FF7400;
}

.posts h4 {
  color: #000 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6em;
  margin-bottom: 0;
  margin-top: 20px;
}

.posts h5 {
  color: #000 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6em;
  margin-bottom: 0;
  margin-top: 20px;
}

.posts p[style*="text-align: center"] {
    background-color: #f2f5f5;
    border-right: 6px solid var(--e-global-color-primary);
    margin: 10px 0;
    border-radius: 5px;
    padding: 6px;
    text-align: right !important;

}

.posts p[style*="text-align: center"] span {
  background-color: transparent !important;

}

.posts img {
  border-radius: 10px !important;
  margin-bottom: 10px;
  margin: auto;
    display: block;
}

.posts p {
  padding-top: 5px;
  padding-bottom: 5px;
  line-height: 2.4rem;
  margin-block-end: unset;
  margin-bottom: 5px;
}

.posts p span {
  font-size: 16px !important;
}

.posts a {
  font-size: 17px;
  color: #ab9522;
  font-weight: 600;
  background-color: transparent !important;
}

.posts ul {
  padding: 0px 7px 0px 7px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.posts ol {
  padding: 0px 7px 0px 7px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media only screen and (max-width: 600px) {
  .posts h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7em;
    margin-bottom: 0px;
    text-align: center;
    margin-top: 3px;

  }
}

@media only screen and (max-width: 600px) {
  .posts h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0px;
    margin-right: -4px;
    margin-left: -17px;
  }
}

@media only screen and (max-width: 600px) {
  .posts h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5em;
    margin-bottom: 0px;
    margin-right: -4px;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 600px) {
  .posts p {
    margin-bottom: 0px;
    margin-top: 3px;
  }

  .posts p[style*="text-align: center"] span {
    font-size: 12px !important;
    font-weight: 700;
  }
}

.posts ul li {
  display: flex;
  align-items: baseline;
  position: relative;
  padding: 5px 0px 5px 0px;
}

.posts ul li b {
  color: black;
}

.posts ol li {

  align-items: baseline;
  position: relative;
  padding: 5px 0px 5px 0px;
}

.posts ul li:before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #FE0207;
  border-radius: 50%;
  margin-left: 10px;
  border: 2px solid #FE0207;
}

#ez-toc-container {
  display: none;
}

.elementor-post__title {
  text-align: center;
}

.elementor-post__excerpt p {
  text-align: justify;
}

.lower-header .menu .menu-items .elementor-post__meta-data {
  padding: 15px 30px !important;
}

.form-container h2 {
font-size: 22px;
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
}


.form-row .form-group {
flex: 1;
min-width: 140px;
}

.form-group {
margin-bottom: 18px;
}

.form-group label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: #444;
}

.form-group textarea {
resize: vertical;
min-height: 70px;
}


.warranty-options {
display: flex;
gap: 20px;
flex-wrap: wrap;
margin-top: 8px;
}
.warranty-options label {
font-size: 14px;
display: flex;
align-items: center;
gap: 6px;
}

.form-actions {
display: flex;
justify-content: space-between;
gap: 15px;
margin: 25px 0 15px;
flex-wrap: wrap;
}

.icon-button {
flex: 1;
background-color: #eef3fc;
border: 1px solid #4a90e2;
color: #2d6cdf;
border-radius: 10px;
font-size: 16px;
padding: 12px;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
text-align: center;
}

.icon-button:hover {
background-color: #d0e3ff;
color: #1c4fb3;
}

.form-submit {
text-align: center;
}

.form-submit button:hover {
background-color: #3b7cc7;
}

@media (max-width: 540px) {
.form-row {
flex-direction: column;
}

.form-actions {
flex-direction: column;
}

.form-submit button {
width: 100%;
}
}

.input-with-button .input-wrapper {
position: relative;
display: flex;
}

.input-with-button .input-wrapper input,
.input-with-button .input-wrapper textarea {
padding-left: 40px;
padding-right: 12px;
width: 100%;
resize: vertical;
}

.inline-icon {
position: absolute;
left: 5px;
top: 50%;
transform: translateY(-50%);
background: #eef3fc;
border: 1px solid #4a90e2;
color: #2d6cdf;
font-size: 18px;
padding: 5px 10px;
border-radius: 8px;
cursor: pointer;
transition: 0.3s ease;
z-index: 2;
}

.inline-icon:hover {
background-color: #d0e3ff;
color: #1c4fb3;
}


.form-row {
display: flex;
gap: 15px;
flex-wrap: wrap;
}

.form-group {
margin-bottom: 20px;
flex: 1;
min-width: 180px;
}

label {
display: block;
margin-bottom: 6px;
font-weight: bold;
}

.required-label {
color: #d22;
font-size: 13px;
}

input,
select,
textarea {
    font-family: "IRANSans", Sans-serif;
width: 100%;
padding: 10px 14px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 14px;
box-sizing: border-box;
}

textarea {
resize: vertical;
}

.form-submit {
text-align: center;
margin-top: 20px;
}

.form-submit button:hover {
background-color: #3b7cd9;
}

#map-container {
display: none;
margin-top: 15px;
}

#map {
height: 320px;
width: 100%;
border-radius: 12px;
}

.map-toggle {
background-color: #eef3fc;
color: #2d6cdf;
padding: 10px 14px;
border: 1px solid #4a90e2;
border-radius: 8px;
cursor: pointer;
}

.map-toggle:hover {
background-color: #dce8ff;
}

.location-box {
border: 1px solid #e0e0e0;
border-radius: 8px;
overflow: hidden;
margin-bottom: 20px;
}

.map-box {
height: 220px;
}

.location-actions {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: #f9f9f9;
}

#my-location-btn {
    flex: 1 1 auto;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
        background-color: transparent;
        color: #c36;
        border: 1px solid #c36;
}

#my-location-btn:hover {
    color:black;
}

#location-status {
    font-weight: 600;
font-size: 14px;
padding: 5px 10px;
border-radius: 6px;
background-color: #e8f0fe;
color: #2d6cdf;
transition: background-color 0.3s, color 0.3s;
}

.status.success {
background-color: #4caf50 !important;
color: white !important;
}


.leaflet-control-geocoder {
margin-top: 8px;
margin-right: 10px;
font-size: 13px;
z-index: 1000;
border: none !important;
}

.leaflet-control-geocoder-alternatives {
text-align: left;
border-top: 1px solid black;
}

@media (max-width: 600px) {
.form-row {
flex-direction: column;
}
}


.dropdown.open {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}


.dropdown-container .list-container.open {
display: block;
overflow-y: auto;
}


.form-container h2 {
    font-size: 22px;
    text-align: center;
    color: #2c3e50;
        margin-top: 25px;
    margin-bottom: 30px;
}

.form-group {
    flex: 1;
    min-width: 250px; 
    display: flex;
    flex-direction: column;
}

.form-group label,
.form-guarentee label {
    display: block;
    font-weight: 600;
    color: #555;
}

.leaflet-control-attribution {
    display:none;
}

.required-label {
    color: #aaa;
    font-weight: normal;
    font-size: 12px;
}

.list {
    padding: 10px;
    cursor: pointer;
}

.list:not(:last-child) {
    border-bottom: 1px solid #ddd;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007cba; 
    outline: none;
}

.validation-error {
    color: #dc3232; 
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group input:invalid,
.form-group textarea:invalid {
    
}

.guarentee-row {
    margin-bottom: 15px;
}

.form-guarentee {
    width: 100%;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin-bottom: 0;
}

#map {
    width: 100%;
    height: 250px;
    background-color: #e9e9e9;
    margin-bottom: 10px;
    border-radius: 4px;
}

.location-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.location-actions button {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.location-actions button img {
    display:none !important;
}

.location-actions button#clear-location-btn {
    background-color: #dc3232;
}

.status.success {
    color: #46b450;
}

.dropdown-container {
    position: relative;
}

.dropdown {
display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid #ccc;
    appearance: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
}

.dropdown::after {
    content: '▼';
    font-size: 12px;
}

.dropdown-container .list-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background-color: #fff;
    z-index: 9999;
    padding: 10px;
}

#deviceSearchBox, #brandSearchBox {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #eee;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.form-submit button {
    width: 100%;
    padding: 12px 25px;
background-color: var(--e-global-color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit button:hover {
background-color: var(--e-global-color-primary);
}

#messageBox {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {

    .form-row {
        flex-direction: column;
        gap: 0; 
    }
    
    .form-group {
        min-width: 100%; 
        margin-bottom: 20px;
    }
    
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }

    .location-actions {
        flex-direction: column;
        align-items: stretch; 
        gap: 10px;
    }
    

    .form-submit button {
        width: 100%;
    }
    .form-row.no-stack {
        flex-direction: row; 
        gap: 15px;
    }
    #location-status {
        text-align:center;
    }
}