/* Phoenix JKD SMS Chat Widget */
.pjkd-chat-btn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #DE2A29;
	border: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background 0.2s ease;
	padding: 0;
}
.pjkd-chat-btn:hover {
	background: #c31f1e;
	transform: scale(1.05);
}
.pjkd-chat-btn svg {
	width: 30px;
	height: 30px;
	fill: #ffffff;
}

.pjkd-chat-panel {
	position: fixed;
	right: 24px;
	bottom: 100px;
	width: 380px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 130px);
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 0;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
	z-index: 9999;
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: 'Roboto', Arial, sans-serif;
}
.pjkd-chat-panel.open {
	display: flex;
}

.pjkd-chat-header {
	background: #DE2A29;
	color: #ffffff;
	padding: 24px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.pjkd-chat-header-title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.3px;
}
.pjkd-chat-header-sub {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.9;
	margin-top: 2px;
}
.pjkd-chat-close {
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: 0.9;
}
.pjkd-chat-close:hover { opacity: 1; }

.pjkd-chat-body {
	padding: 20px;
	overflow-y: auto;
	color: #ffffff;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.pjkd-chat-body::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}
.pjkd-chat-intro {
	font-size: 13px;
	color: #d0d0d0;
	margin-bottom: 16px;
	line-height: 1.5;
}

.pjkd-chat-field {
	margin-bottom: 10px;
}
.pjkd-chat-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #b8b8b8;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.pjkd-chat-field input,
.pjkd-chat-field textarea {
	width: 100%;
	height: 52px;
	background: #0a0a0a;
	border: 1px solid #2a2a2a;
	border-radius: 0;
	padding: 0 14px;
	color: #ffffff;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	margin: 0;
	display: block;
	vertical-align: top;
}
.pjkd-chat-field textarea {
	height: auto;
	min-height: 90px;
	padding: 12px 14px;
	resize: vertical;
	line-height: 1.4;
}
.pjkd-chat-field input:focus,
.pjkd-chat-field textarea:focus {
	outline: none;
	border-color: #DE2A29;
}
.pjkd-chat-field input::placeholder,
.pjkd-chat-field textarea::placeholder {
	color: #666;
	opacity: 1;
}

.pjkd-chat-consent {
	background: #0a0a0a;
	border: 1px solid #2a2a2a;
	border-radius: 0;
	padding: 14px;
	margin-top: 0;
	margin-bottom: 10px;
}
.pjkd-chat-consent-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.pjkd-chat-consent input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	background: #0a0a0a;
	border: 2px solid #444;
	border-radius: 0;
	cursor: pointer;
	position: relative;
	margin: 0;
	flex-shrink: 0;
	margin-top: 2px;
}
.pjkd-chat-consent input[type="checkbox"]:checked {
	background: #DE2A29;
	border-color: #DE2A29;
}
.pjkd-chat-consent input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.pjkd-chat-consent label {
	font-size: 12px;
	color: #d0d0d0;
	line-height: 1.5;
	cursor: pointer;
}
.pjkd-chat-consent a {
	color: #f5b301;
	text-decoration: underline;
}

.pjkd-chat-err {
	background: #2a0a0a;
	border: 1px solid #DE2A29;
	color: #ff8a8a;
	font-size: 13px;
	line-height: 1.4;
	padding: 10px 12px;
	margin-bottom: 10px;
}

.pjkd-chat-submit {
	width: 100%;
	height: 52px;
	background: #DE2A29;
	color: #ffffff;
	border: none;
	border-radius: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}
.pjkd-chat-submit:hover:not(:disabled) {
	background: #c31f1e;
}
.pjkd-chat-submit:disabled {
	background: #444;
	color: #888;
	cursor: not-allowed;
}

.pjkd-chat-success {
	padding: 30px 20px;
	text-align: center;
	color: #ffffff;
}
.pjkd-chat-success-icon {
	width: 56px;
	height: 56px;
	background: #DE2A29;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}
.pjkd-chat-success-icon svg {
	width: 28px;
	height: 28px;
	fill: #ffffff;
}
.pjkd-chat-success h4 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #ffffff;
}
.pjkd-chat-success p {
	font-size: 13px;
	color: #b8b8b8;
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 480px) {
	.pjkd-chat-panel {
		right: 12px;
		left: 12px;
		width: auto;
		bottom: 90px;
	}
	.pjkd-chat-btn {
		right: 16px;
		bottom: 16px;
	}
}
