/*
 Theme Name:   HouzFix Child
 Theme URI:    https://housefix.wpengine.com/
 Description:  HouzFix Child Theme
 Author:       the WeDesignTech team
 Author URI:   https://wedesignthemes.com/
 Template:     housefix
 Version:      1.0.0
 Text Domain:  infintidev
*/
/* === MAIN WRAPPER === */
.plumbing-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px; 
  background: #fff;
  padding: 25px;
  border-radius: 6px;
  margin-top: 20px !important;
}

/* === CF7 <p> WRAPPER === */
.plumbing-form-row p {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px; /* spacing between fields inside <p> */
  align-items: center;
  width: 100%;
  margin: 0;
  position: relative;
}

/* === FIELD WRAPPER === */
.plumbing-form-row .wpcf7-form-control-wrap {
  position: relative; /* for error tip positioning */
  flex: 1 1 180px; /* allows shrink/grow */
  min-width: 0; /* avoid overflow inside flex */
}

/* === INPUTS & SELECTS === */
.plumbing-form-row input[type="text"],
.plumbing-form-row input[type="tel"],
.plumbing-form-row select,
.plumbing-form-row .select2-container .select2-selection--single {
  height: 50px;
  line-height: normal;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 15px;
  padding: 0 12px;
  background: #fff;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
}

/* === SELECT2 FIXES === */
.plumbing-form-row .select2-container {
  width: 100% !important;
}
.plumbing-form-row .select2-selection--single {
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}

/* === SUBMIT BUTTON === */
.plumbing-form-row input[type="submit"] {
  flex: 0 0 auto;
  background-color: #0073e6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 25px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.plumbing-form-row input[type="submit"]:hover {
  background-color: #005bb5;
}

/* === ERROR MESSAGES === */
.plumbing-form-row .wpcf7-not-valid-tip {
  position: absolute;
  left: 0;
  bottom: -20px; /* below input */
  font-size: 12px;
  color: #d93025;
  white-space: nowrap;
  pointer-events: none;
}

/* === REMOVE <br> spacing === */
.plumbing-form-row p br {
  display: none;
}


.wpcf7-form .wpcf7-response-output:before, .wpcf7 form .wpcf7-response-output:before{
	top:6px !important;
}

.plumbing-form-row input[type="submit"] {
	margin: 0 !important;
	background-color: #DC2626 !important;
}

.wpcf7-not-valid-tip{
	display: none !important;
}

/* === MOBILE STACKING === */
@media (max-width: 768px) {
  .plumbing-form-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .plumbing-form-row .wpcf7-form-control-wrap {
    flex: 1 1 calc(50% - 10px);
  }

.plumbing-form-row input[type="submit"] {
  width: 100%;
  height: 50px !important; 
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

  .plumbing-form-row p {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}


  .plumbing-form-row .wpcf7-not-valid-tip {
    position: static;
    margin-top: 4px;
  }


.plumbing-form-row .wpcf7-spinner{
	display: none;
}
}


/* This is the contact form normal servicec not emergency one.*/
/* Flex container per div .form-row */
.contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4%;
  margin-bottom: 15px;
}

/* Remove p default margin brenda form-row */
.contact-form .form-row p {
  margin: 0;
	display:flex;
  flex: 1 1 48%;
}



/* Dy fusha në një rrjesht */
.contact-form .form-row input,
.contact-form .form-row select {
  width: 100%;
  box-sizing: border-box;
}

/* Textarea full width */
.contact-form textarea {
  width: 100% !important;
}

@media (max-width: 768px) {
	
	#london-map{
		max-height: 50vh !important;
	}
	
  .contact-form {
    margin-left: -10px;
    margin-right: -10px;
  }
  .contact-form .form-row {
    gap: 2%; 
  }

  .contact-form .form-row p {
    flex: 1 1 49%;
  }
}


@keyframes pulseRed {
  0% {
    box-shadow: 0 0 0px rgba(255,0,0,0.5);
  }
  50% {
    box-shadow: 0 0 10px rgba(255,0,0,0.8);
  }
  100% {
    box-shadow: 0 0 0px rgba(255,0,0,0.5);
  }
}


@keyframes emergencyGlow {
  0% { box-shadow: 0 0 5px rgba(255,0,0,0.5); }
  50% { box-shadow: 0 0 20px rgba(255,0,0,1); }
  100% { box-shadow: 0 0 5px rgba(255,0,0,0.5); }
}

.emergency > div:first-child{
 border: 4px solid #ff0000;
  border-radius: 8px;
  animation: emergencyGlow 1.5s infinite;

}


/*Forma Contact!*/

