/* Floating Contact & SMS Suite — frontend */

.fcsms-stack {
	position: fixed;
	bottom: var(--fcsms-bottom, 90px);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
}
.fcsms-stack.fcsms-right { right: 18px; }
.fcsms-stack.fcsms-left  { left: 18px; }

.fcsms-btn {
	position: relative;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	transition: transform .15s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.fcsms-btn:hover,
.fcsms-btn:focus-visible {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
	outline: none;
}
.fcsms-btn svg { width: 28px; height: 28px; display: block; }

.fcsms-fb  { background: #1877f2; }
.fcsms-wa  { background: #25d366; }
.fcsms-tg  { background: #2aabee; }
.fcsms-sms { background: #ef5b2b; }

/* Soft halo like the screenshot */
.fcsms-btn::after {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	background: currentColor;
	opacity: .14;
	z-index: -1;
}

.fcsms-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: #ff3b30;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}
.fcsms-tg .fcsms-badge { background: #f5a623; }

/* ---------- Modal ---------- */
.fcsms-modal[hidden] { display: none; }
.fcsms-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.fcsms-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	backdrop-filter: blur(2px);
}
.fcsms-modal__box {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: #fff;
	border-radius: 18px;
	padding: 26px 22px 22px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	animation: fcsms-pop .18s ease;
	font-family: inherit;
}
@keyframes fcsms-pop {
	from { transform: translateY(12px) scale(.98); opacity: 0; }
	to   { transform: none; opacity: 1; }
}
.fcsms-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
}
.fcsms-modal__close:hover { color: #475569; }

.fcsms-modal__head { text-align: center; margin-bottom: 16px; }
.fcsms-modal__icon {
	display: inline-flex;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #ef5b2b;
	color: #fff;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}
.fcsms-modal__icon svg { width: 26px; height: 26px; }
.fcsms-modal__head h3 { margin: 0 0 6px; font-size: 19px; color: #0f172a; }
.fcsms-modal__head p  { margin: 0; font-size: 14px; color: #64748b; line-height: 1.45; }

.fcsms-field { display: block; margin-bottom: 12px; }
.fcsms-field__label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.fcsms-field input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 11px;
	font-size: 16px;
	color: #0f172a;
	background: #fff;
}
.fcsms-field input[type="tel"]:focus {
	border-color: #ef5b2b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(239, 91, 43, .15);
}

.fcsms-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.fcsms-consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 12.5px;
	color: #475569;
	line-height: 1.4;
	margin-bottom: 16px;
}
.fcsms-consent input { margin-top: 2px; flex: 0 0 auto; }

.fcsms-submit {
	width: 100%;
	padding: 13px 16px;
	border: 0;
	border-radius: 11px;
	background: #ef5b2b;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}
.fcsms-submit:hover { background: #d94d20; }
.fcsms-submit:disabled { opacity: .65; cursor: default; }

.fcsms-msg { margin: 12px 0 0; font-size: 13.5px; text-align: center; min-height: 18px; }
.fcsms-msg.is-error   { color: #dc2626; }
.fcsms-msg.is-success { color: #16a34a; }

.fcsms-form.is-done .fcsms-field,
.fcsms-form.is-done .fcsms-consent,
.fcsms-form.is-done .fcsms-submit { display: none; }

@media (max-width: 480px) {
	.fcsms-btn { width: 50px; height: 50px; }
	.fcsms-btn svg { width: 26px; height: 26px; }
}

/* ---------- Inline shortcode form ---------- */
.fcsms-inline {
	max-width: 480px;
	margin: 22px 0;
	font-family: inherit;
}
.fcsms-inline--card {
	background: #fff;
	border: 1px solid #eef1f5;
	border-radius: 16px;
	padding: 22px 20px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.fcsms-inline--center { margin-left: auto; margin-right: auto; text-align: center; }

.fcsms-inline__head { margin-bottom: 14px; }
.fcsms-inline__icon {
	display: inline-flex;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #ef5b2b;
	color: #fff;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}
.fcsms-inline__icon svg { width: 24px; height: 24px; }
.fcsms-inline__title    { margin: 0 0 5px; font-size: 19px; color: #0f172a; line-height: 1.25; }
.fcsms-inline__subtitle { margin: 0; font-size: 14px; color: #64748b; line-height: 1.45; }

.fcsms-inline__row {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}
.fcsms-inline__input {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 11px;
	font-size: 16px;
	color: #0f172a;
	background: #fff;
}
.fcsms-inline__input:focus {
	border-color: #ef5b2b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(239, 91, 43, .15);
}
.fcsms-inline__submit {
	flex: 0 0 auto;
	width: auto;
	white-space: nowrap;
}
.fcsms-inline--center .fcsms-consent { text-align: left; }

.fcsms-form--inline.is-done .fcsms-inline__row,
.fcsms-form--inline.is-done .fcsms-consent { display: none; }

@media (max-width: 480px) {
	.fcsms-inline__row { flex-direction: column; }
	.fcsms-inline__submit { width: 100%; }
}

.fcsms-inline__name {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 8px;
}
