/* Gấu – Đặt lịch: Multi-step booking form */

.gdl-booking {
	max-width: 680px;
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: inherit;
}

/* Progress bar */
.gdl-progress { margin-bottom: 2.5rem; }
.gdl-progress__bar {
	height: 4px;
	background: #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.75rem;
}
.gdl-progress__fill {
	height: 100%;
	width: 25%;
	background: #c1121f;
	border-radius: 4px;
	transition: width 0.4s ease;
}
.gdl-progress__steps {
	display: flex;
	justify-content: space-between;
}
.gdl-progress__step {
	font-size: 0.8rem;
	color: #999;
	font-weight: 500;
	transition: color 0.3s;
}
.gdl-progress__step--active { color: #c1121f; font-weight: 600; }
.gdl-progress__step--done { color: #0d0d0d; }

/* Steps */
.gdl-step { display: none; animation: gdlFadeIn 0.35s ease; }
.gdl-step--active { display: block; }
@keyframes gdlFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.gdl-step__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: #0d0d0d;
}
.gdl-step__desc {
	color: #666;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

/* Group tabs */
.gdl-group-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}
.gdl-group-tab {
	padding: 0.5rem 1.25rem;
	border: 1.5px solid #ddd;
	border-radius: 100px;
	background: #fff;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	color: #555;
	transition: all 0.2s;
}
.gdl-group-tab:hover { border-color: #c1121f; color: #c1121f; }
.gdl-group-tab--active {
	background: #c1121f;
	color: #fff;
	border-color: #c1121f;
}

/* Service cards */
.gdl-services {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}
.gdl-service {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border: 2px solid #e5e5e5;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	background: #fff;
}
.gdl-service:hover { border-color: #c1121f; background: #fef8f8; }
.gdl-service--selected {
	border-color: #c1121f;
	background: #fef2f2;
	box-shadow: 0 0 0 1px #c1121f;
}
.gdl-service__radio {
	width: 22px;
	height: 22px;
	border: 2px solid #ccc;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}
.gdl-service--selected .gdl-service__radio {
	border-color: #c1121f;
}
.gdl-service--selected .gdl-service__radio::after {
	content: '';
	width: 12px;
	height: 12px;
	background: #c1121f;
	border-radius: 50%;
}
.gdl-service__info { flex: 1; min-width: 0; }
.gdl-service__name {
	font-weight: 600;
	font-size: 1rem;
	color: #0d0d0d;
	margin: 0 0 0.15rem;
}
.gdl-service__meta {
	font-size: 0.85rem;
	color: #777;
	margin: 0;
}
.gdl-service__price {
	font-weight: 700;
	font-size: 1.05rem;
	color: #c1121f;
	white-space: nowrap;
}

/* Date & time */
.gdl-datetime { display: flex; flex-direction: column; gap: 1.5rem; }
.gdl-label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	color: #333;
}
.gdl-input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: #0d0d0d;
	transition: border-color 0.2s;
	box-sizing: border-box;
}
.gdl-input:focus { outline: none; border-color: #c1121f; }

.gdl-time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 0.5rem;
}
.gdl-time-slot {
	padding: 0.6rem 0.5rem;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	color: #555;
	background: #fff;
	transition: all 0.2s;
}
.gdl-time-slot:hover { border-color: #c1121f; color: #c1121f; }
.gdl-time-slot--selected {
	background: #c1121f;
	color: #fff;
	border-color: #c1121f;
}

/* Form fields */
.gdl-form-fields { display: flex; flex-direction: column; gap: 1.25rem; }
.gdl-required { color: #c1121f; }
.gdl-optional { color: #999; font-weight: 400; font-size: 0.85rem; }
.gdl-textarea { resize: vertical; min-height: 80px; }

/* Summary card */
.gdl-summary {
	background: #f9f9f9;
	border: 1.5px solid #e5e5e5;
	border-radius: 12px;
	padding: 1.5rem;
}
.gdl-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 0.6rem 0;
	border-bottom: 1px solid #eee;
	font-size: 0.95rem;
}
.gdl-summary__row:last-child { border-bottom: none; }
.gdl-summary__label { color: #777; }
.gdl-summary__value { font-weight: 600; color: #0d0d0d; text-align: right; }

/* Nav buttons */
.gdl-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 2rem;
	gap: 1rem;
}
.gdl-btn {
	padding: 0.85rem 2rem;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s;
	font-family: inherit;
}
.gdl-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.gdl-btn--primary {
	background: #c1121f;
	color: #fff;
	margin-left: auto;
}
.gdl-btn--primary:hover:not(:disabled) { background: #a50f1a; }
.gdl-btn--outline {
	background: transparent;
	color: #555;
	border: 1.5px solid #ddd;
}
.gdl-btn--outline:hover { border-color: #999; color: #333; }

/* Success */
.gdl-success { text-align: center; padding: 3rem 1rem; }
.gdl-success__icon {
	width: 72px;
	height: 72px;
	background: #22c55e;
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

/* Loading spinner on button */
.gdl-btn--loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}
.gdl-btn--loading::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 22px;
	height: 22px;
	border: 3px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gdlSpin 0.6s linear infinite;
}
@keyframes gdlSpin { to { transform: rotate(360deg); } }

/* Input error */
.gdl-input--error {
	border-color: #c1121f !important;
	animation: gdlShake 0.3s ease;
}
@keyframes gdlShake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

/* Responsive */
@media (max-width: 480px) {
	.gdl-booking { padding: 1.25rem 0.75rem; }
	.gdl-step__title { font-size: 1.25rem; }
	.gdl-time-slots { grid-template-columns: repeat(3, 1fr); }
	.gdl-service { padding: 0.85rem 1rem; }
	.gdl-btn { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
	.gdl-nav { flex-direction: column-reverse; }
	.gdl-btn--primary { margin-left: 0; }
}
