/* ==========================================================================
   NHTV Registration — Frontend Form Styles
   ========================================================================== */

.nhtv-form-wrap {
	max-width: 560px;
}

/* ---- Fields ---- */

.nhtv-form-field {
	margin-bottom: 20px;
}

.nhtv-form-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.nhtv-form-field input[type="text"],
.nhtv-form-field input[type="email"],
.nhtv-form-field input[type="password"],
.nhtv-form-field select,
.nhtv-form-field textarea {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d2d2d2;
	border-radius: 2px;
	font-size: 15px;
	line-height: 1.5;
	color: #333;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
	-webkit-appearance: none;
}

.nhtv-form-field input:focus,
.nhtv-form-field select:focus,
.nhtv-form-field textarea:focus {
	outline: none;
	border-color: #004c97;
	box-shadow: 0 0 0 2px rgba(0, 76, 151, 0.15);
}

.nhtv-form-field input[readonly] {
	background: #f4f4f4;
	color: #888;
	cursor: not-allowed;
}

.nhtv-field-hint {
	margin: 4px 0 0;
	font-size: 13px;
	color: #888;
}

.nhtv-required {
	color: #c0392b;
}

/* ---- Rows ---- */

.nhtv-form-row {
	display: flex;
	gap: 20px;
}

.nhtv-form-row--half > .nhtv-form-field {
	flex: 1 1 0;
}

/* ---- Footer ---- */

.nhtv-form-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 8px;
}

.nhtv-required-note {
	margin: 0;
	font-size: 13px;
	color: #666;
}

/* ---- Buttons ---- */

.nhtv-btn-primary {
	display: inline-block;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 2px;
	cursor: pointer;
	background: #004c97;
	color: #fff;
	border: 2px solid #004c97;
	transition: background 0.15s ease;
	line-height: 1;
}

.nhtv-btn-primary:hover {
	background: #003a7a;
	border-color: #003a7a;
	color: #fff;
}

.nhtv-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ---- Messages ---- */

.nhtv-message {
	padding: 14px 18px;
	border-radius: 2px;
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 20px;
}

.nhtv-message--success {
	background: #eaf5e5;
	color: #2e5811;
	border: 1px solid #c5dab8;
}

.nhtv-message--error {
	background: #fdf0ef;
	color: #922b21;
	border: 1px solid #f0b8b4;
}

.nhtv-message--warning {
	background: #fff8e5;
	color: #7a5c00;
	border: 1px solid #f0c940;
}

/* ---- Checkbox ---- */

.nhtv-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: normal;
	cursor: pointer;
}

.nhtv-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: #004c97;
}

/* ---- Login extras ---- */

.nhtv-form-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 8px;
}

.nhtv-login-links {
	margin-top: 16px;
	font-size: 14px;
	color: #666;
}

.nhtv-login-links a {
	color: #004c97;
	text-decoration: underline;
}

/* ---- Responsive ---- */

@media ( max-width: 640px ) {
	.nhtv-form-row {
		flex-direction: column;
		gap: 0;
	}

	.nhtv-form-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}
