/* Appointment Form for Elementor — base styles.
   Colors, fonts, sizes and spacing are mostly controlled live via Elementor
   controls (inline CSS vars per widget instance). This file only sets
   structural/layout defaults and safe fallbacks. */

.afe-form-wrap {
	box-sizing: border-box;
	background: #ffffff;
	max-width: 100%;
}

.afe-form-wrap *,
.afe-form-wrap *::before,
.afe-form-wrap *::after {
	box-sizing: border-box;
}

.afe-header-image img {
	display: block;
	max-width: 100%;
}

.afe-form {
	display: block;
}

.afe-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.afe-row .afe-col {
	flex: 1 1 0;
	min-width: 0;
}

.afe-field-group {
	display: flex;
	flex-direction: column;
}

.afe-label {
	display: block;
	text-transform: uppercase;
}

.afe-required {
	color: #e53935;
}

.afe-input-wrap,
.afe-textarea-wrap {
	display: flex;
	align-items: center;
	width: 100%;
	background: #ffffff;
	border: none;
	box-shadow: none;
	transition: border-color 0.2s ease;
}

.afe-textarea-wrap {
	align-items: flex-start;
}

.afe-field-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.afe-field-icon svg {
	display: block;
	fill: none;
	stroke-width: 2;
}

.afe-input,
.afe-textarea {
	flex: 1 1 auto;
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	padding: 0;
	margin: 0;
	font-family: inherit;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

/* Chrome/Edge/Safari render native inset shadows on text-like inputs and
   especially date/time controls (OS-level chrome). These overrides strip
   that so only the wrapper's own background/border (set via Elementor
   Style controls) is visible. */
.afe-input:-webkit-autofill,
.afe-input:-webkit-autofill:hover,
.afe-input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px transparent inset;
	box-shadow: 0 0 0 1000px transparent inset;
	transition: background-color 9999s ease-in-out 0s;
}

.afe-input[type="date"]::-webkit-calendar-picker-indicator,
.afe-input[type="time"]::-webkit-calendar-picker-indicator {
	background: transparent;
	filter: none;
	box-shadow: none;
}

.afe-input[type="date"]::-webkit-datetime-edit,
.afe-input[type="time"]::-webkit-datetime-edit {
	box-shadow: none;
}

.afe-textarea {
	resize: vertical;
	min-height: 80px;
}

.afe-button-wrap {
	width: 100%;
}

.afe-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
	text-align: center;
}

.afe-submit-btn:active {
	transform: scale(0.98);
}

.afe-submit-btn svg {
	flex: 0 0 auto;
}

.afe-submit-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.afe-form-message {
	margin-top: 14px;
	font-size: 14px;
	text-align: center;
	display: none;
}

.afe-form-message.afe-success {
	display: block;
	color: #1e7d34;
}

.afe-form-message.afe-error {
	display: block;
	color: #c62828;
}

/* Native date/time input icon color follows theme in most browsers via
   'color-scheme'; kept light by default. */
.afe-input[type="date"],
.afe-input[type="time"] {
	color-scheme: light;
}

/* ============ MOBILE RESPONSIVE DEFAULTS ============
   Elementor's own responsive controls (tablet/mobile) will override the
   specific font-size / padding / width values per breakpoint. These rules
   are safe structural fallbacks for stacking the two-column row. */
@media (max-width: 1024px) {
	.afe-row {
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.afe-row {
		flex-direction: column;
		gap: 0;
	}
	.afe-row .afe-col {
		width: 100%;
	}
	.afe-form-wrap {
		width: 100% !important;
	}
}
