/**
 * Public CSS for FMM Booking Form - Multi-step version.
 */

:root {
  /* Brand Theme Colors matching crmfisher */
  --fmm-brand-green: #22c55e;           /* Sleek green (same as --fishers-accent) */
  --fmm-brand-green-dark: #15803d;      /* Deep green */
  --fmm-brand-yellow: #f59e0b;          /* Orange-yellow warm (same as --fishers-warm) */
  --fmm-brand-dark: #0f172a;            /* Slate-900 (same as --fishers-text) */
  --fmm-brand-dark-sec: #1e293b;        /* Slate-800 */
  
  /* Primary Colors mapped to Brand */
  --fmm-primary-blue: var(--fmm-brand-green);
  --fmm-primary-dark: var(--fmm-brand-green-dark);
  --fmm-secondary-blue: var(--fmm-brand-yellow);
  
  /* Background Colors */
  --fmm-bg-white: #ffffff;
  --fmm-bg-light: #f8fafc;               /* Section backgrounds */
  --fmm-bg-gray: #f3f5f9;                /* Card backgrounds (same as --fishers-bg) */
  
  /* Text Colors */
  --fmm-text-heading: var(--fmm-brand-dark);  
  --fmm-text-body: #334155;              /* Slate-700 */
  --fmm-text-muted: #64748b;             /* Slate-500 (same as --fishers-muted) */
  
  /* Status Colors */
  --fmm-success: #22c55e;
  --fmm-warning: #f59e0b;
  --fmm-error: #ef4444;
  --fmm-info: #3b82f6;
  
  /* Borders */
  --fmm-border-light: #dbe3ef;           /* same as --fishers-line */
  --fmm-border-medium: #cbd5e1;

  /* Theme mappings */
  --fmm-primary: var(--fmm-brand-green);
  --fmm-primary-hover: var(--fmm-brand-green-dark);
  --fmm-accent: var(--fmm-brand-green);
  --fmm-bg-card: var(--fmm-bg-white);
  --fmm-bg-section: var(--fmm-bg-light);
  --fmm-border: var(--fmm-border-light);
  --fmm-border-field: var(--fmm-border-light);
  --fmm-text-main: var(--fmm-text-body);
  --fmm-text-label: var(--fmm-text-heading);
  
  --fmm-shadow: 0 18px 45px rgba(15, 23, 42, 0.08); /* same as --fishers-shadow */
  --fmm-shadow-hover: 0 22px 60px rgba(15, 23, 42, 0.12);
  --fmm-radius: 20px;                     /* same as --fishers-radius */
  --fmm-radius-inner: 12px;
}

.fmm-booking-container {
	max-width: 680px;
	margin: 2rem auto;
	font-family: "Roboto", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--fmm-text-main);
	line-height: 1.5;
}

.fmm-glass-card {
	background: var(--fmm-bg-card);
	border: 1px solid var(--fmm-border);
	border-radius: var(--fmm-radius);
	box-shadow: var(--fmm-shadow);
	padding: 32px;
	transition: all 0.3s ease;
}

.fmm-glass-card:hover {
	box-shadow: var(--fmm-shadow-hover);
	transform: translateY(-4px);
}

/* Header */
.fmm-form-header {
	margin-bottom: 1.75rem;
	text-align: center;
}

.fmm-form-header h2 {
	margin: 0 0 0.5rem 0;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--fmm-text-heading);
	font-family: "Yantramanav", "Roboto", sans-serif;
}

