/* ============================================================
   Enquiry Page
   File: your-theme/components/enquiry.css
   ============================================================ */

/* ── Enquire button ── */
.enquire-btn {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    background: #B42D33;
    padding: 29px;
    text-align: center;
    min-width: 300px;
    color: #fff !important;
    transition: all .3s;
    width: 100%;
}

.enquire-btn:hover {
	background: #8B2328;
}

@media (max-width: 1400px) and (min-width: 1025px) {

	.enquire-btn {
    	width: 100%;
    }

}

@media (max-width: 767px) {

	.enquire-btn {
    	min-width: initial;
        width: 100%;
    }

}

/* ── Hero ── */
.enquiry-hero {
    width: 100%;
    padding: 100px 50px 100px;
    background: linear-gradient(to bottom, #6DACDF, #4A7CAA) !important;
    display: flex !important;
    gap: 30px !important;
    flex-direction: column !important;
}

.enquiry-hero__label-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.enquiry-hero__divider {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 1);
    min-width: 0;
}

.enquiry-hero__label {
    white-space: nowrap;
    flex-shrink: 0;
}

.enquiry-hero__label {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 !important;
}

.enquiry-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-transform: capitalize;
}

.enquiry-hero__plot {
    display: inline;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .enquiry-hero {
        padding: 60px 20px;
    }
}


/* ============================================================
   HBP Contact Form
   ============================================================ */

.hbp-contact-form fieldset {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
}

.hbp-contact-form input {
    border: none !important;
    height: 60px !important;
    padding: 20px !important;
}

.hbp-contact-form label {
    color: #333 !important;
    font-family: "myriad-pro", sans-serif !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
}

.hbp-contact-form textarea {
    border: none !important;
    padding: 20px !important;
}

/* ── Field widths ── */

.hbp-contact-form .hbp_input {
    width: calc(50% - 15px) !important;
}

.hbp-contact-form .hbp_select {
    width: calc(50% - 15px) !important;
}

/* Textarea and development dropdown full width */
.hbp-contact-form .hbp_input:has(textarea) {
    width: 100% !important;
}

.hbp-contact-form .hbp_select:has(#hbp_development) {
    width: 100% !important;
}

/* ── Select styling ── */
.hbp-contact-form .hbp_select select {
    border: none !important;
    height: 60px !important;
    padding: 20px !important;
}

/* ── Checkboxes ── */
.hbp-contact-form .hbp_check {
    align-items: center !important;
    grid-template-columns: 40px 1fr !important;
    column-gap: 15px !important;
    width: calc(25% - 23px) !important;
}

.hbp-contact-form .hbp_check label {
    margin-bottom: 0 !important;
}

.hbp-contact-form .hbp_check input {
    height: 40px !important;
    width: 40px !important;
}

/* Privacy policy full width to force new row */
.hbp-contact-form .hbp_check:has(#hbp_privacyPolicyAccepted) {
    width: 100% !important;
    flex-basis: 100% !important;
}

/* ── Submit button ── */
.hbp-contact-form #hbp_submit {
    order: 25;
    width: 100% !important;
    max-width: 300px !important;
    flex: 0 0 100% !important;
    padding: 29px !important;
    margin-top: 10px !important;
}

/* ── Hidden fields ── */
.hbp-contact-form #hbp_nonce,
.hbp-contact-form input[name="_wp_http_referer"],
.hbp-contact-form #hbp_hiddendevelopment {
    order: 0;
    height: 0 !important;
    padding: 0 !important;
}

