/* =========================================================
   FORMS
   Спільні стилі для всіх форм:
   • Кар'єра (Хочу працювати)
   • Оренда
   • Постачальникам
   • Newsletter
   ========================================================= */

.hc-form {
	display: flex;
	flex-direction: column;
	gap: var(--hc-space-6);
}

.hc-form__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}

.hc-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.hc-form__field--full { grid-column: 1 / -1; }

.hc-form__field--group {
	background: var(--hc-white);
	padding: 1.25rem;
	border-radius: var(--hc-radius);
	border: 1px solid var(--hc-gray-200);
}

/* ===== File input ===== */
.hc-file-upload {
	display: block;
	position: relative;
	cursor: pointer;
	padding: 1.5rem;
	background: var(--hc-white);
	border: 2px dashed var(--hc-gray-300);
	border-radius: var(--hc-radius);
	text-align: center;
	transition: all var(--hc-duration);
}
.hc-file-upload:hover {
	border-color: var(--hc-orange);
	background: rgba(242, 101, 34, 0.04);
}

.hc-file-upload input[type="file"] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.hc-file-upload__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--hc-off-white);
	color: var(--hc-orange);
	border-radius: var(--hc-radius-full);
	margin-bottom: var(--hc-space-2);
}

.hc-file-upload__title {
	display: block;
	font-family: var(--hc-font-display);
	font-weight: 600;
	color: var(--hc-ink);
	margin-bottom: 0.25rem;
}

.hc-file-upload__hint {
	display: block;
	font-size: var(--hc-text-xs);
	color: var(--hc-gray-500);
}

/* ===== Form actions ===== */
.hc-form__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

.hc-form__disclaimer {
	font-size: var(--hc-text-xs);
	color: var(--hc-gray-500);
	max-width: 500px;
	line-height: 1.5;
}

/* ===== Multiselect chips (groups of products) ===== */
.hc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hc-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	background: var(--hc-white);
	border: 1.5px solid var(--hc-gray-200);
	border-radius: var(--hc-radius-full);
	font-size: var(--hc-text-sm);
	color: var(--hc-gray-700);
	cursor: pointer;
	transition: all var(--hc-duration);
}
.hc-chip:hover { border-color: var(--hc-orange); color: var(--hc-orange); }

.hc-chip input[type="checkbox"] {
	display: none;
}

.hc-chip:has(input:checked),
.hc-chip[data-checked="true"] {
	background: var(--hc-orange);
	color: var(--hc-white);
	border-color: var(--hc-orange);
}

/* ===== Form messages ===== */
.hc-form__message {
	padding: 1rem 1.25rem;
	border-radius: var(--hc-radius);
	font-size: var(--hc-text-sm);
}
.hc-form__message--success {
	background: rgba(16, 185, 129, 0.10);
	color: #047857;
	border-left: 3px solid var(--hc-success);
}
.hc-form__message--error {
	background: rgba(239, 68, 68, 0.10);
	color: #b91c1c;
	border-left: 3px solid var(--hc-error);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
	.hc-form__grid { grid-template-columns: 1fr; }
}