.fmm-form-header p {
	margin: 0;
	color: var(--fmm-text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Steps Progress Header Timeline */
.fmm-steps-progress {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2.5rem;
	padding: 0 10px;
}

.fmm-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
}

.fmm-progress-step .step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #cbd5e1;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid #ffffff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fmm-progress-step .step-label {
	margin-top: 8px;
	font-size: 0.725rem;
	font-weight: 700;
	color: var(--fmm-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	text-align: center;
}

.fmm-progress-line {
	flex-grow: 1;
	height: 3px;
	background-color: #e2e8f0;
	margin: 0 12px;
	position: relative;
	top: -12px;
	z-index: 1;
	border-radius: 2px;
}

.fmm-progress-line.completed {
	background-color: var(--fmm-primary);
}

/* Progress active & completed states */
.fmm-progress-step.active .step-num {
	background-color: var(--fmm-primary);
	color: var(--fmm-brand-dark);
	box-shadow: 0 0 0 4px rgba(129, 215, 66, 0.25);
}

.fmm-progress-step.active .step-label {
	color: var(--fmm-brand-green-dark);
}

.fmm-progress-step.completed .step-num {
	background-color: var(--fmm-brand-green-dark);
	color: #ffffff;
}

.fmm-progress-step.completed .step-label {
	color: var(--fmm-brand-green-dark);
}

/* Step pane transition default styles */
.fmm-step-pane {
	animation: fmm-fade-in 0.3s ease-out;
}

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

/* Sections inside step panes */
.fmm-form-section {
	margin-bottom: 1.5rem;
}

.fmm-section-title {
	display: flex;
	align-items: center;
	margin: 0 0 1.25rem 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--fmm-brand-green-dark);
	border-bottom: 2px solid var(--fmm-border);
	padding-bottom: 8px;
	font-family: "Yantramanav", "Roboto", sans-serif;
}

/* Grid & Layout */
.fmm-grid-row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -8px;
	margin-right: -8px;
}

.fmm-field-group {
	box-sizing: border-box;
	padding: 0 8px;
	margin-bottom: 1.25rem;
}

.fmm-col-12 { width: 100%; }
.fmm-col-8  { width: 66.666%; }
.fmm-col-6  { width: 50%; }
.fmm-col-5  { width: 41.666%; }
.fmm-col-4  { width: 33.333%; }
.fmm-col-3  { width: 25%; }

/* Form Inputs */
.fmm-field-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--fmm-text-label);
}

.fmm-field-group label .required {
	color: #ef4444;
	margin-left: 2px;
}

.fmm-field-group input[type="text"],
.fmm-field-group input[type="email"],
.fmm-field-group input[type="tel"],
.fmm-field-group input[type="datetime-local"],
.fmm-field-group select,
.fmm-field-group textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
	border: 1px solid #cbd5e1;
	border-radius: var(--fmm-radius-inner);
	background-color: #ffffff;
	color: var(--fmm-text-main);
	transition: all 0.2s ease;
	outline: none;
}

.fmm-field-group input:focus,
.fmm-field-group select:focus,
.fmm-field-group textarea:focus {
	border-color: var(--fmm-accent);
	box-shadow: 0 0 0 2px var(--fmm-accent);
}

.fmm-field-group textarea {
	resize: vertical;
}

/* Address Slide Container */
.fmm-address-container {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

/* Buttons, Multi-Step Nav Actions */
.fmm-step-actions {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--fmm-border);
}

.fmm-actions-flex {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.fmm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--fmm-brand-green) 0%, #9ce65d 100%);
	color: var(--fmm-brand-dark);
	border: none;
	border-radius: var(--fmm-radius-inner);
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	text-decoration: none;
	box-shadow: 0 4px 10px -2px rgba(129, 215, 66, 0.3);
}