/* ── Field order ── */
.hbp-contact-form .hbp_input:has(#hbp_firstname)              { order: 1; }
.hbp-contact-form .hbp_input:has(#hbp_surname)                { order: 2; }
.hbp-contact-form .hbp_input:has(#hbp_contactemail)           { order: 3; }
.hbp-contact-form .hbp_input:has(#hbp_primarycontactnumber)   { order: 4; }
.hbp-contact-form .hbp_input:has(#hbp_addressLine1)           { order: 5; }
.hbp-contact-form .hbp_input:has(#hbp_addressLine2)           { order: 6; }
.hbp-contact-form .hbp_input:has(#hbp_addressLine3)           { order: 7; }
.hbp-contact-form .hbp_input:has(#hbp_county)                 { order: 8; }
.hbp-contact-form .hbp_input:has(#hbp_city)                   { order: 9; }
.hbp-contact-form .hbp_input:has(#hbp_postcode)               { order: 10; }
.hbp-contact-form .hbp_input:has(#hbp_budgetFrom)             { order: 11; }
.hbp-contact-form .hbp_input:has(#hbp_budgetTo)               { order: 12; }
.hbp-contact-form .hbp_select:has(#hbp_development)           { order: 13; }
.hbp-contact-form .hbp_input:has(#hbp_plot)                   { order: 14; }
.hbp-contact-form .hbp_select:has(#hbp_numberOfBeds)          { order: 15; }
.hbp-contact-form .hbp_select:has(#hbp_buyerPosition)         { order: 16; }
.hbp-contact-form .hbp_select:has(#hbp_schemeType)            { order: 17; }
.hbp-contact-form .hbp_input:has(#hbp_notes)                  { order: 18; }
.hbp-contact-form .hbp_FormMarketingTitle                      { order: 20; flex-basis: 100%; padding: 10px 0; text-transform: uppercase !important;}
.hbp-contact-form .hbp_check:has(#hbp_privacyPolicyAccepted)  { order: 19; }
.hbp-contact-form .hbp_check:has(#hbp_acceptsMarketing)       { order: 21; }
.hbp-contact-form .hbp_check:has(#hbp_acceptsTelCall)         { order: 22; }
.hbp-contact-form .hbp_check:has(#hbp_acceptsSMS)             { order: 23; }
.hbp-contact-form .hbp_check:has(#hbp_acceptsPOST)            { order: 24; }
.hbp-contact-form .hbp_success_msg                             { order: 26; }
.hbp-contact-form .hbp_status                                  { order: 27; }


@media (max-width: 767px) {
    .hbp-contact-form .hbp_input,
    .hbp-contact-form .hbp_select,
    .hbp-contact-form .hbp_check {
        width: 100% !important;
    }
    
    .hbp-contact-form #hbp_submit {
    	max-width: initial !important;
    }
}


/* Enquury success page back button */

.enquiry-submitted-message {
    width: fit-content;
    min-width: 300px !important;
}

.enquiry-submitted-message .elementor-shortcode {
	text-align: center;
}

.enquiry-submitted-message .elementor-shortcode a {
	padding: 29px;
    background: #B42D33;
    width: 100%;
	color: #fff;
    display: block !important;
    text-align: center;
    transition: all .3s;
}

.enquiry-submitted-message .elementor-shortcode a:hover {
	background: #8B2328;
}

@media (max-width: 767px) {

	.enquiry-submitted-message {
    	width: 100% !important;
    }

}


/* Enquire now page */

.enquire-card-email h3 a {
	text-transform: lowercase !important;
}

.enquiry-card-top {
	flex: 1 !important;
}

.enquiry-form {
	margin: 35px 0 0 !important;
}

.enquiry-form .wpforms-layout-row {
	gap: 10px !important;
}

.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
	border: none !important;
    border-radius: 0 !important;
}

.enquiry-form input[type = 'text'], .enquiry-form input[type = 'email'], .enquiry-form input[type = 'tel'], .enquiry-form select {
	height: 60px !important
}

.enquiry-form input[type = 'text'], .enquiry-form input[type = 'email'], .enquiry-form select,  .enquiry-form text-area {
	padding: 10px !important;
}

.enquiry-form label, .enquiry-form label a {
	margin-bottom: 10px !important;
    font-weight: 400 !important;
    font-family: "myriad-pro", sans-serif !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    line-height: 18px !important;
}

.enquiry-form input[type = "checkbox"] {
	width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
}

.enquiry-form .wpforms-field-checkbox label {
	margin-bottom: 0 !important;
}

.enquiry-form .wpforms-field-checkbox label a {
	text-decoration: underline !important;
}

.enquiry-form .wpforms-field-checkbox li {
	align-items: center !important;
}

.enquiry-form input[type = "checkbox"]::before {
	height: 40px !important;
    width: 40px !important;
}

.enquiry-form input[type = "checkbox"]::after {
	transform: translate(0, 1px) scale(1) rotate(-45deg) !important;
    left: calc(50% - 11.5px) !important;
    top: calc(50% - 13px) !important;
}

.enquiry-form .wpforms-submit-container {
	margin-top: 15px !important;
}

.enquiry-form-submit-btn {
	height: 80px !important;
    background: #B42D33 !important;
    border-radius: 0 !important;
    min-width: 300px !important;
}

.enquiry-form-submit-btn:hover {
	background: #8B2328 !important;
}

@media (max-width: 1550px) and (min-width: 1025px) {

	.enquiry-card-container {
    	width: 45% !important;
    }
    
    .enquiry-form-container {
    	width: 55% !important;
    }

}

@media (max-width: 1024px) {

	.enquiry-content-container .e-con-inner {
    	flex-direction: column-reverse !important;
	}
    
    .enquiry-card-container {
    	width: 100% !important;
    }
    
    .enquiry-form-container {
    	width: 100% !important;
    }
    
}

@media (max-width: 767px) {

	.enquiry-form-submit-btn {
    	width: 100% !important;
    }

}