/**
 * Service Inquiry Manager - frontend styles.
 *
 * Step 1 grid replicates the supplied design exactly.
 * Colors: heading #0d2c6c / #12357b, accent #ff7a00 / #eb6d00, border #e7edf5.
 */

.sim-wrap {
	width: 100%;
	padding: 70px 20px;
	background: #fff;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-sizing: border-box;
}

.sim-wrap *,
.sim-wrap *::before,
.sim-wrap *::after {
	box-sizing: border-box;
}

/* Steps. */
.sim-step {
	display: none;
}

.sim-step.sim-active {
	display: block;
}

/* Heading. */
.sim-heading {
	text-align: center;
	margin-bottom: 40px;
}

.sim-heading h2 {
	font-size: 32px;
	font-weight: 700;
	color: #0d2c6c;
	margin: 0;
	line-height: 1.2;
}

.sim-heading h2 span {
	color: #ff7a00;
}

.sim-subtext {
	margin: 10px 0 0;
	font-size: 14px;
	color: #7a7a7a;
}

/* Grid. */
.sim-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
	max-width: 1600px;
	margin: auto;
}

.sim-card {
	background: #fff;
	border: 1px solid #e7edf5;
	border-radius: 24px;
	transition: 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	overflow: hidden;
	cursor: pointer;
	position: relative;
}

.sim-card-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	min-height: 185px;
	padding: 22px 12px;
	position: relative;
}

.sim-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sim-card:focus-visible {
	outline: 2px solid #ff7a00;
	outline-offset: 2px;
}

.sim-card img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	margin-bottom: 12px;
}

.sim-icon-fallback {
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 700;
	color: #ff7a00;
	background: #fff4ea;
	border-radius: 50%;
}

.sim-card h3 {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 700;
	color: #12357b;
	margin: 0 0 6px;
}

.sim-card p {
	font-size: 12px;
	line-height: 1.6;
	color: #7a7a7a;
	margin: 0;
}

/* Selected check indicator. */
.sim-check {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ff7a00;
	opacity: 0;
	transform: scale(0.6);
	transition: 0.2s ease;
}

.sim-check::after {
	content: '';
	position: absolute;
	left: 7px;
	top: 3px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Selected state. */
.sim-card.sim-selected {
	border-color: #ff7a00;
	box-shadow: 0 8px 22px rgba(255, 122, 0, 0.18);
	background: #fff9f4;
}

.sim-card.sim-selected .sim-check {
	opacity: 1;
	transform: scale(1);
}

.sim-hidden-card {
	display: none;
}

.sim-hidden-card.sim-show {
	display: block;
}

/* Show more. */
.sim-show-more-wrap {
	text-align: center;
	margin-top: 35px;
}

.sim-show-more {
	background: #ff7a00;
	color: #fff;
	border: none;
	padding: 18px 38px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.3s ease;
}

.sim-show-more:hover {
	background: #eb6d00;
}

/* No services. */
.sim-no-services {
	text-align: center;
	color: #7a7a7a;
	font-size: 15px;
	padding: 30px 0;
}

/* Actions. */
.sim-actions {
	display: flex;
	margin-top: 30px;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.sim-actions-right {
	justify-content: flex-end;
}

.sim-actions-split {
	justify-content: space-between;
}

/* Buttons. */
.sim-btn {
	border: none;
	padding: 15px 34px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.25s ease;
	font-family: inherit;
}

.sim-btn-primary {
	background: #ff7a00;
	color: #fff;
}

.sim-btn-primary:hover {
	background: #eb6d00;
}

.sim-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.sim-btn-ghost {
	background: #fff;
	color: #0d2c6c;
	border: 1px solid #e7edf5;
}

.sim-btn-ghost:hover {
	background: #f5f8fc;
}

/* Form card. */
.sim-form-card {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e7edf5;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(13, 44, 108, 0.06);
}

.sim-selected-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding-bottom: 20px;
	margin-bottom: 22px;
	border-bottom: 1px solid #eef2f7;
}

.sim-selected-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9aa3b2;
}