.fmm-btn:hover {
	background: linear-gradient(135deg, var(--fmm-brand-yellow) 0%, var(--fmm-brand-green) 100%);
	color: var(--fmm-brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -5px rgba(129, 215, 66, 0.4);
}

.fmm-btn:active {
	transform: translateY(0);
}

.fmm-btn:disabled {
	background: var(--fmm-border-medium);
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Secondary Navigation Buttons */
.fmm-btn-secondary {
	background: #ffffff;
	color: var(--fmm-brand-dark);
	border: 2px solid var(--fmm-brand-green-dark);
	border-radius: var(--fmm-radius-inner);
	font-weight: 600;
	padding: 14px 32px;
	transition: all 0.3s ease;
	width: auto;
	min-width: 120px;
	box-sizing: border-box;
}

.fmm-btn-secondary:hover {
	background: var(--fmm-bg-light);
	color: var(--fmm-brand-green-dark);
	border-color: var(--fmm-brand-green-dark);
}

.fmm-btn-secondary:active {
	transform: none;
}

.fmm-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: fmm-spin 1s ease-in-out infinite;
	margin-left: 12px;
	display: inline-block;
}

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

/* Feedback Messages */
.fmm-feedback-box {
	padding: 1rem;
	border-radius: var(--fmm-radius-inner);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	text-align: center;
}

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

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

.fmm-disabled-msg {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	color: var(--fmm-text-muted);
	padding: 1.5rem;
	text-align: center;
	border-radius: var(--fmm-radius-inner);
}

/* Interactive Calendar Styles */
.fmm-calendar-box {
	background-color: var(--fmm-bg-section);
	border: 1px solid var(--fmm-border);
	border-radius: var(--fmm-radius-inner);
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.fmm-cal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.fmm-cal-month-title {
	font-weight: 700;
	color: var(--fmm-primary-dark);
	font-size: 1rem;
}

.fmm-cal-btn {
	background: #ffffff;
	border: 1px solid var(--fmm-border);
	border-radius: 4px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fmm-text-main);
	transition: all 0.2s;
}

.fmm-cal-btn:hover {
	background: var(--fmm-border);
}

.fmm-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	text-align: center;
}

.fmm-cal-day-label {
	font-weight: 600;
	font-size: 0.75rem;
	color: var(--fmm-text-muted);
	padding: 4px 0;
	text-transform: uppercase;
}

.fmm-cal-day {
	padding: 8px 0;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	color: var(--fmm-text-main);
}

.fmm-cal-day:hover:not(.fmm-cal-empty) {
	background-color: var(--fmm-border);
}

.fmm-cal-empty {
	cursor: default;
}

.fmm-cal-today {
	font-weight: 700;
	border: 1px dashed var(--fmm-primary);
}

.fmm-cal-booked {
	background-color: rgba(238, 238, 34, 0.15);
	border: 1px solid rgba(238, 238, 34, 0.4);
	color: #666600;
}

.fmm-cal-booked::after {
	content: '';
	position: absolute;
	bottom: 3px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: var(--fmm-brand-green-dark);
}

.fmm-cal-selected {
	background-color: var(--fmm-primary) !important;
	color: var(--fmm-brand-dark) !important;
	font-weight: 700;
}

.fmm-cal-selected::after {
	background-color: #ffffff !important;
}

.fmm-cal-details {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px dashed var(--fmm-border);
	font-size: 0.875rem;
	color: var(--fmm-text-main);
}

.fmm-cal-details-title {
	font-weight: 600;
	margin-bottom: 4px;
}

.fmm-cal-details-list {
	color: var(--fmm-text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.fmm-glass-card {
		padding: 1.5rem;
	}

	.fmm-col-6,
	.fmm-col-5,
	.fmm-col-4,
	.fmm-col-3,
	.fmm-col-8 {
		width: 100%;
	}

	.fmm-field-group {
		margin-bottom: 1rem;
	}

	.fmm-steps-progress {
		margin-bottom: 1.5rem;
	}

	.fmm-progress-step .step-label {
		display: none; /* Hide text labels on mobile to save space */
	}

	.fmm-progress-line {
		top: 0;
	}
}

/* Custom Helpers & Service Layouts */
.fmm-card {
  background: var(--fmm-bg-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--fmm-border-light);
  transition: all 0.3s ease;
}

.fmm-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.fmm-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--fmm-primary-blue) 0%, var(--fmm-secondary-blue) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 28px;
}

.fmm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fmm-section {
  padding: 64px 0;
}

.fmm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fmm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fmm-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.fmm-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.fmm-badge-confirmed {
  background: rgba(129, 215, 66, 0.15);
  color: var(--fmm-brand-green-dark);
}

.fmm-badge-completed {
  background: #d1fae5;
  color: #065f46;
}

.fmm-badge-cancelled {
  background: #f3f4f6;
  color: #374151;
}
