/* Trigger button (shortcode) */
.slc-trigger-btn {
	display: inline-block;
	background: #3c8c11;
	color: #fff !important;
	padding: 12px 28px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.slc-trigger-btn:hover {
	background: #87CEEB;
}

/* Overlay */
.slc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 30, 45, 0.6);
}

.slc-modal.is-open {
	display: flex;
}

.slc-modal[hidden] {
	display: none !important;
}

.slc-modal [hidden] {
	display: none !important;
}

.slc-modal *,
.slc-modal *::before,
.slc-modal *::after {
	box-sizing: border-box;
}

.slc-dialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 92vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 14px;
	padding: 32px 30px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	color: #2b3a4a;
	font-size: 15px;
	line-height: 1.5;
}

.slc-modal .slc-close {
	position: absolute !important;
	top: 10px;
	right: 12px;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #6b7785 !important;
	font-size: 28px !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: none !important;
}

.slc-modal .slc-close:hover {
	background: #eef3f7 !important;
	color: #2b3a4a !important;
}

.slc-title {
	margin: 0 0 6px !important;
	font-size: 24px !important;
	line-height: 1.25 !important;
	color: #1d2b3a !important;
}

.slc-sub {
	margin: 0 0 18px !important;
	color: #6b7785;
}

/* Step 1: country picker */
.slc-modal .slc-search {
	width: 100% !important;
	height: auto !important;
	padding: 12px 14px !important;
	margin: 0 0 12px !important;
	border: 1px solid #d5dde5 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #2b3a4a !important;
	font-size: 15px !important;
	box-shadow: none !important;
	outline: none !important;
}

.slc-modal .slc-search:focus {
	border-color: #87CEEB !important;
	box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.35) !important;
}

.slc-country-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-height: 340px;
	overflow-y: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.slc-country-list li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.slc-modal .slc-country-item {
	width: 100% !important;
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 10px 12px !important;
	border: 1px solid #e6ecf1 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #2b3a4a !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	text-align: left !important;
	cursor: pointer;
	box-shadow: none !important;
	text-transform: none !important;
}

.slc-modal .slc-country-item:hover,
.slc-modal .slc-country-item:focus {
	background: #eaf6fc !important;
	border-color: #87CEEB !important;
	outline: none !important;
}

.slc-country-item img {
	width: 24px;
	height: 16px;
	object-fit: cover;
	border-radius: 2px;
	flex-shrink: 0;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.slc-country-item .slc-cn {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.slc-country-item .slc-cd {
	color: #8a97a6;
	font-size: 13px;
}

.slc-empty {
	text-align: center;
	color: #8a97a6;
	margin: 16px 0 0;
}

/* Step 2: form */
.slc-country-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 8px 12px;
	background: #f3f8fb;
	border-radius: 8px;
}

.slc-country-badge img {
	width: 24px;
	height: 16px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.slc-country-badge span {
	flex: 1;
	font-weight: 600;
}

.slc-modal .slc-change {
	padding: 4px 10px !important;
	border: none !important;
	background: transparent !important;
	color: #2a7fb0 !important;
	font-size: 13px !important;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none !important;
	text-transform: none !important;
}

.slc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}

.slc-modal .slc-grid input,
.slc-modal .slc-grid textarea {
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 1px solid #d5dde5 !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	color: #2b3a4a !important;
	font-size: 15px !important;
	font-family: inherit !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	outline: none !important;
}

.slc-modal .slc-grid input::placeholder,
.slc-modal .slc-grid textarea::placeholder {
	color: #8a97a6 !important;
	opacity: 1 !important;
}

.slc-modal .slc-grid input:focus,
.slc-modal .slc-grid textarea:focus,
.slc-modal .slc-phone:focus-within {
	border-color: #87CEEB !important;
	box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.35) !important;
}

.slc-modal .slc-grid textarea {
	resize: vertical;
	min-height: 110px;
}

.slc-grid .slc-full {
	grid-column: 1 / -1;
}

/* Phone field with country dial-code prefix */
.slc-phone {
	display: flex;
	align-items: stretch;
	border: 1px solid #d5dde5;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.slc-phone__prefix {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 4px 0 12px;
	color: #2a7fb0;
	font-weight: 600;
	white-space: nowrap;
}

.slc-phone__prefix img {
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
}

.slc-modal .slc-phone input {
	flex: 1;
	min-width: 0;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding-left: 8px !important;
}

.slc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit button: green, sky-blue on hover */
.slc-modal .slc-submit {
	display: inline-block !important;
	padding: 13px 34px !important;
	border: none !important;
	border-radius: 8px !important;
	background: #3c8c11 !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.15s ease;
}

.slc-modal .slc-submit:hover {
	background: #87CEEB !important;
}

.slc-modal .slc-submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.slc-status {
	min-height: 20px;
	margin: 12px 0 0 !important;
	font-size: 14px;
}

.slc-status--error {
	color: #d1242f;
}

/* Step 3: thank you */
.slc-done {
	text-align: center;
	padding: 10px 0;
}

.slc-done__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #3c8c11;
	color: #fff;
	font-size: 34px;
	line-height: 64px;
}

.slc-done__btn {
	margin-top: 6px;
}

/* Mobile */
@media (max-width: 600px) {
	.slc-dialog {
		padding: 28px 18px 22px;
	}

	.slc-country-list {
		grid-template-columns: 1fr;
	}

	.slc-grid {
		grid-template-columns: 1fr;
	}

	.slc-modal .slc-submit {
		width: 100%;
	}
}
