/*
Theme Name: NGU Digital
Template: Divi
*/

/* --- Form Container --- */
.custom-cf7-form {
    max-width: 450px;
    margin: 0 auto;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

/* --- Field Wrapper Styling --- */
.form-field-wrapper {
    position: relative;
    background-color: #fff;
    border: 1px solid #eaeaea; 
    border-radius: 8px;        
    margin-bottom: 12px;
    padding: 0;
    transition: all 0.3s ease;
}

/* Highlight the top Name field */
.form-field-wrapper.name-field input {
    font-weight: 600;
    color: #000;
}

/* --- Input Fields --- */
.custom-cf7-form input[type="text"],
.custom-cf7-form input[type="email"],
.custom-cf7-form input[type="tel"],
.custom-cf7-form input[type="date"] {
    width: 100%;
    background: transparent;
    border: none !important;
    outline: none !important;
    /* 50px Padding on LEFT to make room for SVG */
    padding: 16px 20px 16px 50px; 
    font-size: 14px;
    color: #666;
    border-radius: 8px;
    box-sizing: border-box;
}

/* --- Textarea --- */
.custom-cf7-form textarea {
    width: 100%;
    background: transparent;
    border: none !important;
    outline: none !important;
    padding: 16px 20px; /* Normal padding, no icon */
    font-size: 14px;
    color: #666;
    border-radius: 8px;
    box-sizing: border-box;
    height: 100px;
    resize: none;
}

.custom-cf7-form ::placeholder {
    color: #999;
    opacity: 1;
}

/* --- Tooltip Styling -- */
.wpcf7-not-valid-tip {
    font-size: 0.85em;
    font-weight: normal;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    background: #dc323252;
    color: #dc3232;
    padding: .2em .7em;
    border-radius: 5px;
}

/* --- SVG Icon Styling --- */
/* This targets the <svg> tag directly */
.form-field-wrapper svg.field-icon {
    position: absolute;
    left: 15px;         /* Position on the left */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;        /* SVG Size */
    height: 20px;       /* SVG Size */
    fill: #aaa;         /* SVG Color */
    pointer-events: none; 
    z-index: 10;
}

/* --- Submit Button --- */
.custom-cf7-form input[type="submit"] {
    width: 100%;
    background-color: #cc3666; 
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    padding: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    -webkit-appearance: none;
}

.custom-cf7-form input[type="submit"]:hover {
    background-color: #a9254f;
    transform: translateY(-1px);
}

.wpcf7-spinner{
    display:none!important;
}

.form-field-wrapper:focus-within {
    border-color: #cc3666; 
}

/* Custom Service Styling */

body.single-service ul li{
	padding-bottom:12px!important;
}

body.single-service ul li:last-of-type{
	padding-bottom:0px!important;
}

/* --- 1. FORCE LIGHT MODE --- */
.custom-cf7-form { color-scheme: light; }

/* --- 2. PREVENT COLLAPSE (The Fix) --- */
/* We style the CONTAINER, not the Google element. 
   This ensures the box exists even if Google fails. */
.google-picker-box {
    min-height: fit-content;
    background-color: #ffffff;
    border-radius: 4px;
    position: relative; /* Anchors the GPS button */
    display: flex;
    align-items: center;
    width: 100%;
     /* Spacing */
}

/* --- 3. GOOGLE INPUT STYLING --- */
/* Make the Google element transparent so it fits inside our container */
gmp-place-autocomplete {
    background-color: transparent !important;
    width: 100%;
    border: 1px solid #bbbbbb69;
}
gmp-place-autocomplete::part(input) {
    background-color: transparent !important;
    color: #333333 !important;
    border: none !important; /* Remove google border, use container border */
    height: 48px !important;
    padding-left: 15px !important;
    padding-right: 40px !important; 
    box-shadow: none !important;
    font-size: 16px !important;
}
/* Hide the placeholder color to prevent clashing */
gmp-place-autocomplete::part(input)::placeholder {
    color: #757575 !important;
    opacity: 1 !important;
}

/* --- 4. GPS ICON BUTTON STYLING --- */
#gps-trigger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
    color: #cc3666;
    background: #fff; /* White bg covers text behind it */
    padding: 5px;
    border-radius: 50%;
    line-height: 0;
}
#gps-trigger:hover {
    transform: translateY(-50%) scale(1.1);
    background: #f0f0f0;
}

/* --- 5. HIDE THE DATA FIELDS SAFELY --- */
.cf7-hidden-data {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}