/**
 * Vormerken Popup Styles
 *
 * Design orientiert sich an wpR2Go4Detail/modules/contact-inquiry
 *
 * @package WP_R2Go4_Search
 */

/* Body scroll lock */
body.vormerken-no-scroll {
	overflow: hidden;
}

/* Overlay */
.vormerken-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.vormerken-overlay.active {
	opacity: 1;
}

/* Modal */
.vormerken-modal {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.vormerken-overlay.active .vormerken-modal {
	transform: translateY(0);
}

/* Close button */
.vormerken-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vormerken-close:hover {
	color: #333;
}

/* Object info header */
.vormerken-object-info {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e4e4e4;
}

.vormerken-object-badge {
	display: inline-block;
	background: var(--wp-r2go4-ci-color, #aa9a7f);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 10px;
	margin-bottom: 10px;
}

.vormerken-object-title {
	margin: 0 0 6px 0;
	font-size: 18px;
	color: #333;
}

.vormerken-object-nr {
	display: block;
	font-size: 13px;
	color: #999;
	margin-bottom: 2px;
}

.vormerken-object-details {
	display: block;
	font-size: 13px;
	color: #666;
}

/* Form header */
.vormerken-form-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 25px;
}

.vormerken-form-title {
	margin: 0;
	font-size: 20px;
	color: #333;
}

.vormerken-form-required-note {
	font-size: 12px;
	color: #666;
	margin: 0;
}

/* Form rows - matching Detail plugin layout */
.vormerken-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.vormerken-row {
	display: flex;
	gap: 15px;
}

.vormerken-field {
	flex: 1;
	min-width: 0;
}

.vormerken-field-20 {
	flex: 1 1 0;
}

.vormerken-field-40 {
	flex: 2 1 0;
}

.vormerken-field-half {
	flex: 1 1 0;
}

.vormerken-field-full {
	flex: 0 0 100%;
}

/* Input styles - matching Detail plugin */
.vormerken-form input,
.vormerken-form select,
.vormerken-form textarea {
	width: 100%;
	min-height: 50px;
	padding: 6px 15px;
	border: 1px solid #e4e4e4;
	border-radius: 3px;
	font-size: 16px;
	color: #333;
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.vormerken-form input::placeholder,
.vormerken-form textarea::placeholder {
	color: #999;
}

.vormerken-form select {
	color: #999;
}

.vormerken-form select:valid {
	color: #333;
}

.vormerken-form input:focus,
.vormerken-form select:focus,
.vormerken-form textarea:focus {
	outline: none;
	border-color: var(--wp-r2go4-ci-color, #aa9a7f);
}

/* Checkboxes */
.vormerken-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 10px;
}

.vormerken-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	color: #666;
	cursor: pointer;
}

.vormerken-checkbox-label input {
	width: auto !important;
	min-height: auto !important;
	flex-shrink: 0;
	margin-top: 2px;
}

.vormerken-checkbox-label a {
	color: inherit;
	text-decoration: underline;
}

.vormerken-checkbox-label a:hover {
	color: var(--wp-r2go4-ci-color, #aa9a7f);
}

/* Submit button - matching Detail plugin */
.vormerken-submit-row {
	margin-top: 15px;
}

.vormerken-submit {
	padding: 15px 30px 15px 38px;
	background-color: var(--wp-r2go4-ci-color, #aa9a7f);
	color: #fff;
	border: 1px solid var(--wp-r2go4-ci-color, #aa9a7f);
	border-radius: 0;
	font-style: normal;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.71em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s;
}

.vormerken-submit:hover {
	background-color: var(--wp-r2go4-ci-color-hover, #333);
}

.vormerken-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Message */
.vormerken-message {
	padding: 15px;
	border-radius: 4px;
	margin-top: 15px;
}

.vormerken-message.success {
	background-color: #d4edda;
	color: #155724;
}

.vormerken-message.error {
	background-color: #f8d7da;
	color: #721c24;
}

/* Footer */
.vormerken-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 12px;
	color: #999;
}

/* Responsive */
@media (max-width: 768px) {
	.vormerken-modal {
		padding: 25px;
		max-width: 100%;
	}

	.vormerken-form-title {
		font-size: 18px;
	}

	.vormerken-row {
		flex-wrap: wrap;
	}

	.vormerken-field-20,
	.vormerken-field-40,
	.vormerken-field-half {
		flex: 0 0 100%;
	}
}
