/* ============================================
   Vue Form — Feedback / Contact Form Styles
   Design system: renova (#1E1F22 dark, Inter)
   ============================================ */

/* --- Form wrapper --- */
.form-ajax.cont-form {
	max-width: 500px;
	width: 100%;
	margin: 0 auto;
}

/* --- Form title --- */
.cont-form-h {
	font-size: var(--font-size-body, 1.125rem);
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: var(--color-text);
}

/* --- Form content wrapper --- */
.form-content {
	display: flex;
	flex-direction: column;
}

/* --- Field group --- */
.one-group {
	margin-bottom: 0;
}

/* --- Single field wrapper --- */
.one-param.cont-form-h-name {
	position: relative;
	margin-bottom: 1rem;
}

/* --- Text inputs --- */
input.cont-form-h-name-in {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	font-size: 0.9375rem;
	font-family: inherit;
	transition: border-color var(--transition-base);
	background: #fff;
	box-sizing: border-box;
}

input.cont-form-h-name-in:focus {
	outline: none;
	border-color: var(--color-dark);
	box-shadow: 0 0 0 3px rgba(30, 31, 34, 0.1);
}

input.cont-form-h-name-in::placeholder {
	color: #999;
}

/* --- Textarea (if used) --- */
textarea.cont-form-h-name-in {
	width: 100%;
	height: 120px;
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	font-size: 0.9375rem;
	font-family: inherit;
	transition: border-color var(--transition-base);
	background: #fff;
	box-sizing: border-box;
	resize: vertical;
}

textarea.cont-form-h-name-in:focus {
	outline: none;
	border-color: var(--color-dark);
	box-shadow: 0 0 0 3px rgba(30, 31, 34, 0.1);
}

textarea.cont-form-h-name-in::placeholder {
	color: #999;
}

/* --- Submit button --- */
input[type="submit"].cont-form-h-b {
	width: 100%;
	height: 48px;
	background: var(--color-dark);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity var(--transition-base);
	margin-top: 0.5rem;
	font-family: inherit;
}

input[type="submit"].cont-form-h-b:hover {
	opacity: 0.85;
}

input[type="submit"].cont-form-h-b:active {
	opacity: 0.75;
}

/* --- Privacy policy block --- */
.politic {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 1rem 0;
	font-size: 0.8125rem;
	color: var(--color-text-secondary);
	line-height: 1.4;
}

.politic input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--color-dark);
}

.politic label {
	cursor: pointer;
}

.politic a {
	color: var(--color-dark);
	font-weight: 500;
	text-decoration: none;
}

.politic a:hover {
	text-decoration: underline;
}

/* --- Validation error --- */
.error-field {
	color: #dc3545;
	font-size: 0.8125rem;
	margin-top: 4px;
}

/* --- Required asterisk --- */
.required {
	position: absolute;
	right: 12px;
	top: 14px;
	color: #dc3545;
	font-size: 0.875rem;
}

/* --- Success message --- */
.success {
	padding: 1.5rem;
	background: rgba(46, 156, 58, 0.08);
	border: 1px solid rgba(46, 156, 58, 0.2);
	border-radius: 16px;
	color: #2E9C3A;
	font-weight: 500;
	text-align: center;
}

