/*
 * Discovery Call — public widget + modal styling.
 */

.discovery-widget {
	margin: 0 0 16px;
}

.discovery-widget__cta {
	display: inline-flex;
	align-items: center;
	background: #f0f3ff;
	color: #4338ca;
	border: 1px solid #c7d2fe;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.discovery-widget__cta:hover {
	background: #e0e7ff;
	border-color: #a5b4fc;
}

/* CTA placed inside the "Book a Session" sidebar card on the expert profile.
   Full-width, sits between the heading and the package picker so the free
   option is unmissable next to the paid options. */
.expert-booking-discovery-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	margin: 0.75rem 0 1rem;
	padding: 0.75rem 1rem;
	background: #f0f3ff;
	color: #4338ca;
	border: 1px solid #c7d2fe;
	border-radius: 0.625rem;
	font-weight: 600;
	font-size: 0.9375rem;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.expert-booking-discovery-cta:hover {
	background: #e0e7ff;
	border-color: #a5b4fc;
}
.expert-booking-discovery-cta svg {
	flex-shrink: 0;
}

.discovery-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}
.discovery-modal[hidden] { display: none; }

.discovery-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(2px);
}

.discovery-modal__shell {
	position: relative;
	max-width: 540px;
	margin: 80px auto;
	background: #fff;
	border-radius: 14px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
	max-height: 80vh;
	overflow-y: auto;
}

.discovery-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: transparent;
	border: 0;
	font-size: 24px;
	color: #6b7280;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
}
.discovery-modal__close:hover { color: #111827; }

.discovery-modal__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 600;
	color: #0f172a;
}

.discovery-modal__subtitle {
	margin: 0 0 24px;
	color: #6b7280;
	font-size: 14px;
}

.discovery-modal__slots {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.discovery-modal__loading,
.discovery-modal__empty {
	color: #6b7280;
	text-align: center;
	padding: 32px 0;
	font-size: 14px;
}

.discovery-modal__day-label {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.discovery-modal__day-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 8px;
}

.discovery-modal__slot {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 6px;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	color: #374151;
	transition: all 0.15s ease;
}
.discovery-modal__slot:hover {
	border-color: #4338ca;
	background: #f0f3ff;
	color: #4338ca;
}

.discovery-modal__form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.discovery-modal__label {
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	margin-top: 8px;
}

.discovery-modal__input,
.discovery-modal__textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.discovery-modal__input:focus,
.discovery-modal__textarea:focus {
	outline: none;
	border-color: #4338ca;
	box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}
.discovery-modal__textarea { resize: vertical; min-height: 70px; }

.discovery-modal__actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	justify-content: flex-end;
}

.discovery-modal__btn-primary,
.discovery-modal__btn-secondary {
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	border: 1px solid transparent;
	text-decoration: none;
	display: inline-block;
}
.discovery-modal__btn-primary {
	background: #4338ca;
	color: #fff;
}
.discovery-modal__btn-primary:hover { background: #3730a3; }
.discovery-modal__btn-secondary {
	background: #fff;
	color: #4b5563;
	border-color: #d1d5db;
}
.discovery-modal__btn-secondary:hover { background: #f9fafb; }

.discovery-modal__error {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	margin-top: 12px;
}

.discovery-modal__success {
	text-align: center;
	padding: 16px 0;
}
.discovery-modal__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #047857;
	font-size: 28px;
	margin: 0 0 16px;
}
.discovery-modal__success-detail {
	margin: 12px 0 24px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

@media ( max-width: 640px ) {
	.discovery-modal__shell { margin: 32px 16px; padding: 24px; }
}

/* ------ Expert dashboard panel ------ */

.discovery-dashboard {
	background: #fff;
	border: 1px solid #e6e8ee;
	border-radius: 12px;
	padding: 28px;
	margin: 24px 0;
}

.discovery-dashboard__header {
	margin-bottom: 20px;
}

.discovery-dashboard__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 600;
	color: #0f172a;
}

.discovery-dashboard__subtitle {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.5;
}

.discovery-dashboard__toggle-row {
	padding: 12px 0 20px;
	border-bottom: 1px solid #f1f3f6;
	margin-bottom: 20px;
}

.discovery-dashboard__toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
.discovery-dashboard__toggle input { display: none; }
.discovery-dashboard__toggle-track {
	width: 40px;
	height: 22px;
	border-radius: 11px;
	background: #d1d5db;
	position: relative;
	transition: background 0.15s ease;
}
.discovery-dashboard__toggle-track::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}
.discovery-dashboard__toggle input:checked + .discovery-dashboard__toggle-track {
	background: #4338ca;
}
.discovery-dashboard__toggle input:checked + .discovery-dashboard__toggle-track::after {
	transform: translateX(18px);
}
.discovery-dashboard__toggle-label {
	font-size: 14px;
	color: #1f2937;
	font-weight: 500;
}

.discovery-dashboard__schedule-help {
	margin: 0 0 16px;
	color: #6b7280;
	font-size: 13px;
}

.discovery-dashboard__day-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #f8f9fb;
}
.discovery-dashboard__day-check {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 140px;
	font-size: 14px;
	color: #1f2937;
	cursor: pointer;
}
.discovery-dashboard__day-times {
	display: flex;
	align-items: center;
	gap: 8px;
}
.discovery-dashboard__day-times input[type="time"] {
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 13px;
	font-family: inherit;
}
.discovery-dashboard__day-sep {
	color: #9ca3af;
	font-size: 13px;
}

.discovery-dashboard__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

.discovery-dashboard__save {
	background: #4338ca;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.discovery-dashboard__save:hover { background: #3730a3; }
.discovery-dashboard__save:disabled { background: #a5a8d0; cursor: default; }

.discovery-dashboard__status {
	font-size: 13px;
}
.discovery-dashboard__status.is-success { color: #047857; }
.discovery-dashboard__status.is-error { color: #b91c1c; }
