/**
 * iSPACE domain search, pricing table and transfer enquiry.
 * Field styling mirrors the site's contact form values so the sections
 * read as part of the theme, not an add-on.
 */

.ispace-domsearch-form {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ispace-domsearch-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ispace-domsearch-name {
	flex: 1 1 14rem;
}

.ispace-domsearch-label {
	font-size: 0.8rem;
	color: #8fa3c4;
	margin-bottom: 0.35rem;
}

.ispace-domsearch-inputwrap {
	display: flex;
	align-items: stretch;
}

.ispace-domsearch-prefix {
	display: flex;
	align-items: center;
	padding: 0 0.7rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid #1b2b4a;
	border-right: none;
	border-radius: 10px 0 0 10px;
	color: #8fa3c4;
	font-size: 0.95rem;
}

.ispace-domsearch input[type="text"],
.ispace-domtransfer input[type="text"] {
	width: 100%;
	padding: 0.7rem 0.9rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid #1b2b4a;
	border-radius: 10px;
	color: #e6edf7;
	font: inherit;
	min-width: 0;
}

.ispace-domsearch-inputwrap input[type="text"] {
	border-radius: 0 10px 10px 0;
}

.ispace-domsearch select {
	padding: 0.7rem 2rem 0.7rem 0.9rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid #1b2b4a;
	border-radius: 10px;
	color: #e6edf7;
	font: inherit;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238fa3c4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
}

.ispace-domsearch select option {
	color: #0b1526;
	background: #e6edf7;
}

.ispace-domsearch-btn {
	border: none;
	cursor: pointer;
}

.ispace-domsearch-btn[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.ispace-domsearch-error {
	background: rgba(244, 113, 113, 0.12);
	border: 1px solid rgba(244, 113, 113, 0.5);
	color: #fca5a5;
	border-radius: 10px;
	padding: 0.75rem 1rem;
	margin-top: 1rem;
}

.ispace-domchecking {
	color: #8fa3c4;
	margin-top: 1rem;
}

.ispace-domresult {
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-top: 1rem;
	border: 1px solid #1b2b4a;
	background: rgba(255, 255, 255, 0.03);
}

.ispace-domresult-available {
	background: rgba(45, 212, 150, 0.12);
	border-color: rgba(45, 212, 150, 0.5);
}

.ispace-domresult p {
	margin: 0 0 0.75rem;
}

.ispace-domresult p:last-child {
	margin-bottom: 0;
}

.ispace-domalts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ispace-domalts li {
	padding: 0.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ispace-domalt-cta {
	margin-left: 0.5rem;
	font-weight: 600;
}

/* Pricing table */
.ispace-domtable-wrap {
	overflow-x: auto;
	margin-top: 1.5rem;
}

.ispace-domtable {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.ispace-domtable th,
.ispace-domtable td {
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid #1b2b4a;
	white-space: nowrap;
}

.ispace-domtable thead th {
	color: #8fa3c4;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ispace-domtable tbody th {
	font-weight: 600;
}

.ispace-domtable-unit {
	color: #8fa3c4;
	font-size: 0.8em;
	margin-left: 0.15rem;
}

/* Transfer enquiry */
.ispace-domtransfer label {
	display: block;
	margin: 0 0 1rem;
}

.ispace-domtransfer input[type="text"] {
	display: block;
	margin-top: 0.35rem;
}

.ispace-domtransfer button {
	border: none;
	cursor: pointer;
}

/* Small screens: stack the search row; nothing may overflow at 360px. */
@media (max-width: 560px) {
	.ispace-domsearch-form {
		flex-direction: column;
		align-items: stretch;
	}

	.ispace-domsearch-name {
		flex-basis: auto;
	}

	.ispace-domtable th,
	.ispace-domtable td {
		padding: 0.5rem 0.4rem;
		font-size: 0.85rem;
	}
}
