/* Hudson Rock Domain Checker Styles */

.hr-domain-checker {
	margin: 20px auto;
	padding: 30px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hr-domain-checker h2 {
	margin: 0 0 10px;
	font-size: 1.5rem;
	color: #1e0721;
}

.hr-domain-checker p {
	margin: 0 0 20px;
	color: #140c15;
	font-size: 0.95rem;
	line-height: 1.5;
}

.hr-form-row {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.hr-domain-checker button:not(:disabled) {
	cursor: pointer;
}

.hr-form-group {
	margin-bottom: 16px;
}

.hr-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #1e0721;
	font-size: 0.9rem;
}

.hr-domain-checker input[type="text"],
.hr-domain-checker input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border-radius: 6px;
	border: 1px solid #e4e5e5;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hr-domain-checker input[type="text"]:focus,
.hr-domain-checker input[type="email"]:focus {
	outline: 2px solid var(--color-electric-blue);
}

.hr-domain-checker input[readonly] {
	background: #f5f5f5;
	cursor: not-allowed;
}

.hr-step {
	margin-bottom: 20px;
}

.hr-search-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.hr-spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	animation: hr-spin 0.7s linear infinite;
	display: inline-flex;
	vertical-align: text-top;
	margin-left: 0.5rem;
}

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

.hr-status {
	min-height: 24px;
	font-size: 0.9rem;
	margin-top: 4px;
	line-height: 1.5;
	padding: 8px 0;
}

.hr-status--error {
	color: #c44a53;
}

.hr-status--success {
	color: #3344b2;
}

.hr-domain-checker [hidden] {
	display: none;
}

/* Responsive */
@media (max-width: 600px) {
	.hr-form-row {
		flex-direction: column;
	}

	.hr-search-btn,
	.hr-back-btn {
		width: 100%;
		justify-content: center;
	}
}

.hr-form-group--checkbox {
	margin-top: 0.5rem;
}

.hr-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: var(--spacing-3, 0.75rem);
	cursor: pointer;
	font-weight: var(--weight-regular, 400);
}

.hr-checkbox-label input[type="checkbox"] {
	appearance: auto;
	accent-color: var(--color-electric-blue);
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 0.2rem;
	cursor: pointer;
}

/* Result display */
.hr-result {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--spacing-4, 1rem);
}

.hr-result__header {
	display: flex;
	align-items: center;
	gap: var(--spacing-5, 1rem);
}

.hr-result__icon {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	align-self: center;
}

.hr-result__icon svg {
	width: 100%;
	height: 100%;
}

.hr-result__count {
	font-size: var(--size-60, 3.75rem);
	font-weight: var(--weight-medium, 500);
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: var(--spacing-3, 0.5rem);
}

.hr-result__count span {
	font-size: var(--size-20, 1.25rem);
	font-weight: var(--weight-regular, 400);
}

.hr-result__message {
	max-width: 480px;
}

.hr-result--negative .hr-result__icon,
.hr-result--negative .hr-result__count {
	color: var(--color-peach-darkest, #c44a53);
}

.hr-result--neutral .hr-result__icon,
.hr-result--neutral .hr-result__count {
	color: var(--color-green, #1c4e51);
}
