#gform_wrapper_1 {
    padding: 1.25rem;
    background: var(--color-cream-base, #F7F4EE);
    border-radius: 10px;
}
#gform_wrapper_1 .gform_description {
    font-family: var(--h2-font-family, inherit);
    font-size: var(--fs-h3);
    line-height: 1.1;
    font-weight: 600;
    color: var(--color-content-heading);
}

#gform_wrapper_2 {
    padding: 1.25rem;
    background: var(--color-cream-light, #FCFBF8);
    border-radius: 10px;
}
#gform_wrapper_2 .gform_description {
    font-family: var(--h2-font-family, inherit);
    font-size: var(--fs-h3);
    line-height: 1.1;
    font-weight: 600;
    color: var(--color-content-heading);
}

.gform_wrapper.gravity-theme .gform_footer button,
.gform_wrapper.gravity-theme .gform_footer input,
.gform_wrapper.gravity-theme .gform_page_footer button,
.gform_wrapper.gravity-theme .gform_page_footer input {
    margin-bottom: 0 !important;
}

[type=submit].gform_button,
.woocommerce [type=submit].gform_button {
    height: 38px!important;
    padding-top: 0!important;
    padding-bottom: 0!important;
}

/* =========================================
   Gravity Form Horizontal Layout
   ========================================= */

/* One row layout */
.valuation-form .gform_fields {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: 0;
}

/* All fields */
.valuation-form .gfield {
	flex: 1 1 0;
	margin: 0 !important;
	min-width: 0;
}

/* Submit button field */
.valuation-form #field_submit {
	flex: 0 0 auto;
}

/* Button */
.valuation-form #gform_submit_button_4 {
	height: 100%;
	white-space: nowrap;
	margin: 0 !important;
}

/* Mobile */
@media (max-width: 1023px) {
	.valuation-form .gform_fields {
		flex-wrap: wrap !important;
	}

	.valuation-form .gfield {
		flex: 1 1 100%;
	}
}

.valuation-form .gform_footer {
    margin: 0!important;
    padding: 0!important;
}

.valuation-form .gform-button--white {
    font-style: normal;
    text-transform: none;
    font-size: 1rem;
    line-height: 1.15 !important;
    font-weight: 700;
    letter-spacing: 0em;
    padding: 0.8em 1.6em;
    transition-duration: 0.3s;
    border-radius: 8px;
    transition-timing-function: ease;
    --btn-height: calc(1.15em + 2 * 0.8em);
    --btn-border-width: 0px;
    --btn-background: var(--color-gold-base);
    --btn-hover-background: var(--color-green-base);
    background: var(--btn-background, transparent);
    border-color: var(--btn-border-color, transparent);
    border-image: none;
    color: var(--color-cream-light) !important;
}

.no-touch .valuation-form .gform-button--white:hover {
    background: var(--btn-hover-background, transparent);
    border-color: var(--btn-hover-border-color, transparent);
    border-image: none;
    color: var(--color-cream-light) !important;
}

.valuation-form .gform-button--white {
    height: 38px;
    padding-top: 0;
    padding-bottom: 0;
}

.villa-search-form {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 1rem;
	width: 100%;
}

.villa-search-form select,
.villa-search-form input {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	height: 38px;
	margin: 0;
	padding: 0 1rem;
	border: 1px solid #d7d7d7;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font-size: 1rem;
	line-height: 1.15;
	box-sizing: border-box;
}

.villa-search-form input::placeholder {
	color: #999;
	opacity: 1;
}

.villa-search-form button {
	flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin: 0;
    padding: 0 1.6em;
    border: 0;
    border-radius: 8px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.villa-search-form button:hover {
	background: var(--color-green-base);
	color: var(--color-cream-light);
}

@media (max-width: 1023px) {
	.villa-search-form {
		flex-wrap: wrap;
	}

	.villa-search-form select,
	.villa-search-form input,
	.villa-search-form button {
		flex: 1 1 100%;
		width: 100%;
	}
}

/* property serch form */
.property-search-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
}

.property-search-form select,
.property-search-form input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 1rem;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font-size: 1rem;
    line-height: 1.15;
    box-sizing: border-box;
}

.property-search-form input::placeholder {
    color: #999;
    opacity: 1;
}

.property-search-form button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin: 0;
    padding: 0 1.6em;
    border: 0;
    border-radius: 8px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.property-search-form button:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tablet ≤ 991px — wrap into 2 columns */
@media (max-width: 991px) {
    .property-search-form {
        flex-wrap: wrap;
    }

    .property-search-form select,
    .property-search-form input {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .property-search-form button {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Mobile ≤ 478px — single column */
@media (max-width: 478px) {
    .property-search-form select,
    .property-search-form input,
    .property-search-form button {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* newsletter form */
.newsletter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form .gform_body {
    flex: 1;
}

.newsletter-form .gform_fields {
    margin: 0;
}

.newsletter-form .gfield {
    margin: 0;
    padding: 0;
}

.newsletter-form .ginput_container_email input {
    width: 100%;
    margin: 0;
}

.newsletter-form .gform_footer {
    margin: 0!important;
    padding: 0!important;
    flex-shrink: 0;
}

.newsletter-form .gform_button {
    white-space: nowrap;
    margin: 0;
}

.gform_confirmation_message {
    color: var(--color-green-base, #1F4D43);
    line-height: var(--lh-snug);
    font-size: var(--fs-h6);
    text-align: center;
}

.gform_confirmation_message_5 {
    color: var(--color-cream-base, #F7F4EE);
    line-height: var(--lh-snug);
    font-size: var(--fs-h6);
}