/**
 * DMTK e-Tempahan Public Booking Form Styles
 */

.dmtk-booking-container {
	max-width: 800px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1e293b;
	line-height: 1.5;
}

.dmtk-booking-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	padding: 28px;
	overflow: hidden;
}

.dmtk-booking-header {
	margin-bottom: 24px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 16px;
}

.dmtk-booking-header h2 {
	margin: 0 0 6px 0;
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
}

.dmtk-booking-header p {
	margin: 0;
	color: #64748b;
	font-size: 14px;
}

/* Auth required notice */
.dmtk-auth-notice {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
}

.dmtk-auth-notice h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	color: #1e293b;
}

.dmtk-auth-notice p {
	margin: 0 0 16px 0;
	color: #64748b;
	font-size: 14px;
}

.dmtk-btn-primary {
	display: inline-block;
	background: #0284c7;
	color: #ffffff !important;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.dmtk-btn-primary:hover {
	background: #0369a1;
	color: #ffffff;
}

.dmtk-btn-primary:disabled {
	background: #94a3b8;
	cursor: not-allowed;
}

/* Form Styles */
.dmtk-form-group {
	margin-bottom: 20px;
}

.dmtk-form-group label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	color: #334155;
}

.dmtk-form-group label .required {
	color: #e11d48;
}

.dmtk-form-control {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background-color: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dmtk-form-control:focus {
	outline: none;
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Spaces Grid */
.dmtk-spaces-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-top: 6px;
}

.dmtk-space-card {
	position: relative;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #fafafa;
}

.dmtk-space-card:hover {
	border-color: #94a3b8;
	background: #f8fafc;
}

.dmtk-space-card.selected {
	border-color: #0284c7;
	background: #f0f9ff;
}

.dmtk-space-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dmtk-space-name {
	font-weight: 600;
	font-size: 15px;
	color: #0f172a;
	margin-bottom: 4px;
}

.dmtk-space-location {
	font-size: 12px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Time inputs row */
.dmtk-form-row {
	display: flex;
	gap: 16px;
}

.dmtk-form-row .dmtk-form-group {
	flex: 1;
}

/* Alerts */
.dmtk-alert {
	padding: 14px 16px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 20px;
	display: none;
}

.dmtk-alert-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.dmtk-alert-info {
	background: #e0f2fe;
	color: #075985;
	border: 1px solid #bae6fd;
}

/* Success View */
.dmtk-success-card {
	display: none;
	text-align: center;
	padding: 32px 16px;
}

.dmtk-success-icon {
	width: 56px;
	height: 56px;
	background: #dcfce7;
	color: #166534;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin: 0 auto 16px;
}

.dmtk-success-title {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
}

.dmtk-success-desc {
	color: #475569;
	font-size: 15px;
	margin-bottom: 20px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.dmtk-booking-ref-box {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 16px 24px;
	display: inline-block;
	margin-bottom: 24px;
}

.dmtk-ref-label {
	font-size: 12px;
	text-transform: uppercase;
	color: #64748b;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.dmtk-ref-number {
	font-size: 28px;
	font-weight: 800;
	color: #0284c7;
	margin: 4px 0;
}

.dmtk-badge-status {
	display: inline-block;
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 9999px;
	text-transform: uppercase;
}

/* Availability Panel */
.dmtk-availability-panel {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

.dmtk-availability-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e2e8f0;
	font-size: 14px;
	color: #0f172a;
}

.dmtk-availability-date-label {
	color: #64748b;
	font-size: 13px;
}

.dmtk-availability-loading {
	color: #64748b;
	font-size: 13px;
	padding: 8px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dmtk-availability-empty {
	color: #166534;
	background: #dcfce7;
	border: 1px solid #86efac;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
}

.dmtk-availability-slots-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.dmtk-slot-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}

.dmtk-slot-unavailable {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.dmtk-slot-available {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
}

.dmtk-availability-fallback {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
}

.dmtk-availability-note {
	margin-top: 10px;
	font-size: 12px;
	color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.dmtk-form-row {
		flex-direction: column;
		gap: 0;
	}
	.dmtk-booking-card {
		padding: 20px;
	}
}

