/**
 * SendGrid Email Validation - Inline message styles.
 *
 * @package iCode
 */

/* Message container */
.sgev-message {
	margin-top: 6px;
	padding: 6px 10px;
	font-size: 13px;
	line-height: 1.4;
	border-radius: 3px;
	transition: opacity 0.2s ease, max-height 0.2s ease;
	max-height: 60px;
	overflow: hidden;
}

.sgev-message.sgev-hidden {
	opacity: 0;
	max-height: 0;
	padding: 0;
	margin: 0;
	overflow: hidden;
}

/* Error state (Invalid verdict) */
.sgev-message.sgev-error {
	background-color: rgba(204, 0, 0, 0.15);
	color: #ff4d4d;
	border-left: 3px solid #ff4d4d;
}

/* Warning state (Risky verdict / loading) */
.sgev-message.sgev-warning {
	background-color: rgba(230, 168, 0, 0.15);
	color: #ffc803;
	border-left: 3px solid #ffc803;
}

/* Suggestion state (domain typo) */
.sgev-message.sgev-suggestion {
	background-color: rgba(0, 102, 204, 0.15);
	color: #66b3ff;
	border-left: 3px solid #66b3ff;
}

/* Success state (Valid verdict) */
.sgev-message.sgev-success {
	background-color: rgba(0, 153, 0, 0.15);
	color: #66cc66;
	border-left: 3px solid #66cc66;
}

/* Icon inside messages */
.sgev-icon {
	margin-right: 4px;
}

/* "Click to correct" link in suggestions */
.sgev-apply-suggestion {
	color: #66b3ff !important;
	text-decoration: underline !important;
	cursor: pointer;
	font-weight: 500;
}

.sgev-apply-suggestion:hover {
	color: #99ccff !important;
}

/* Input border feedback */
.sgev-input-invalid {
	border-color: #ff4d4d !important;
	box-shadow: 0 0 0 1px #ff4d4d !important;
}

.sgev-input-warning {
	border-color: #ffc803 !important;
	box-shadow: 0 0 0 1px #ffc803 !important;
}

.sgev-input-valid {
	border-color: #66cc66 !important;
	box-shadow: 0 0 0 1px #66cc66 !important;
}

/* Loading spinner */
.sgev-spinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid #ffc803;
	border-top-color: transparent;
	border-radius: 50%;
	animation: sgev-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}

@keyframes sgev-spin {
	to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.sgev-message {
		font-size: 12px;
		padding: 5px 8px;
	}
}
