/**
Theme Name: Calvin Engineers Child Theme
Author: DataSpatz
Author URI: https://dataspatz.com
Description: Calvin Engineers Child Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calvin-engineers-child-theme
Template: blocksy
*/

/*
* Developer: CSS for [contact-form-7] - Home Page -> Book Free Appointments
 * 
*/ 

/* =================================================
*   [contact-form-7]: Home page -> Book Appointment
*   Desktop: 4 equal columns
*   ================================================ */


.cf7-bookappoint-row  {
  display: flex;
  column-gap: 1rem;
}


.cf7-bookappoint-row > p {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Home page - Book Appointment */
/* CF7 field wrapper */
.cf7-bookappoint-row .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* All form controls */
.cf7-bookappoint-row input[type="text"],
.cf7-bookappoint-row input[type="tel"],
.cf7-bookappoint-row select,
.cf7-bookappoint-row input[type="submit"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Change hover text color of Submit button */
.cf7-bookappoint-row input[type="submit"]:hover,
input.wpcf7-submit:hover {
    color: #192a3d !important; /* Change this to your preferred text color */
}


/* ==========================================
*   MOBILE / TABLET
*   ========================================== */

@media (max-width: 768px) {

	/* Home page - Book Appointment */
    .cf7-bookappoint-row  {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .cf7-bookappoint-row > p {
        width: 100% !important;
    }	
}




/**
 * --------
 */



/* ==========================================
*   [contact-form-7]: Contact us
*   Desktop: 4 columns in 2 rows
*   ========================================== */

.contactus-div {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.contactus-row {
  display: flex;
  column-gap: 1rem;
}

.contactus-row > p {
  width: 50% !important;  
}

.select-row p {
  margin-bottom: 25px !important;
 }



/* ==========================================
*   MOBILE / TABLET
*   ========================================== */

@media (max-width: 768px) {

.contactus-row {
  flex-direction: column !important;
}

.contactus-row > p {
  width: 100% !important;
  margin-block-end: 0;
  margin-top: 12px !important;;
}

.select-row p {
  width: 100% !important;
  margin-top: 12px !important;
  margin-bottom: 15px !important;
 }
}




/**
 * --------
 */


/* ==============================================
*   [contact-form-7]: Contact Us -> Newsletter
*   Desktop: 2 equal columns
*   ============================================== */


.cf7-newslettercontactus-row {
  display: flex;
  column-gap: 5rem;
}


.cf7-newslettercontactus-row > p {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* CF7 field wrapper */
.cf7-newslettercontactus-row .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* All form controls */
.cf7-newslettercontactus-row input[type="email"] {
   background-color: #ffffff;
	 min-width: 325px !important;
},
.cf7-bookappoint-row input[type="submit"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    margin: 0 !important;
!important;
    box-sizing: border-box !important;
}

/* Change hover text color of Submit button */
.cf7-newslettercontactus-row input[type="submit"]:hover,
input.wpcf7-submit:hover {
    color: #192a3d !important; /* Change this to your preferred text color */
}


/* ==========================================
*   MOBILE / TABLET
*   ========================================== */

@media (max-width: 768px) {

	/* Contact page - Newsletter */
    .cf7-newslettercontactus-row  {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .cf7-newslettercontactus-row > p {
        width: 100% !important;
    }	
}


/**
 * --------
 */


/* ==========================================
   Input and response messages
   ========================================== */


/* Styling Input Error Messages */
/* Invalid Input */
.wpcf7 .wpcf7-not-valid {
    border-color: #e74c3c;
}

/* Styling Response Messages After Submission */
/* Response - Success */
.wpcf7-form.sent .wpcf7-response-output {
    color: #27ae60;
    text-align: center;
    font-size: 18px;
    padding: 15px;
    margin-top: 0;
}

/* Response - Invalid Input */
.wpcf7-form.invalid .wpcf7-response-output {
    color: #dc3232;
    text-align: center;
    font-size: 18px;
    padding: 15px;
    margin-top: 12px;
}


/**
 * --------
 */

/* ==========================================
   Align text Left align on mobile phones
   Add class name to Advanve -> Additional CSS class section: left-align-text-in-mobile
   ========================================== */

@media screen and (max-width: 768px) {
  .left-align-text-in-mobile, 
  .left-align-text-in-mobile p, 
  .block-editor-block-list__layout {
    text-align: left !important;
  }
}


/**
 * --------
 */

/* ==========================================
   On mobile phones - Removing hover blue colour, setting grey shadow and dark blue border colur
                      Rest of the functionality is same as Desktop
   Specific innerColumn ID's are added here
   ========================================== */

@media (hover: none) {
    /* Home page */
	body .stk-hover-parent.stk-2b497b0-container:hover, 
    body .stk-hover-parent.stk-921618e-container:hover, 
    body .stk-hover-parent.stk-2907daf-container:hover,
	body .stk-hover-parent.stk-13e8e98-container:hover,
    body .stk-hover-parent.stk-d7a5fce-container:hover,
    body .stk-hover-parent.stk-24d73d2-container:hover,
	body .stk-hover-parent.stk-3d408c7-container:hover,
    body .stk-hover-parent.stk-f67f47b-container:hover, 
    body .stk-hover-parent.stk-d6d63bf-container:hover,
 
    /* Services page */
	body .stk-hover-parent.stk-175b4b8-container:hover, 
    body .stk-hover-parent.stk-2eba6da-container:hover, 
    body .stk-hover-parent.stk-c7ef109-container:hover, 
    body .stk-hover-parent.stk-12c9b55-container:hover, 
    body .stk-hover-parent.stk-d3909d0-container:hover, 
    body .stk-hover-parent.stk-eee2d02-container:hover, 
    body .stk-hover-parent.stk-4d8c454-container:hover, 
    body .stk-hover-parent.stk-81ff1ea-container:hover, 
    body .stk-hover-parent.stk-b3c74e6-container:hover, 
    body .stk-hover-parent.stk-b9dd427-container:hover, 
    body .stk-hover-parent.stk-51a5625-container:hover, 
    body .stk-hover-parent.stk-7b30ef3-container:hover,

	
	  /* About us page */
	body .stk-hover-parent.stk-386f252-container:hover,
    body .stk-hover-parent.stk-d7a5fce-container:hover,
    body .stk-hover-parent.stk-4f1a6f9-container:hover,
    body .stk-hover-parent.stk-d3f98eb-container:hover,
    body .stk-hover-parent.stk-ba62107-container:hover,
    body .stk-hover-parent.stk-c4688c3-container:hover {
        background-color: #ffffff !important;
		box-shadow: 0px 20px 80px 0px #d7dbe0 !important;
        border-color: #192A3D !important;
    }
}


/**
 * --------
 */

/* ==========================================
   Services page - FAQ - Styling Details (Accordion)
                   Background + right side icon + other style
   ========================================== */

summary {
  display: flex;
  justify-content: space-between;
}

summary::marker,
summary::-webkit-details-marker {
  display: none !important;
  content: "";	
}


summary::after {
	content: "";
	display: inline-block;
	height: 20px;
	width: 16px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url(https://demo2.calvinengineers.com/wp-content/uploads/2026/10/whte-down-arrow.png);
}

[open] summary::after {
	rotate: 180deg;
}

.accordion-group .details-content {
    margin-block-start: 0 !important;
    /* fix for jumpyness */
}

/**
 * --------
 */

/* ==========================================
   Contact us page - Download Brochure section - COMPANY PROFILE (Heading H6)
                     The H6 heading need to be right at the bottom + some pixel of the Image
                     This CSS make sure that the heading is at right place in both tablet and mobile
   ========================================== */


.img-heading-overlay {
  position: relative;
}

.img-heading-overlay .wp-block-heading {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  text-align: center;
  z-index: 2;
  width: 90%;
}

@media (max-width: 999px) {
  .img-heading-overlay .wp-block-heading {
    bottom: 25px;
    font-size: 24px;
  }
}

@media (max-width: 689px) {
  .img-heading-overlay .wp-block-heading {
    bottom: 20px;
    font-size: 20px;
    line-height: 1.3;
    width: 92%;
  }
}

/**
 * --------
 */
