/**
 * Oxtilofastcal Frontend Styles
 *
 * @package Oxtilofastcal
 */

.oxtilofastcal-form {
	display: block !important;
	border: 1px solid #e5e5e5;
	padding: 20px;
	border-radius: 8px;
	width: 100% !important;
	max-width: 560px;
	min-width: 280px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	font-family: inherit;
	box-sizing: border-box;
}

.oxtilofastcal-form * {
	box-sizing: border-box;
}

.oxtilofastcal-form button,
.oxtilofastcal-form input,
.oxtilofastcal-form select,
.oxtilofastcal-form textarea {
	font-family: inherit;
}

.oxtilofastcal-form--empty {
	text-align: center;
	color: #666;
}

.oxtilofastcal-step {
	margin-bottom: 18px;
	width: 100%;
	display: block;
}

.oxtilofastcal-step label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1e1e1e;
}

.oxtilofastcal-step__title {
	font-weight: 600;
	margin-bottom: 8px;
	color: #1e1e1e;
}

.oxtilofastcal-step select,
.oxtilofastcal-step input[type="text"],
.oxtilofastcal-step input[type="email"],
.oxtilofastcal-step input[type="date"],
.oxtilofastcal-step textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c7c7c7;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	max-width: 100%;
}

.oxtilofastcal-date-buttons {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.oxtilofastcal-date-btn {
	padding: 6px 12px;
	background: #f0f0f1;
	border: 1px solid #c7c7c7;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s;
}

.oxtilofastcal-date-btn:hover {
	background: #fff;
	border-color: #2271b1;
	color: #2271b1;
}

.oxtilofastcal-date-btn.active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.oxtilofastcal-step select:focus,
.oxtilofastcal-step input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.oxtilofastcal-help {
	font-size: 13px;
	color: #666;
	margin-top: 6px;
}

.oxtilofastcal-notice {
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}

.oxtilofastcal-notice--success {
	background: #ecf7ed;
	border: 1px solid #bfe6c6;
	color: #1e4620;
}

.oxtilofastcal-notice--error {
	background: #fdeeee;
	border: 1px solid #f3b6b6;
	color: #8a1f1f;
}

/* Slots */
.oxtilofastcal-slots {
	min-height: 50px;
	width: 100%;
	display: block;
}

.oxtilofastcal-slots__placeholder,
.oxtilofastcal-slots__loading,
.oxtilofastcal-slots__empty {
	padding: 14px;
	text-align: center;
	color: #666;
	background: #f8f8f8;
	border-radius: 6px;
	font-size: 14px;
}

.oxtilofastcal-slots__loading {
	color: #2271b1;
}

.oxtilofastcal-slots__title {
	font-weight: 500;
	margin-bottom: 10px;
	font-size: 14px;
	color: #444;
}

.oxtilofastcal-slots__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
}

.oxtilofastcal-slot {
	padding: 10px 14px;
	border: 1px solid #c7c7c7;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.15s ease;
}

.oxtilofastcal-slot:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.oxtilofastcal-slot.is-selected {
	border-color: #2271b1;
	background: #2271b1;
	color: #fff;
	box-shadow: 0 0 0 1px #2271b1;
}

/* Submit button */
.oxtilofastcal-submit {
	display: block;
	width: 100%;
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

.oxtilofastcal-submit:hover {
	background: #135e96;
}

.oxtilofastcal-submit:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

#oxtilofastcal_date {
	position: relative;
	display: block;

	/* --- FIX PHONE / SAFARI --- */
	-webkit-appearance: none;
	appearance: none;

	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 12px;
	/* padding for icon */
	padding-right: 40px;

	background-color: #fff;
	border: 1px solid #c7c7c7;
	border-radius: 6px;
	color: #1e1e1e;
	font-size: 16px;
	line-height: 1.5;
	font-family: inherit;

	cursor: pointer;

	/* --- calendar icon--- */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 20px;
}

#oxtilofastcal_date::-webkit-calendar-picker-indicator {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

#oxtilofastcal_date:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

#oxtilofastcal_date:hover {
	border-color: #2271b1;
}


/* Responsive */
@media (max-width: 480px) {
	.oxtilofastcal-form {
		padding: 16px;
	}

	.oxtilofastcal-slots__grid {
		gap: 6px;
	}

	.oxtilofastcal-slot {
		padding: 8px 10px;
		font-size: 13px;
	}
}