@media (max-width: 767px) {
  .elementor-widget-shortcode,
  .wpcf7,
  .contact-form {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }

  .wpcf7 .select2-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contact-form .form-row p {
    width: 100%;
    margin: 0;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}


/*Faqs on service page*/

.faq-section {
  max-width: 800px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.faq-section h2 {
  text-align: center;
  color: #1a73e8;
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.faq-question {
  font-weight: 600;
  color: #333;
  font-size: 1.05em;
  margin-bottom: 5px;
}

.faq-answer {
  color: #555;
  line-height: 1.6;
  font-size: 0.98em;
}



.single-post .main-title-section-wrapper {
    display: none !important;
}

/*Post Styling issue*/
/* 1. Kontenieri Kryesor si Kartë (Premium Look) */
.single-post .single-entry-body {
    max-width: 800px;
    margin: 50px auto;
    padding: 60px 80px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.05); /* Hije shumë e lehtë dhe fine */
    line-height: 1.9;
    font-size: 20px;
    color: #333d47;
    border: 1px solid #f0f3f5;
}

/* Përshtatja për celularë */
@media (max-width: 768px) {
    .single-post .single-entry-body {
        padding: 30px 20px;
        margin: 20px 10px;
    }
}

/* 2. Shkronja e parë (Drop Cap) - Google e pëlqen stilin editorial */
.single-post .single-entry-body p:first-of-type::first-letter {
    font-size: 75px;
    font-weight: 900;
    float: left;
    margin-top: 8px;
    margin-right: 15px;
    line-height: 1;
    color: #0056b3;
    font-family: 'Playfair Display', serif; /* Ose Georgia */
}

/* 3. Titujt H2 me efekt modern */
.single-post .single-entry-body h2.wp-block-heading {
    font-size: 34px;
    font-weight: 800;
    color: #1a202c;
    margin-top: 60px;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.single-post .single-entry-body h2.wp-block-heading::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #e14d43; /* Ngjyra e brendit tënd */
    margin-right: 15px;
    border-radius: 3px;
    display: inline-block;
}

/* 4. Stilimi i Listës "Action Plan" - E bën shumë të lexueshme */
.single-post .single-entry-body ol.wp-block-list {
    background: #f8fbff;
    border: 1px dashed #0056b3;
    padding: 40px 50px 40px 70px;
    border-radius: 20px;
    position: relative;
    margin: 40px 0;
}

.single-post .single-entry-body ol.wp-block-list li {
    margin-bottom: 20px;
    font-weight: 500;
}

.single-post .single-entry-body ol.wp-block-list li strong {
    color: #0056b3;
}

/* 5. Efekti i Imazheve me Caption */
.single-post .single-entry-body figure {
    margin: 45px 0;
    text-align: center;
}

.single-post .single-entry-body figure img {
    border-radius: 15px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

.single-post .single-entry-body figure img:hover {
    transform: scale(1.03);
}

/* 6. Linket brenda tekstit (SEO friendly) */
.single-post .single-entry-body a:not(.post-edit-link) {
    color: #0056b3;
    font-weight: 700;
    text-decoration: none;
    background-image: linear-gradient(120deg, #e14d43 0%, #e14d43 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 100%;
    transition: background-size 0.25s ease-in;
}

.single-post .single-entry-body a:hover {
    background-size: 100% 88%;
    color: white !important;
}

/* 7. Seksioni i Kontaktit në fund */
.single-post .single-entry-body p:last-of-type {
    background: #1a202c;
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
}

.single-post .single-entry-body p:last-of-type a {
    color: #ffcc00 !important; /* Ngjyrë që bie në sy */
}

.single-post .post-meta{
	display: none !important;
}

/* Hierarkia e Titujve në proporcion Modular */

/* H1 - Titulli Kryesor i Faqes (zakonisht jashtë single-entry-body, por po e përfshijmë) */
.single-post h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #003366;
    letter-spacing: -1px;
}

/* H2 - Titujt e Seksioneve Kryesore */
.single-post .single-entry-body h2.wp-block-heading {
    font-size: 32px; /* Proporcion i balancuar me H1 */
    font-weight: 800;
    line-height: 1.25;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a202c;
}

/* H3 - Nëntitujt */
.single-post .single-entry-body h3.wp-block-heading {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #0056b3;
}

/* H4 - Titujt e vegjël brenda seksioneve */
.single-post .single-entry-body h4.wp-block-heading {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #333d47;
    text-transform: uppercase; /* I jep një pamje më "fancy" dhe i dallon nga paragrafët */
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .single-post h1 { font-size: 34px; }
    .single-post .single-entry-body h2.wp-block-heading { font-size: 28px; }
    .single-post .single-entry-body h3.wp-block-heading { font-size: 22px; }
    .single-post .single-entry-body h4.wp-block-heading { font-size: 19px; }
}

/*fix projects*/


/* 1. Kontenieri kryesor për Listings/Portofolio */
.single-wdt_listings .single-entry-body {
    max-width: 900px;
    margin: 40px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.04);
    line-height: 1.8;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

/* Dekorim anash për t'i dhënë karakter "Professional" */
.single-wdt_listings .single-entry-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #0056b3, #e14d43);
}

/* 2. Titujt në proporcion Modular (Fancy & Clean) */
.single-wdt_listings .single-entry-body h2 {
    font-size: 34px;
    font-weight: 800;
    color: #003366;
    margin-top: 45px;
    letter-spacing: -0.5px;
}

.single-wdt_listings .single-entry-body h3 {
    font-size: 26px;
    font-weight: 700;
    color: #e14d43; /* Ngjyra e kuqe e OnTime për të theksuar nëntitujt */
    margin-top: 30px;
}

/* 3. Stilimi i Listave (Procesi i Punës) */
.single-wdt_listings .single-entry-body ul {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
}

.single-wdt_listings .single-entry-body ul li {
    padding: 15px 20px;
    background: #fcfcfc;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.single-wdt_listings .single-entry-body ul li:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #0056b3;
}

.single-wdt_listings .single-entry-body ul li::before {
    content: "✓";
    color: #2ecc71;
    font-weight: bold;
    margin-right: 15px;
}

/* 4. Imazhet (Para dhe Pas) */
.single-wdt_listings .single-entry-body img {
    border-radius: 15px;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 30px 0;
}

/* 5. Readability & SEO */
.single-wdt_listings .single-entry-body p {
    font-size: 19px;
    margin-bottom: 25px;
    color: #444;
}

/* 6. Butoni i Kontaktit ose Linket në fund */
.single-wdt_listings .single-entry-body a:not(.post-edit-link) {
    display: inline-block;
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #e14d43;
    padding-bottom: 2px;
    transition: all 0.3s;
}

.single-wdt_listings .single-entry-body a:hover {
    color: #e14d43;
    border-bottom-color: #0056b3;
}