/* Warranty Popup - Modal styles (child theme) */

/*
 * Reuses the parent `.ct-modal` base styles from Consultio.
 * These rules add warranty-specific overrides and fallbacks so the
 * popup renders correctly even when parent selectors target only
 * `.ct-modal-search`.
 */

.ct-modal-warranty .ct-modal-content {
	max-width: 680px;
	width: 90%;
	margin: 0 auto;
	padding: 40px 30px;
	background: #fff;
	border-radius: 4px;
	box-sizing: border-box;
}

.ct-modal-warranty.open .ct-modal-content {
	opacity: 1;
}

.warranty-popup-title {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	text-align: center;
}

.warranty-popup-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.ct-modal-warranty .searchform-wrap {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.ct-modal-warranty .warranty-popup-input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 15px;
	color: #1a1a1a;
	background: #fff;
	box-sizing: border-box;
}

.ct-modal-warranty .warranty-popup-input:hover,
.ct-modal-warranty .warranty-popup-input:focus {
	border-color: #999;
	outline: none;
}

.ct-modal-warranty .warranty-popup-input[aria-invalid="true"] {
	border-color: #e74c3c;
}

.ct-modal-warranty .warranty-popup-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: #1a73e8;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ct-modal-warranty .warranty-popup-submit:hover {
	background: #1557b0;
}

.ct-modal-warranty .warranty-popup-submit .zmdi {
	font-size: 18px;
}

.warranty-popup-error {
	margin-top: 12px;
	padding: 8px 12px;
	font-size: 13px;
	color: #e74c3c;
	background: #fdf2f2;
	border-radius: 4px;
}

.warranty-popup-error[hidden] {
	display: none;
}

/* Responsive: keep the modal usable on small screens. */
@media (max-width: 600px) {
	.ct-modal-warranty .ct-modal-content {
		width: 94%;
		padding: 28px 18px;
	}

	.warranty-popup-title {
		font-size: 20px;
	}

	.ct-modal-warranty .searchform-wrap {
		flex-direction: column;
	}

	.ct-modal-warranty .warranty-popup-submit {
		width: 100%;
		height: 44px;
	}
}
