/**
 * Interview Scheduler Chatbot — Public chatbot styles
 * Clean, simple, mobile-friendly, branded via CSS variables.
 */

:root {
	--isc-primary: #1f3a5f;
	--isc-accent: #c8a45c;
}

.isc-chatbot-wrap {
	max-width: 560px;
	margin: 40px auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

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

.isc-chatbot-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

/* Header */
.isc-chatbot-header {
	background: var(--isc-primary);
	padding: 24px;
	text-align: center;
}

.isc-chatbot-header .isc-logo {
	max-height: 56px;
	max-width: 220px;
	width: auto;
}

.isc-chatbot-header .isc-company-name {
	color: #ffffff;
	font-size: 20px;
	font-weight: 700;
}

/* Body */
.isc-chatbot-body {
	padding: 24px;
}

/* Bot messages */
.isc-bot-message {
	background: #f4f5f7;
	border-radius: 12px;
	border-top-left-radius: 4px;
	padding: 14px 18px;
	margin-bottom: 14px;
	color: #2b2b2b;
	font-size: 15px;
	line-height: 1.55;
	animation: isc-fade-in 0.3s ease;
}

.isc-bot-message p {
	margin: 0 0 8px;
}

.isc-bot-message p:last-child {
	margin-bottom: 0;
}

.isc-bot-message a {
	color: var(--isc-primary);
	word-break: break-word;
}

.isc-bot-message.isc-bot-success {
	background: #e7f5ec;
	color: #1f7a36;
}

.isc-bot-message.isc-bot-error {
	background: #fbeaea;
	color: #b32d2e;
}

.isc-hint {
	font-size: 13px !important;
	color: #777 !important;
}

/* Input area */
.isc-input-area {
	margin-top: 6px;
	margin-bottom: 14px;
}

.isc-input-area textarea {
	width: 100%;
	border: 1px solid #d4d6da;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	resize: vertical;
	min-height: 96px;
	margin-bottom: 10px;
}

.isc-input-area textarea:focus {
	outline: none;
	border-color: var(--isc-primary);
	box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}

/* Buttons */
.isc-btn {
	display: inline-block;
	border: none;
	border-radius: 10px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.05s ease, opacity 0.15s ease;
}

.isc-btn:active {
	transform: translateY(1px);
}

.isc-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.isc-btn-primary {
	background: var(--isc-accent);
	color: #ffffff;
}

.isc-btn-secondary {
	background: #e8e9ec;
	color: #2b2b2b;
}

.isc-button-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

/* Recap box */
.isc-recap {
	background: #ffffff;
	border: 1px solid #d4d6da;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 10px 0;
	font-size: 14px;
}

.isc-recap ul {
	margin: 0;
	padding-left: 20px;
}

.isc-recap li {
	margin-bottom: 4px;
}

/* Candidate option buttons */
.isc-option-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.isc-option-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	background: #ffffff;
	border: 2px solid #d4d6da;
	border-radius: 10px;
	padding: 14px 16px;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.isc-option-btn:hover {
	border-color: var(--isc-accent);
	background: #fffdf8;
}

.isc-option-btn.isc-selected {
	border-color: var(--isc-accent);
	background: #fff7e8;
}

.isc-option-num {
	font-size: 12px;
	font-weight: 700;
	color: var(--isc-accent);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 3px;
}

.isc-option-text {
	font-size: 15px;
	color: #2b2b2b;
}

/* Footer */
.isc-footer-note {
	text-align: center;
	color: #9a9a9a;
	font-size: 12px;
	margin-top: 16px;
}

/* Spinner */
.isc-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: isc-spin 0.7s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}

@keyframes isc-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes isc-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Mobile */
@media screen and (max-width: 600px) {
	.isc-chatbot-wrap {
		margin: 20px auto;
	}

	.isc-chatbot-body {
		padding: 18px;
	}

	.isc-btn {
		width: 100%;
	}

	.isc-button-row .isc-btn {
		width: 100%;
	}
}
