/*
 Theme Name:   Wheadons Removals
 Theme URI:    https://www.ngudigital.co.uk
 Description:  A Divi Child Theme for Wheadons Removals.
 Author:       NGU Digital
 Author URI:   https://www.ngudigital.co.uk
 Template:     Divi
 Version:      1.0.0
*/

/* Add your custom CSS below */

body.home .et-l--header{
	display:none!important;
}


/* --- Container & General Layout --- */
.wheadons-steps {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    font-family: inherit;
}

/* --- Progress Bar --- */
.cf7-progress {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    position: relative;
}

.cf7-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.cf7-progress li {
    background: #fff;
    width: 30px;
    height: 30px;
    line-height: 26px; 
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    text-align: center;
    font-weight: bold;
    color: #999;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Active Steps - Uses Divi Primary Color */
.cf7-progress li.active {
    border-color: var(--et_pb_color_primary, #e02b20); /* Fallback to red */
    background: var(--et_pb_color_primary, #e02b20);
    color: #fff;
}

/* --- Step Visibility Logic (FIXED) --- */
.cf7-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cf7-step.is-active {
    display: block;
    opacity: 1 !important; /* Force visibility */
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Field Styling with Icons (FIXED) --- */
.field {
    margin-bottom: 20px;
    position: relative;
}

/* Input padding to make room for icon */
.field input, 
.field select, 
.field textarea {
    width: 100%;
    padding-left: 35px !important; /* Space for icon */
    padding-right: 15px;
    padding-top: 12px;
    padding-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: auto;
    min-height: 45px; /* Ensure uniform height */
}

/* Icon Container - Perfectly Centered */
.field .icon {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45px; /* Match input padding */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

/* Force Icon Size Small */
.field .icon i,
.field .icon span,
.field .icon .et-pb-icon {
    font-size: 18px !important; /* strict size control */
    line-height: 1 !important;
    color: #888;
}

/* Specific fix for textareas */
.field.textarea-icon .icon {
    bottom: auto;
    top: 15px; /* Stick to top */
    height: auto;
}

.field label.field-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em;
}

/* --- Buttons (FIXED: Inline) --- */
.step-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: row; /* Force row */
    align-items: center;
    gap: 15px; /* Space between buttons */
}

.step-actions.between {
    justify-content: flex-start; /* Align left */
}

.wbtn {
    display: inline-block;
    padding: 12px 30px;
    /* Use DIVI Variable */
    background-color: var(--et_pb_color_primary, #e02b20) !important;
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s;
    line-height: 1.2;
}

.wbtn--ghost {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

.wbtn:hover {
    opacity: 0.9;
}

/* Grid layout */
.grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .grid.two { grid-template-columns: 1fr; }
}

span.wpcf7-not-valid-tip {
    font-size: 0.8em;
    position: absolute;
    bottom: -20px;
    left: 0;
}


/* Title Text "Request a Call Back" */
.callback-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
}



/* Hide the original icon */
.footer-phone-icon {
    color: #f7d702;
    font-size: 21px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    left: 15px;
}

/* The Input Field */
.footer-callback-form input[type="tel"] {
    background: #682d40;
    border: none;
    color: #ffffff;
    flex-grow: 1; /* Fills the available space */
    font-size: 16px;
    outline: none;
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid white;
    border-radius: 37px;
}

/* Placeholder Text Color */
.footer-callback-form input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* The "SUBMIT" Button */
.footer-callback-form input.footer-btn {
    background-color: #f7d702;
    color: #682d40;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: bold;
    position:absolute;
    right:0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    right: 8px;
}

/* Button Hover Effect */
.footer-callback-form input.footer-btn:hover {
    background-color: #f0f0f0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-callback-wrap {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .footer-callback-form {
        margin: 0 auto; /* Center the form */
    }
}

.wpcf7 .screen-reader-response {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}

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

.wpcf7 form .wpcf7-response-output {
	margin: 2em 0.5em 1em;
	padding: 0.2em 1em;
	border: 2px solid #00a0d2; /* Blue */
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #46b450; /* Green */
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #dc3232; /* Red */
}

.wpcf7 form.spam .wpcf7-response-output {
	border-color: #f56e28; /* Orange */
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #ffb900; /* Yellow */
}

.wpcf7-form-control-wrap {
	position: relative;
}

.wpcf7-not-valid-tip {
	color: #dc3232; /* Red */
	font-size: 1em;
	font-weight: normal;
	display: block;
}

.use-floating-validation-tip .wpcf7-not-valid-tip {
	position: relative;
	top: -2ex;
	left: 1em;
	z-index: 100;
	border: 1px solid #dc3232;
	background: #fff;
	padding: .2em .8em;
	width: 24em;
}

.wpcf7-list-item {
	display: inline-block;
	margin: 0 0 0 1em;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
	content: " ";
}

.wpcf7-spinner {
	visibility: hidden;
	display: inline-block;
	background-color: #23282d; /* Dark Gray 800 */
	opacity: 0.75;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 100%;
	padding: 0;
	margin: 0 24px;
	position: relative;
}

form.submitting .wpcf7-spinner {
	visibility: visible;
}

.wpcf7-spinner::before {
	content: '';
	position: absolute;
	background-color: #fbfbfc; /* Light Gray 100 */
	top: 4px;
	left: 4px;
	width: 6px;
	height: 6px;
	border: none;
	border-radius: 100%;
	transform-origin: 8px 8px;
	animation-name: spin;
	animation-duration: 1000ms;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
	.wpcf7-spinner::before {
		animation-name: blink;
		animation-duration: 2000ms;
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes blink {
	from {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.wpcf7 [inert] {
	opacity: 0.5;
}

.wpcf7 input[type="file"] {
	cursor: pointer;
}

.wpcf7 input[type="file"]:disabled {
	cursor: default;
}

.wpcf7 .wpcf7-submit:disabled {
	cursor: not-allowed;
}

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

.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
	direction: ltr;
}

.wpcf7-reflection > output {
	display: list-item;
	list-style: none;
}

.wpcf7-reflection > output[hidden] {
	display: none;
}
