/* Center CRM Pro - Premium Warm Aesthetic Frontend Styles (Agadir Cabinet Theme) */

/* Wrapper Container */
.ccrm-booking-wrapper,
.ccrm-calendar-shortcode-wrapper {
	max-width: 900px;
	margin: 30px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
	box-sizing: border-box;
}

.ccrm-booking-wrapper *,
.ccrm-calendar-shortcode-wrapper * {
	box-sizing: border-box;
}

/* Card Container matching the website soft cream & warm golden aesthetic */
.ccrm-booking-card,
.ccrm-calendar-card {
	background: linear-gradient(135deg, #ffffff 0%, #fffdf7 50%, #fefce8 100%);
	border-radius: 24px;
	box-shadow: 0 20px 40px -15px rgba(217, 119, 6, 0.12), 0 0 0 1px rgba(251, 191, 36, 0.2);
	border: 1px solid rgba(251, 191, 36, 0.25);
	padding: 36px;
	position: relative;
	overflow: hidden;
}

/* Decorative Pill Tag Badge */
.ccrm-badge-tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background-color: #fef9c3;
	border: 1px solid #fef08a;
	color: #854d0e;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 14px;
}

/* Headers */
.ccrm-booking-header,
.ccrm-calendar-header {
	text-align: center;
	margin-bottom: 28px;
}

.ccrm-booking-header h3,
.ccrm-calendar-header h3 {
	margin: 0 0 8px 0;
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.ccrm-booking-header h3 span,
.ccrm-calendar-header h3 span {
	color: #d97706;
}

.ccrm-booking-header p,
.ccrm-calendar-header p {
	margin: 0;
	font-size: 15px;
	color: #78716c;
	line-height: 1.5;
}

/* Form Controls */
.ccrm-form-group {
	margin-bottom: 20px;
}

.ccrm-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 8px;
}

.ccrm-required {
	color: #dc2626;
}

