/*--------------------------------------------------
	Budget request form — scoped to Hayler theme
---------------------------------------------------*/

#budget-form {
	--budget-accent: var(--primary-color, #27EAA6);
	--budget-accent-hover: #1fd693;
	--budget-surface: #111;
	--budget-border: rgba(255, 255, 255, 0.12);
	--budget-muted: rgba(255, 255, 255, 0.55);
	color: var(--color-white, #fff);
	max-width: 960px;
	margin: 0 auto;
}

#budget-form * {
	box-sizing: border-box;
}

#budget-form h2 {
	margin: 0 0 28px;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

#budget-form h2 span {
	font-size: 0.85em;
	font-weight: 400;
	color: var(--budget-muted);
}

#budget-form .budget-section + .budget-section {
	margin-top: clamp(48px, 6vw, 80px);
}

/* Service checkboxes */
#budget-form .project-type-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

#budget-form .project-check input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

#budget-form .project-check label {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 170px;
	padding: 24px 16px 28px;
	border: 1px solid var(--budget-border);
	border-radius: 12px;
	color: var(--budget-muted);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

#budget-form .project-check label:hover {
	border-color: rgba(255, 255, 255, 0.28);
	color: rgba(255, 255, 255, 0.85);
}

#budget-form .project-check input[type="checkbox"]:checked + label {
	border-color: var(--budget-accent);
	color: #fff;
	background: rgba(39, 234, 166, 0.06);
}

#budget-form .project-check label i {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--budget-accent) url("../budget/images/check-1.svg") no-repeat center center;
	background-size: 12px 9px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

#budget-form .project-check input[type="checkbox"]:checked + label i {
	opacity: 1;
	visibility: visible;
}

#budget-form .project-check .icon_wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	margin-bottom: 12px;
}

#budget-form .project-check label img {
	max-width: 100%;
	height: auto;
	opacity: 0.45;
	transition: opacity 0.25s ease;
}

#budget-form .project-check input[type="checkbox"]:checked + label img {
	opacity: 1;
}

#budget-form .webdes_icon { width: 110px; }
#budget-form .dev_icon { width: 112px; }
#budget-form .apps_icon { width: 118px; }
#budget-form .brand_icon { width: 102px; }

/* Project details */
#budget-form .project-about-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 32px;
}

#budget-form textarea.stretched {
	width: 100%;
	min-height: 120px;
	padding: 0 0 12px;
	border: none;
	border-bottom: 1px solid var(--budget-border);
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	line-height: 1.6;
	resize: none;
	transition: border-color 0.25s ease;
}

#budget-form textarea.stretched:focus {
	border-bottom-color: var(--budget-accent);
	outline: none;
}

#budget-form textarea.stretched::placeholder {
	color: var(--budget-muted);
}

#budget-form .file_uploader {
	position: relative;
	padding-bottom: 18px;
	color: var(--budget-accent);
	cursor: pointer;
}

#budget-form .file_uploader input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

#budget-form .file_uploader::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: url("../budget/images/form/dash_b.svg") left center repeat-x;
}

#budget-form .file-upload-label {
	display: block;
	font-size: 0.95rem;
}

#budget-form .file-upload-hint {
	display: block;
	margin-top: 6px;
	font-size: 0.85rem;
	color: var(--budget-muted);
}

/* Budget slider */
#budget-form .budget-range {
	margin-top: 8px;
	padding: 0;
}

#budget-form .noUi-horizontal {
	height: 30px;
}

#budget-form .noUi-target {
	height: 30px;
	border: none;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 40px;
}

#budget-form .noUi-connect {
	background-color: var(--budget-accent);
	background-image: repeating-linear-gradient(
		-45deg,
		rgba(255, 255, 255, 0.14) 0,
		rgba(255, 255, 255, 0.14) 4px,
		transparent 4px,
		transparent 8px
	);
	transition: background-color 0.25s ease;
	border-radius: 40px;
}

#budget-form .noUi-horizontal .noUi-handle {
	width: 34px;
	height: 34px;
	left: -17px;
	right: auto;
	top: -2px;
	border: 1px solid #fff;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
	cursor: grab;
}

#budget-form .noUi-horizontal .noUi-handle:active {
	cursor: grabbing;
}

#budget-form .noUi-handle::before,
#budget-form .noUi-handle::after {
	display: block;
	position: absolute;
	top: 50%;
	width: 1px;
	height: 14px;
	background: rgba(87, 87, 87, 0.55);
	transform: translateY(-50%);
}

#budget-form .noUi-handle::before {
	left: calc(50% - 2.5px);
}

#budget-form .noUi-handle::after {
	left: calc(50% + 1.5px);
}

#budget-form .noUi-active {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

#budget-form .noUi-pips-horizontal {
	padding: 20px 0 0;
	height: 56px;
}

#budget-form .noUi-value-horizontal {
	transform: translate3d(-50%, 50%, 0);
	white-space: nowrap;
}

#budget-form .noUi-marker-horizontal.noUi-marker-large {
	height: 14px;
}

#budget-form .noUi-marker {
	background: rgba(255, 255, 255, 0.22);
}

#budget-form .noUi-marker-sub {
	height: 8px;
}

#budget-form .noUi-marker-large {
	background: rgba(255, 255, 255, 0.35);
}

#budget-form .noUi-value {
	color: var(--budget-muted);
	font-size: 0.8rem;
}

#budget-form .noUi-value-large {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
}

#budget-form .project-budget + .project-contact {
	margin-top: clamp(80px, 10vw, 120px);
}

/* Contact fields */
#budget-form .contact-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}

#budget-form .contact-header p {
	margin: 0;
	color: var(--budget-muted);
	font-size: 0.95rem;
}

#budget-form .contact-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 32px;
}

#budget-form .form-line {
	margin-bottom: 20px;
}

#budget-form .form-line input {
	width: 100%;
	height: 56px;
	padding: 0;
	border: none;
	border-bottom: 1px solid var(--budget-border);
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.25s ease;
}

#budget-form .form-line input:focus {
	border-bottom-color: var(--budget-accent);
	outline: none;
}

#budget-form .form-line input::placeholder {
	color: var(--budget-muted);
}

#budget-form .form-line input.input-error {
	border-bottom-color: #ff5c5c;
}

#budget-form .input_err {
	display: block;
	margin-top: 6px;
	font-size: 0.8rem;
	color: #ff8a8a;
}

#budget-form .project-send {
	margin-top: 40px;
	text-align: center;
}

#budget-form #feed_back {
	margin-top: 24px;
	text-align: center;
	font-size: 0.95rem;
}

#budget-form #feed_back a {
	color: var(--budget-accent);
}

#budget-form #feed_back p {
	margin: 0;
}

@media (max-width: 1024px) {
	#budget-form .project-type-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	#budget-form .project-type-grid,
	#budget-form .project-about-grid,
	#budget-form .contact-grid {
		grid-template-columns: 1fr;
	}

	#budget-form .contact-header {
		flex-direction: column;
	}
}
