/**
 * Yeldam Scope of Work form, styled like the Contact Us form
 * (.custom-contact-form): intro column + white card, 12px labels,
 * rounded 54px inputs, green pill button.
 */

.ysf {
	--ysf-green: #35a853;
	--ysf-green-dark: #2f994b;
	--ysf-green-soft: #eaf6ed;
	--ysf-ink: #032217;
	--ysf-text: #5f5e5b;
	--ysf-border: #e5e2dd;
	--ysf-radius: 12px;
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 60px) clamp(16px, 4vw, 40px);
	color: var(--ysf-ink);
	font-family: "Poppins", sans-serif;
}

.ysf *,
.ysf *::before,
.ysf *::after {
	box-sizing: border-box;
}

/* Intro column (like "Get in touch" on the Contact page) */
.ysf-intro {
	position: sticky;
	top: 120px;
}

.ysf-intro__eyebrow {
	margin: 0 0 12px;
	color: var(--ysf-green);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ysf-intro__title {
	margin: 0 0 18px;
	color: var(--ysf-ink);
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0.01em;
}

.ysf-intro__text {
	margin: 0 0 36px;
	color: #3e4a44;
	font-size: 16px;
	line-height: 1.6;
}

.ysf-info {
	display: grid;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ysf-info li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	color: var(--ysf-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.ysf-info small {
	display: block;
	margin-bottom: 6px;
	color: #3e4a44;
	font-size: 12px;
	font-weight: 400;
}

.ysf-info a {
	color: inherit;
	text-decoration: none;
}

.ysf-info a:hover {
	color: var(--ysf-green);
}

.ysf-info__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: 14px;
	border-radius: 50%;
	background: var(--ysf-green-soft);
	color: var(--ysf-green);
}

/* Card */
.ysf-card {
	padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2.4vw, 32px) clamp(24px, 3vw, 32px);
	border: 1px solid #efede9;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 24px rgba(3, 34, 23, 0.07);
}

.ysf-notice {
	margin-bottom: 22px;
	padding: 14px 16px;
	border-radius: var(--ysf-radius);
	font-size: 14px;
	line-height: 1.5;
}

.ysf-notice--ok { background: var(--ysf-green-soft); color: #1e6b33; border: 1px solid #bfe3c8; }
.ysf-notice--err { background: #fdecec; color: #8a1f1f; border: 1px solid #f2c2c2; }

/* Sections */
.ysf-section {
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid #f0eeea;
}

.ysf-sec-head {
	margin-bottom: 20px;
}

.ysf-eyebrow {
	display: block;
	margin-bottom: 4px;
	color: var(--ysf-green);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ysf-sec-title {
	margin: 0;
	color: var(--ysf-ink);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

/* Grid of fields */
.ysf-grid {
	display: grid;
	gap: 22px 30px;
	margin-bottom: 22px;
}

.ysf-grid--2,
.ysf-grid--meal {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ysf-grid--meal {
	align-items: start;
}

.ysf-fieldset {
	min-width: 0;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
}

.ysf-grid .ysf-fieldset {
	margin-bottom: 0;
}

/* Labels: as on the Contact form */
.ysf-label,
.ysf legend.ysf-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--ysf-ink);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
}

.ysf-field {
	display: block;
	margin-bottom: 22px;
}

.ysf-grid .ysf-field {
	margin-bottom: 0;
}

.ysf-field--short {
	max-width: 320px;
}

.ysf-field--inline .ysf-label {
	margin: 0 0 8px;
}

/* Inputs: as on the Contact form */
.ysf input[type="text"],
.ysf input[type="email"],
.ysf input[type="tel"],
.ysf input[type="number"],
.ysf textarea {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--ysf-border);
	border-radius: var(--ysf-radius);
	background: #fff;
	color: var(--ysf-text);
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	line-height: 20px;
	outline: none;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ysf textarea {
	height: 100px;
	padding: 15px 18px;
	resize: none;
}

.ysf input::placeholder,
.ysf textarea::placeholder {
	color: var(--ysf-text);
	opacity: 1;
}

.ysf input:focus,
.ysf textarea:focus {
	border-color: var(--ysf-green);
	box-shadow: 0 0 0 3px rgba(53, 168, 83, 0.12);
}

.ysf [aria-invalid="true"] {
	border-color: #dc3232 !important;
}

.ysf-money {
	position: relative;
	display: block;
}

.ysf-money > span {
	position: absolute;
	top: 50%;
	left: 18px;
	color: var(--ysf-text);
	font-size: 14px;
	transform: translateY(-50%);
	pointer-events: none;
}

.ysf .ysf-money input {
	padding-left: 34px;
}

/* Choice chips: rounded boxes like the inputs, green when ticked. */
.ysf-checks {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.ysf-grid--meal .ysf-checks {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ysf-check {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 14px;
	border: 1px solid var(--ysf-border);
	border-radius: var(--ysf-radius);
	background: #fff;
	color: var(--ysf-text);
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ysf-check:hover {
	border-color: var(--ysf-green);
}

.ysf-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ysf-box {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	border: 1.5px solid #c9c6c0;
	border-radius: 5px;
	background: #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ysf-check:has(input:checked) {
	border-color: var(--ysf-green);
	background: var(--ysf-green-soft);
	color: var(--ysf-ink);
	font-weight: 500;
}

.ysf-check input:checked + .ysf-box {
	border-color: var(--ysf-green);
	background: var(--ysf-green);
}

.ysf-check input:checked + .ysf-box::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

.ysf-check input:focus-visible + .ysf-box {
	box-shadow: 0 0 0 3px rgba(53, 168, 83, 0.25);
}

/* Tables: rounded, light borders, inputs inside the cells. */
.ysf-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ysf-border);
	border-radius: var(--ysf-radius);
}

.ysf-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: #fff;
	font-size: 14px;
}

.ysf-table th,
.ysf-table td {
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--ysf-border);
	vertical-align: middle;
}

.ysf-table tr > * + * {
	border-left: 1px solid var(--ysf-border);
}

.ysf-table tbody tr:last-child > *,
.ysf-table tfoot tr:last-child > * {
	border-bottom: 0;
}

.ysf-table thead th {
	padding: 12px 14px;
	background: #f7faf6;
	color: var(--ysf-ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	text-align: left;
}

.ysf .ysf-table input[type="text"],
.ysf .ysf-table input[type="number"] {
	height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.ysf .ysf-table input:focus {
	box-shadow: inset 0 0 0 2px rgba(53, 168, 83, 0.35);
}

.ysf-table--req thead label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
}

.ysf .ysf-table--req thead input[type="text"] {
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--ysf-border);
	border-radius: 8px;
	background: #fff;
	font-weight: 400;
}

.ysf-table--price th:nth-child(1) { width: 16%; }
.ysf-table--price th:nth-child(2) { width: 30%; }
.ysf-table--price th:nth-child(3) { width: 17%; }
.ysf-table--price th:nth-child(4) { width: 15%; }

.ysf-total,
.ysf-grand {
	display: block;
	padding: 0 12px;
	white-space: nowrap;
}

.ysf-total {
	color: var(--ysf-text);
}

.ysf-table--price tfoot th,
.ysf-table--price tfoot td {
	padding: 14px 12px;
	background: #f7faf6;
}

.ysf-table--price tfoot th {
	color: var(--ysf-ink);
	font-weight: 600;
	text-align: right;
}

.ysf-grand {
	padding: 0;
	color: var(--ysf-green-dark);
	font-size: 16px;
	font-weight: 600;
}

/* Submit: as "Send Message" on the Contact form */
.ysf-actions {
	padding-top: 4px;
}

.ysf .ysf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 220px;
	height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 50px;
	background: var(--ysf-green);
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.ysf .ysf-submit svg {
	transition: transform 0.25s ease;
}

.ysf .ysf-submit:hover,
.ysf .ysf-submit:focus-visible {
	background: var(--ysf-green-dark);
	color: #fff;
	transform: translateY(-1px);
}

.ysf .ysf-submit:hover svg {
	transform: translateX(4px);
}

/* Honeypot */
.ysf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Tablet */
@media (max-width: 1024px) {
	.ysf {
		grid-template-columns: 1fr;
	}

	.ysf-intro {
		position: static;
	}

	.ysf-info {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Phone */
@media (max-width: 767px) {
	.ysf-grid--2,
	.ysf-grid--meal,
	.ysf-info {
		grid-template-columns: 1fr;
	}

	.ysf-checks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ysf-table--req {
		min-width: 480px;
	}

	.ysf-table--price {
		min-width: 620px;
	}

	.ysf .ysf-submit {
		width: 100%;
	}
}
