/**
 * Easy Appointment Booking - Frontend Styles
 * This is the default styling. Elementor's style controls will override these.
 */

.eab-form-wrapper {
	background-color: #ffffff;
	max-width: 100%;
	box-sizing: border-box;
}

.eab-form-wrapper *,
.eab-form-wrapper *::before,
.eab-form-wrapper *::after {
	box-sizing: border-box;
}

/* Header */
.eab-form-header {
	margin-bottom: 24px;
}

.eab-form-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.eab-form-subtitle {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #6b7280;
}

/* Admin warning (visibility is controlled in PHP, not in CSS) */
.eab-admin-warning {
	background-color: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 18px;
}

/* Grid */
.eab-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

/* Two column layout */
.eab-cols-two .eab-form-grid {
	grid-template-columns: 1fr 1fr;
}

.eab-cols-two .eab-field-full,
.eab-cols-two .eab-field-message,
.eab-cols-two .eab-field-time,
.eab-cols-two .eab-field-date {
	grid-column: 1 / -1;
}

/* Field */
.eab-field {
	display: flex;
	flex-direction: column;
}

.eab-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.eab-required {
	color: #ef4444;
}

/* Inputs */
.eab-field input,
.eab-field textarea,
.eab-field select {
	width: 100%;
	font-size: 15px;
	font-family: inherit;
	color: #111827;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 12px 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	outline: none;
}

.eab-field textarea {
	height: 110px;
	resize: vertical;
}

.eab-field input:focus,
.eab-field textarea:focus,
.eab-field select:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.eab-field input.eab-invalid,
.eab-field textarea.eab-invalid,
.eab-time-value.eab-invalid {
	border-color: #ef4444 !important;
}

.eab-field input::placeholder,
.eab-field textarea::placeholder {
	color: #9ca3af;
}

/* Time slots */
.eab-slots-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Service field */
.eab-field-service select {
	cursor: pointer;
}

/* Service cards */
.eab-service-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.eab-service-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px;
	transition: all 0.18s ease;
}

.eab-service-card:hover {
	background-color: #f9fafb;
	border-color: #93c5fd;
}

.eab-service-card.eab-service-active {
	background-color: #eff6ff;
	border-color: #2563eb;
}

.eab-service-card-name {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.eab-service-card.eab-service-active .eab-service-card-name {
	color: #1d4ed8;
}

.eab-service-card-meta {
	font-size: 13px;
	color: #6b7280;
}

.eab-service-sep {
	margin: 0 4px;
}

.eab-service-card-desc {
	font-size: 12px;
	line-height: 1.5;
	color: #6b7280;
	margin-top: 2px;
}

.eab-slot {
	min-width: 84px;
	flex: 0 0 auto;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
	font-weight: 500;
	color: #374151;
	background-color: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 12px;
	text-align: center;
	transition: all 0.18s ease;
}

.eab-slot:hover {
	color: #2563eb;
	background-color: #eff6ff;
	border-color: #2563eb;
}

.eab-slot.eab-slot-active {
	color: #ffffff;
	background-color: #2563eb;
	border-color: #2563eb;
}

/* Honeypot - hidden from real users */
.eab-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit row */
.eab-submit-row {
	display: flex;
	justify-content: flex-start;
	margin-top: 22px;
}

.eab-submit-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	cursor: pointer;
	font-size: 16px;
	font-family: inherit;
	font-weight: 600;
	color: #ffffff;
	background-color: #2563eb;
	border: none;
	border-radius: 8px;
	padding: 14px 28px;
	transition: background-color 0.2s ease, transform 0.05s ease;
}

.eab-submit-btn:hover {
	background-color: #1d4ed8;
}

.eab-submit-btn:active {
	transform: scale(0.99);
}

.eab-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Button loader */
.eab-btn-loader {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: eab-spin 0.7s linear infinite;
}

.eab-submit-btn.eab-loading .eab-btn-loader {
	display: inline-block;
}

.eab-submit-btn.eab-loading .eab-btn-text {
	opacity: 0.85;
}

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

/* Response message */
.eab-response {
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.eab-response.eab-success {
	color: #065f46;
	background-color: #d1fae5;
}

.eab-response.eab-error {
	color: #991b1b;
	background-color: #fee2e2;
}

.eab-response .eab-meet-link {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
	.eab-cols-two .eab-form-grid {
		grid-template-columns: 1fr;
	}

	.eab-service-cards {
		grid-template-columns: 1fr;
	}
}