.ccrm-form-group input,
.ccrm-form-group select {
	width: 100%;
	padding: 14px 18px;
	font-size: 15px;
	border: 1px solid #e7e5e4;
	border-radius: 14px;
	background-color: #ffffff;
	color: #0f172a;
	transition: all 0.25s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ccrm-form-group input:focus,
.ccrm-form-group select:focus {
	outline: none;
	border-color: #d97706;
	background-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.ccrm-form-row {
	display: flex;
	gap: 16px;
}

.ccrm-col {
	flex: 1;
}

/* Primary Warm Golden Button (Matching "Prendre rendez-vous" website button) */
.ccrm-btn-primary {
	width: 100%;
	background: linear-gradient(135deg, #eab308 0%, #d97706 100%);
	color: #0f172a !important;
	border: none;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 800;
	border-radius: 14px;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ccrm-btn-primary:hover {
	background: linear-gradient(135deg, #ca8a04 0%, #b45309 100%);
	transform: translateY(-2px);
	box-shadow: 0 14px 24px -4px rgba(217, 119, 6, 0.5);
}

/* Alerts */
.ccrm-alert {
	padding: 16px 20px;
	border-radius: 12px;
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
}

.ccrm-alert-success {
	background-color: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.ccrm-alert-error {
	background-color: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* FullCalendar Public Frontend Overrides to Match Website Aesthetic */
#ccrm-public-fullcalendar {
	border-radius: 16px;
	overflow: hidden;
}

.fc .fc-toolbar-title {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
}

.fc .fc-button-primary {
	background-color: #fef3c7 !important;
	border-color: #fde68a !important;
	color: #78350f !important;
	font-weight: 700 !important;
	border-radius: 10px !important;
	padding: 8px 14px !important;
	text-transform: capitalize !important;
	box-shadow: none !important;
}

.fc .fc-button-primary:hover {
	background-color: #fde68a !important;
	color: #451a03 !important;
}

.fc .fc-button-primary:disabled {
	background-color: #fefce8 !important;
	color: #a16207 !important;
	opacity: 0.6;
}

.fc .fc-button-active {
	background-color: #eab308 !important;
	color: #0f172a !important;
}

.fc .fc-theme-standard td, 
.fc .fc-theme-standard th {
	border-color: #fef08a !important;
}

.fc .fc-col-header-cell {
	background-color: #fefce8 !important;
	padding: 10px 0 !important;
}

.fc .fc-col-header-cell-cushion {
	color: #854d0e !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

.fc .fc-timegrid-slot-label-cushion {
	color: #78716c !important;
	font-weight: 600 !important;
}

.fc-event {
	border-radius: 8px !important;
	padding: 4px 8px !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2) !important;
}

.fc .fc-timegrid-slot {
	height: 44px !important;
	background-color: #ffffff !important;
}

.fc .fc-timegrid-slot-lane {
	border-bottom: 1px solid #fef3c7 !important;
}

.fc .fc-timegrid-col {
	background-color: #ffffff !important;
}

.fc .fc-timegrid-col.fc-day-today {
	background-color: #fffdf5 !important;
}

@media (max-width: 640px) {
	.ccrm-form-row {
		flex-direction: column;
		gap: 0;
	}
	.ccrm-booking-card,
	.ccrm-calendar-card {
		padding: 24px;
	}
	.ccrm-datetime-layout {
		grid-template-columns: 1fr !important;
	}
}

/* Custom Interactive Datepicker & Time Slot Selector UI */
.ccrm-datetime-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 8px;
}

.ccrm-dp-container,
.ccrm-ts-container {
	background: #ffffff;
	border: 1px solid #fef08a;
	border-radius: 18px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.04);
}

.ccrm-dp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ccrm-dp-title {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}

.ccrm-dp-nav {
	background: linear-gradient(135deg, #eab308 0%, #d97706 100%) !important;
	border: none !important;
	border-radius: 12px !important;
	width: 42px !important;
	height: 42px !important;
	cursor: pointer !important;
	font-size: 20px !important;
	font-weight: 900 !important;
	color: #0f172a !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3) !important;
}

.ccrm-dp-nav:hover {
	background: linear-gradient(135deg, #ca8a04 0%, #b45309 100%) !important;
	transform: scale(1.08) !important;
}

.ccrm-dp-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	color: #78716c;
	margin-bottom: 8px;
}

.ccrm-dp-weekdays .text-red {
	color: #dc2626;
}

.ccrm-dp-days-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.ccrm-dp-day-cell {
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #ffffff;
	color: #1e293b;
	border: 1px solid transparent;
}

.ccrm-dp-day-cell:hover:not(.disabled):not(.holiday) {
	background: #fef3c7;
	color: #78350f;
}

.ccrm-dp-day-cell.selected {
	background: linear-gradient(135deg, #eab308 0%, #d97706 100%) !important;
	color: #0f172a !important;
	font-weight: 800 !important;
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

.ccrm-dp-day-cell.disabled {
	opacity: 0.35;
	cursor: not-allowed !important;
	background: #f5f5f4 !important;
	color: #a8a29e !important;
	text-decoration: line-through;
}

.ccrm-dp-day-cell.holiday {
	opacity: 0.5;
	cursor: not-allowed !important;
	background: #fef2f2 !important;
	color: #dc2626 !important;
	text-decoration: line-through;
}

.ccrm-ts-header {
	margin-bottom: 14px;
}

.ccrm-ts-title {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 2px 0;
}

.ccrm-ts-date-sub {
	font-size: 12px;
	color: #78716c;
	font-weight: 600;
}

.ccrm-ts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
	max-height: 250px;
	overflow-y: auto;
	padding-right: 4px;
}

.ccrm-ts-empty {
	grid-column: 1 / -1;
	font-size: 13px;
	color: #78716c;
	text-align: center;
	margin: 30px 0;
}

.ccrm-ts-pill {
	padding: 10px 4px;
	text-align: center;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	background: #fefce8;
	border: 1px solid #fef08a;
	color: #854d0e;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ccrm-ts-pill:hover:not(.booked) {
	background: #fef3c7;
	transform: translateY(-1px);
}

.ccrm-ts-pill.selected {
	background: linear-gradient(135deg, #eab308 0%, #d97706 100%) !important;
	color: #0f172a !important;
	border-color: #d97706 !important;
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

.ccrm-ts-pill.booked {
	opacity: 0.4;
	cursor: not-allowed !important;
	background: #f5f5f4 !important;
	color: #a8a29e !important;
	border-color: #e7e5e4 !important;
	text-decoration: line-through;
}