/* --- Select dropdown --- */
.select select {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	font-size: 0.9375rem;
	font-family: inherit;
	background: #fff;
	box-sizing: border-box;
	cursor: pointer;
	transition: border-color var(--transition-base);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

.select select:focus {
	outline: none;
	border-color: var(--color-dark);
	box-shadow: 0 0 0 3px rgba(30, 31, 34, 0.1);
}

/* --- Radio group --- */
.radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.one-radio {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 0.9375rem;
}

.one-radio input[type="radio"] {
	accent-color: var(--color-dark);
	width: 16px;
	height: 16px;
}

/* --- File upload field --- */
.file-field {
	font-size: 0.9375rem;
}

.file-field .file {
	margin-top: 4px;
	font-size: 0.8125rem;
	color: var(--color-text-secondary);
}

/* ============================================
   Modal Form Provider
   ============================================ */
.v-modal-form-provider {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.v-modal-form-provider__modal {
	background: #fff;
	border-radius: 20px;
	max-width: 500px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 2rem;
}

.v-modal-form-provider__close {
	position: sticky;
	top: 0;
	float: right;
	width: 36px;
	height: 36px;
	border: none;
	background: var(--color-surface);
	border-radius: 50%;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: var(--color-text-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	transition: background var(--transition-base);
}

.v-modal-form-provider__close:hover {
	background: var(--color-border);
	color: var(--color-text);
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 768px) {
	.form-ajax.cont-form {
		max-width: 100%;
	}

	input.cont-form-h-name-in {
		height: 52px;
		font-size: 1rem;
	}

	textarea.cont-form-h-name-in {
		height: 140px;
		font-size: 1rem;
	}

	input[type="submit"].cont-form-h-b {
		height: 52px;
		font-size: 1rem;
	}

	.politic input[type="checkbox"] {
		width: 24px;
		height: 24px;
	}

	.one-radio input[type="radio"] {
		width: 24px;
		height: 24px;
	}

	.select select {
		height: 52px;
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.v-modal-form-provider {
		padding: 0;
		align-items: flex-end;
	}

	.v-modal-form-provider__modal {
		border-radius: 20px 20px 0 0;
		max-height: 95vh;
		padding: 1.5rem 1rem;
		padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
	}

	.v-modal-form-provider__close {
		width: 44px;
		height: 44px;
	}
}

/* ============================================================
   V-Form Universal Component Styles
   ============================================================ */

/* --- Form wrapper --- */
.v-form {
	width: 100%;
}

/* --- Form content --- */
.v-form__content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* --- Field group --- */
.v-form__group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* --- Single field --- */
.v-form__field {
	position: relative;
	margin-bottom: 1rem;
	flex: 1;
	min-width: 200px;
}

/* --- Label --- */
.v-form__label {
	display: block;
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--color-text);
	margin-bottom: 4px;
}

/* --- Text input --- */
.v-form__input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	font-size: 0.9375rem;
	font-family: inherit;
	background: #fff;
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
	outline: none;
}

.v-form__input:focus {
	border-color: var(--color-dark);
	box-shadow: 0 0 0 3px rgba(30, 31, 34, 0.1);
}

.v-form__input::placeholder {
	color: var(--color-text-secondary);
}

/* --- Textarea --- */
.v-form__textarea {
	width: 100%;
	min-height: 100px;
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	font-size: 0.9375rem;
	font-family: inherit;
	background: #fff;
	resize: vertical;
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
	outline: none;
}

.v-form__textarea:focus {
	border-color: var(--color-dark);
	box-shadow: 0 0 0 3px rgba(30, 31, 34, 0.1);
}

/* --- Select --- */
.v-form__select-wrap {
	position: relative;
}

.v-form__select {
	width: 100%;
	height: 48px;
	padding: 0 40px 0 16px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	font-size: 0.9375rem;
	font-family: inherit;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
	appearance: none;
	cursor: pointer;
	transition: border-color var(--transition-base);
	outline: none;
}

.v-form__select:focus {
	border-color: var(--color-dark);
	box-shadow: 0 0 0 3px rgba(30, 31, 34, 0.1);
}

/* --- Radio group --- */
.v-form__radio-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.v-form__radio-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.v-form__radio-item input[type="radio"] {
	accent-color: var(--color-dark);
	width: 18px;
	height: 18px;
}

.v-form__radio-item label {
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--color-text);
}

/* --- File upload --- */
.v-form__file {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.v-form__file label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: 2px dashed var(--color-border);
	border-radius: 12px;
	color: var(--color-text-secondary);
	font-size: 0.875rem;
	cursor: pointer;
	transition: border-color var(--transition-base), color var(--transition-base);
}

.v-form__file label:hover {
	border-color: var(--color-dark);
	color: var(--color-dark);
}

.v-form__file-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.v-form__file-item {
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	background: var(--color-surface);
	padding: 4px 10px;
	border-radius: 8px;
}

/* --- Submit button --- */
.v-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 32px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--color-dark);
	color: var(--color-white);
	border: none;
	cursor: pointer;
	transition: all var(--transition-card);
	width: 100%;
	margin-top: 0.5rem;
}

.v-form__submit:hover:not(:disabled) {
	opacity: 0.85;
	transform: translateY(-1px);
}

.v-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --- Success message --- */
.v-form__success {
	text-align: center;
	padding: 2rem;
	background: rgba(46, 156, 58, 0.08);
	border: 1px solid rgba(46, 156, 58, 0.2);
	border-radius: var(--card-radius);
	color: #2E9C3A;
	font-weight: 500;
	font-size: 1.125rem;
}

/* --- Error message --- */
.v-form__error {
	display: block;
	color: #dc3545;
	font-size: 0.8125rem;
	margin-top: 4px;
}

/* --- Required marker --- */
.v-form__required {
	color: #dc3545;
	font-size: 0.875rem;
	margin-left: 2px;
}

/* --- Politic checkbox --- */
.v-form__politic {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.v-form__politic input[type="checkbox"] {
	margin-top: 3px;
	accent-color: var(--color-dark);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.v-form__politic label {
	font-size: 0.8125rem;
	color: var(--color-text-secondary);
	line-height: 1.5;
	cursor: pointer;
}

.v-form__politic a {
	color: var(--color-dark);
	font-weight: 500;
	text-decoration: underline;
}

.v-form__politic a:hover {
	opacity: 0.75;
}
