/* DDA Intake Widget styles
 * Scoped to widget elements so the host theme is never affected.
 */

#dda-trigger,
#dda-trigger *,
#dda-widget,
#dda-widget * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#dda-widget,
#dda-trigger {
	font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Floating trigger button ---------- */

#dda-trigger {
	position: fixed;
	bottom: 28px;
	right: 28px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1a4a8a, #0c3060);
	border: none;
	cursor: pointer;
	z-index: 9998;
	box-shadow: 0 8px 32px rgba(12, 48, 96, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s, box-shadow 0.2s;
	outline: none;
}
#dda-trigger:hover { transform: scale(1.08); }
#dda-trigger:active { transform: scale(0.96); }
#dda-trigger svg { width: 28px; height: 28px; }
#dda-trigger .icon-chat { display: block; }
#dda-trigger .icon-close { display: none; }
#dda-trigger.open .icon-chat { display: none; }
#dda-trigger.open .icon-close { display: block; }

#dda-trigger::after {
	content: '';
	position: absolute;
	top: 4px;
	right: 4px;
	width: 12px;
	height: 12px;
	background: #e85c3a;
	border-radius: 50%;
	border: 2px solid #0a1628;
	animation: ddaBadgePulse 2.5s ease-in-out infinite;
}
@keyframes ddaBadgePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}
#dda-trigger.open::after { display: none; }

/* ---------- Widget panel ---------- */

#dda-widget {
	position: fixed;
	bottom: 108px;
	right: 28px;
	width: 360px;
	max-width: calc(100vw - 40px);
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	z-index: 9999;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
	transform: translateY(20px) scale(0.95);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
#dda-widget.open {
	transform: translateY(0) scale(1);
	opacity: 1;
	pointer-events: all;
}

.dda-header {
	background: linear-gradient(160deg, #0c3060 0%, #1a5a9a 60%, #0e4080 100%);
	position: relative;
	overflow: hidden;
}
.dda-photo-area {
	position: relative;
	width: 100%;
	overflow: hidden;
}
.dda-photo-area img {
	width: 100%;
	height: auto;
	display: block;
}
.dda-photo-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(12, 48, 96, 0.2) 0%, rgba(7, 24, 48, 0.75) 100%);
}
.dda-header-text {
	padding: 14px 18px 16px;
}
.dda-firm-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: white;
	letter-spacing: 0.02em;
}
.dda-firm-sub {
	font-size: 0.65rem;
	color: rgba(255, 255, 255, 0.6);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 2px;
}
.dda-tagline {
	margin-top: 8px;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.5;
}
.dda-tagline strong {
	color: #c8a96e;
	font-weight: 600;
}

/* ---------- Action buttons ---------- */

.dda-options {
	padding: 14px 14px 0;
	background: #f8f9fb;
}
.dda-options-label {
	font-size: 0.7rem;
	font-weight: 600;
	color: #888;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 10px;
}
#dda-widget .dda-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	background: white;
	border: 1px solid #e8eaed;
	border-radius: 12px;
	cursor: pointer;
	text-align: left;
	transition: all 0.15s;
	margin-bottom: 8px;
	text-decoration: none;
	outline: none;
	color: inherit;
}
#dda-widget .dda-btn:hover {
	border-color: #1a5a9a;
	background: #f0f6ff;
	transform: translateX(2px);
	box-shadow: 0 2px 12px rgba(26, 90, 154, 0.12);
}
#dda-widget .dda-btn:active { transform: translateX(0); }

.dda-btn-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.dda-btn-icon svg { width: 18px; height: 18px; }
.icon-schedule { background: #EBF4FF; }
.icon-schedule svg { stroke: #1a5a9a; }
.icon-chat-btn { background: #E8F8F2; }
.icon-chat-btn svg { stroke: #0a7a52; }
.icon-text { background: #F0EEFF; }
.icon-text svg { stroke: #5b4fcf; }
.icon-call { background: #FFF4E6; }
.icon-call svg { stroke: #c47800; }
.icon-form { background: #FFF0ED; }
.icon-form svg { stroke: #c04020; }

.dda-btn-title {
	font-size: 0.88rem;
	font-weight: 600;
	color: #1a1a2e;
	display: block;
}
.dda-btn-sub {
	font-size: 0.75rem;
	color: #888;
	display: block;
	margin-top: 1px;
}
.dda-btn-arrow {
	margin-left: auto;
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.15s, transform 0.15s;
}
#dda-widget .dda-btn:hover .dda-btn-arrow {
	opacity: 1;
	transform: translateX(2px);
}

.dda-footer {
	padding: 12px 14px 16px;
	background: #f8f9fb;
	text-align: center;
	border-top: 1px solid #eee;
}
.dda-footer p {
	font-size: 0.72rem;
	color: #aaa;
}
.dda-footer strong {
	color: #0c3060;
	font-weight: 600;
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
	#dda-widget {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		border-radius: 20px 20px 0 0;
	}
	#dda-trigger {
		bottom: 20px;
		right: 20px;
	}
}
