.sample-forms-banner {
    & .wp-block-group__inner-container {
        position: relative;
        padding-top: 6rem;
        padding-bottom: 4rem;
        padding-left: 80px;
        padding-right: 80px;
    }

    & .wp-block-image {
        position: absolute;
        inset: 0;
        margin: 0;
        z-indeX: -1;

        & img {
            height: 100%;
            width: 100%;
            object-fit: cover;
            object-position: center;
        }
    }

    & .wp-block-columns {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        background-color: #ffffffe6;
        padding: 4rem 3.5rem;
        margin-bottom: 0;
        align-items: center !important;

        & .wp-block-column:first-child {
            p {
                text-transform: uppercase;
                margin: 0;
                font-size: 1.5rem;
            }
        }

        & .wp-block-column:last-child {
            display: flex;
            justify-content: flex-end;

            & .wp-element-button {
                margin-top: 0;
            }
        }
    }
}

.sample-forms-listing {
    background-color: #F8FAF5;

    & .wp-block-group__inner-container {
        position: relative;
        padding-top: 6rem;
        padding-bottom: 6rem;
        padding-left: 80px;
        padding-right: 80px;
    }

    & .wp-block-columns {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        margin-bottom: 0;
    }

    & .wp-block-column {
        h2 {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
        }

        p {
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }
    }
}

/* =========================================================
   Sample Forms – front-end styles
   ========================================================= */

/* Wrapper */
.sf-wrapper {
	padding: 0;
}

/* ── Controls bar ── */
.sf-controls {
	display: flex;
	gap: 12px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.sf-search-wrap {
	flex: 1;
	min-width: 200px;
	max-width: 480px;
	position: relative;
	display: flex;
	align-items: center;
}

.sf-search-wrap input[type="text"] {
	width: 100%;
	padding: 9px 36px 9px 14px;
	font-size: 15px;
	border: 1px solid #E5E5E5;
	background: #fff;
	color: #757575;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.sf-search-wrap input[type="text"]:focus {
	border-color: #888;
}

#sf-search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	line-height: 1;
	font-size: 18px;
	color: #999;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

#sf-search-clear:hover {
	color: #333;
}

.sf-sort-wrap {
	display: flex;
	gap: 0;
}

.sf-sort-btn {
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid #E5E5E5;
	background: #fff;
	color: #757575;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	line-height: 1;
}

.sf-sort-btn:first-child {
    border-right: none;
}

.sf-sort-btn.active {
	background: #EFEEEA;
	color: #757575;
	border-color: #E5E5E5;
}

.sf-sort-btn:hover:not(.active) {
	background: #f4f4f4;
}

/* ── Grid ── */
.sf-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	min-height: 80px;
}

.sf-loading {
	grid-column: 1 / -1;
	text-align: center;
	color: #888;
	padding: 32px 0;
	font-size: 15px;
}

.sf-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: #666;
	padding: 32px 0;
}

/* ── Card ── */
.sf-card {
	background: #fff;
	border: 1px solid #E5E5E5;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.5rem 1.5rem 1.5rem;
	transition: box-shadow 0.2s;
}

.sf-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sf-card-body {
	flex: 1;
}

.sf-card-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #5063A9;
	margin: 0 0 1.25rem;
	line-height: 1.35;
}

.sf-card-desc {
	font-size: 14px;
	color: #121212;
	line-height: 1.55;
	margin: 0 0 1.5rem;
}

/* ── Card footer & buttons ── */
.sf-card-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 1.5rem;
	border-top: 1px solid #E5E5E5;
}

.sf-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 13px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 50px;
	border: 1.5px solid #5063A9;
	color: #5063A9;
	background: #fff;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
	cursor: pointer;
}

.sf-btn:hover {
	background: #4040a0;
	color: #fff;
	text-decoration: none;
}

.sf-btn-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	stroke: currentColor;
}

/* Online form button – filled */
.sf-btn--online {
	background: #5063A9;
	color: #fff;
	border-color: #5063A9;
}

.sf-btn--online:hover {
	background: #1e1e42;
	border-color: #1e1e42;
	color: #fff;
}

/* ── Load more ── */
.sf-loadmore-wrap {
	text-align: center;
	margin-top: 40px;
}

#sf-loadmore {
padding: 1rem 2.5rem;
  border: 1px solid #4B63AE;
  border-radius: 100px;
  background: #4B63AE;
  color: #FFF;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

#sf-loadmore:hover {
    color: #4B63AE;
    border: 1px solid #4B63AE;
    background: #ffffff;
}

#sf-loadmore:disabled {
	display: none;
}

@media only screen and (max-width: 1279px) {

	.sample-forms-banner {
		& .wp-block-group__inner-container {
			padding-left: 20px;
			padding-right: 20px;
		}
	}

	.sample-forms-listing {
		& .wp-block-group__inner-container {
			padding-left: 20px;
			padding-right: 20px;
		}
	}
}

/* ── Responsive ── */
@media ( max-width: 900px ) {
	.sf-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media ( max-width: 600px ) {
	.sf-grid {
		grid-template-columns: 1fr;
	}

	.sf-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.sf-sort-wrap {
		justify-content: flex-start;
	}
}
