/**
 * Frontend styles for the Gravity Forms Field Wrapper plugin.
 *
 * Styles the wrapping card that groups fields between a "Wrapper Start"
 * and "Wrapper End" field.
 */

.hmw-gf-field-wrapper {
    --bs-primary: var(--bs-secondary);
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    row-gap: var(--gf-form-gap-y);
    width: 100%;
	background-color: #ffffff;
	border: 1px solid #ddd8d2;
	border-radius: 16px;
	padding: 30px;
}

.hmw-gf-field-wrapper.hmw-gf-wrapper-hidden {
	display: none !important;
}

/* Header bar: sticks to the top of the card, bypassing the 30px padding. */
.hmw-gf-field-wrapper__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: -30px -30px 30px;
	padding: 16px 24px;
	background: rgba(0, 144, 154, 0.31);
	border-bottom: 1px solid #ddd8d2;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Number badge: white circle wrapping the number from the first <span>. */
.hmw-gf-field-wrapper__number {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background: #ffffff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	color: #000000;
	text-align: center;
}

/* Card title. */
.hmw-gf-field-wrapper__label {
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: #000000;
}

/*
 * Section breaks inside a wrapper card.
 * Styled to match the reference design: a teal accent bar on the left,
 * a bold black heading, and a lighter gray sub-description.
 */
.hmw-gf-field-wrapper .gsection {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem !important;
	margin: 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid #2e8b9a;
	background-color: transparent;
	border-top: none;
	border-right: none;
	border-bottom: none;
	border-radius: 0;
}

.hmw-gf-field-wrapper .gsection .gsection_title {
	margin: 0;
	padding: 0 !important;
	font-size: 22px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: -0.2px;
	color: #000000;
	border: none !important;
}

.hmw-gf-field-wrapper .gsection .gsection_description {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #9ca3af;
	border: none;
}