.sim-form {
	width: 100%;
}

.sim-selected-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sim-chip {
	background: #fff4ea;
	color: #eb6d00;
	border: 1px solid #ffd9b5;
	border-radius: 30px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
}

.sim-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.sim-field {
	display: flex;
	flex-direction: column;
}

.sim-field-full {
	grid-column: 1 / -1;
}

.sim-field label {
	font-size: 13.5px;
	font-weight: 600;
	color: #12357b;
	margin-bottom: 8px;
}

.sim-req {
	color: #ff7a00;
}

.sim-field input[type="text"],
.sim-field input[type="tel"],
.sim-field input[type="email"],
.sim-field textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid #e3e9f1;
	border-radius: 12px;
	font-size: 14px;
	font-family: inherit;
	color: #333;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: #fbfcfe;
}

.sim-field input::placeholder,
.sim-field textarea::placeholder {
	color: #b3bccb;
}

.sim-field input:focus,
.sim-field textarea:focus {
	outline: none;
	border-color: #ff7a00;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.sim-field textarea {
	resize: vertical;
	min-height: 60px;
}

/* Radio group as selectable pills. */
.sim-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sim-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid #e3e9f1;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	font-weight: 500;
	transition: 0.2s ease;
	margin: 0;
	background: #fbfcfe;
}

.sim-radio:hover {
	border-color: #ffc89a;
}

.sim-radio input {
	accent-color: #ff7a00;
	margin: 0;
}

.sim-radio:has(input:checked) {
	border-color: #ff7a00;
	background: #fff7f0;
	color: #eb6d00;
}

/* Errors. */
.sim-field-error {
	display: none;
	color: #d63638;
	font-size: 12.5px;
	margin-top: 6px;
}

.sim-field-error.sim-visible {
	display: block;
}

.sim-services-error {
	text-align: center;
	margin-top: 18px;
}

.sim-field.sim-has-error input,
.sim-field.sim-has-error textarea {
	border-color: #d63638;
}

.sim-form-error {
	display: none;
	margin: 20px auto 0;
	max-width: 760px;
	padding: 12px 16px;
	background: #fcebec;
	border: 1px solid #f3c2c4;
	border-radius: 10px;
	color: #d63638;
	font-size: 13.5px;
	text-align: center;
}

.sim-form-error.sim-visible {
	display: block;
}

/* Thank you. */
.sim-thankyou-inner {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
	padding: 40px 20px;
}

.sim-thankyou-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: #e9f7ef;
	color: #1a9c52;
	font-size: 38px;
	margin-bottom: 22px;
}

.sim-thankyou h2 {
	font-size: 28px;
	font-weight: 700;
	color: #0d2c6c;
	margin: 0 0 12px;
}

.sim-thankyou p {
	font-size: 15px;
	color: #555;
	line-height: 1.7;
	margin: 0;
}

/* Responsive. */
@media (max-width: 1024px) {
	.sim-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.sim-heading h2 {
		font-size: 28px;
	}
}

@media (max-width: 768px) {
	.sim-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sim-heading h2 {
		font-size: 24px;
	}

	.sim-card-inner {
		min-height: 165px;
		padding: 18px 10px;
	}

	.sim-form-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.sim-wrap {
		padding: 50px 15px;
	}

	.sim-form-card {
		padding: 22px 18px;
	}

	.sim-heading h2 {
		font-size: 22px;
	}

	.sim-grid {
		gap: 12px;
	}

	.sim-card h3 {
		font-size: 14px;
	}

	.sim-card p {
		font-size: 11px;
	}

	.sim-show-more,
	.sim-actions-right .sim-btn {
		width: 100%;
	}

	.sim-actions-split {
		gap: 12px;
	}

	.sim-actions-split .sim-btn {
		flex: 1;
	}
}
