/* Hair Clinic Tools - Frontend styling
 * Scoped op .hct-wrapper om conflicten te voorkomen.
 */

.hct-wrapper {
	--hct-primary: var(--hct-primary-admin, var(--e-global-color-primary, #EA3A3B));
	--hct-secondary: var(--hct-secondary-admin, var(--e-global-color-secondary, #024690));
	--hct-dark: var(--hct-dark-admin, var(--e-global-color-4362323, #011C3A));
	--hct-dark-2: var(--e-global-color-f515d34, #022E5E);
	--hct-light: var(--hct-light-admin, var(--e-global-color-7fbea4f, #F2F5FF));
	--hct-muted: var(--e-global-color-cfa1f76, #F6F6F6);
	--hct-border: rgba(2, 70, 144, 0.16);
	--hct-border-strong: rgba(2, 70, 144, 0.25);
	--hct-heading-font: var(--hct-heading-font-admin, var(--e-global-typography-primary-font-family, "Gowun Batang"));
	--hct-body-font: var(--hct-body-font-admin, var(--e-global-typography-b2ce6af-font-family, "Inter"));
	--hct-accent-font: var(--hct-accent-font-admin, var(--e-global-typography-accent-font-family, "Inter Tight"));
	--hct-radius: var(--hct-radius-admin, 28px);

	box-sizing: border-box;
	font-family: var(--hct-body-font), system-ui, -apple-system, sans-serif;
	color: var(--hct-dark);
}

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

@media (max-width: 768px) {
	.hct-wrapper {
		padding: 32px 12px;
	}
}

.hct-wrapper .hct-card {
	max-width: 1180px;
	margin: 0 auto;
	background: #FFFFFF;
	border-radius: var(--hct-radius);
	border: 1px solid var(--hct-border);
	padding: 48px;
	position: relative;
}

@media (max-width: 1024px) {
	.hct-wrapper .hct-card {
		padding: 32px;
	}
}

@media (max-width: 640px) {
	.hct-wrapper .hct-card {
		padding: 24px;
		border-radius: 20px;
	}
}

.hct-wrapper .hct-card__logo {
	margin-bottom: 24px;
}

.hct-wrapper .hct-card__logo img {
	max-width: 180px;
	height: auto;
	display: block;
}

.hct-wrapper .hct-card__grid {
	display: grid;
	grid-template-columns: 42% 58%;
	gap: 56px;
	align-items: center;
}

@media (max-width: 900px) {
	.hct-wrapper .hct-card__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.hct-wrapper .hct-card__visual svg {
	width: 100%;
	height: auto;
	max-width: 420px;
	display: block;
	margin: 0 auto;
}

/* Stapindicator */
.hct-wrapper .hct-step-indicator {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 28px;
}

.hct-wrapper .hct-step-indicator__label {
	font-family: var(--hct-accent-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--hct-secondary);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hct-wrapper .hct-step-indicator__bullet {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hct-muted);
	color: var(--hct-secondary);
	font-family: var(--hct-body-font);
	font-size: 15px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.hct-wrapper .hct-step-indicator__bullet--active {
	background: var(--hct-dark);
	color: #FFFFFF;
}

/* Steps */
.hct-wrapper .hct-step {
	display: none;
}

.hct-wrapper .hct-step--active {
	display: block;
	animation: hct-fade 0.25s ease;
}

@keyframes hct-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hct-wrapper .hct-step__title {
	font-family: var(--hct-heading-font);
	font-size: 36px;
	line-height: 1.15;
	letter-spacing: -1px;
	color: var(--hct-dark);
	margin: 0 0 12px;
	font-weight: 600;
}

.hct-wrapper .hct-step__title em,
.hct-wrapper .hct-step__title i {
	font-style: italic;
	color: var(--hct-secondary);
	font-family: var(--hct-heading-font);
}

@media (max-width: 640px) {
	.hct-wrapper .hct-step__title {
		font-size: 28px;
	}
}

.hct-wrapper .hct-step__intro {
	font-family: var(--hct-body-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--hct-dark-2);
	margin: 0 0 24px;
}

.hct-wrapper .hct-step__actions {
	display: flex;
	gap: 12px;
	margin-top: 28px;
	flex-wrap: wrap;
}

/* Buttons */
.hct-wrapper .hct-button {
	border: none;
	border-radius: 14px;
	padding: 16px 26px;
	font-family: var(--hct-accent-font);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
	line-height: 1;
}

.hct-wrapper .hct-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.hct-wrapper .hct-button--primary {
	background: var(--hct-primary);
	color: #FFFFFF;
}

.hct-wrapper .hct-button--primary:hover:not(:disabled) {
	background: #d82f30;
}

.hct-wrapper .hct-button--secondary {
	background: #FFFFFF;
	color: var(--hct-secondary);
	border: 1px solid rgba(2, 70, 144, 0.35);
}

.hct-wrapper .hct-button--secondary:hover:not(:disabled) {
	background: var(--hct-light);
}

/* Area pills (fallback if no SVG used) */
.hct-wrapper .hct-area-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 4px;
}

.hct-wrapper .hct-area-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--hct-muted);
	border: 1px solid var(--hct-border);
	color: var(--hct-secondary);
	border-radius: 999px;
	padding: 10px 16px;
	font-family: var(--hct-body-font);
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hct-wrapper .hct-area-pill__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--hct-dark);
	font-weight: 600;
	font-size: 12px;
}

.hct-wrapper .hct-area-pill[aria-pressed="true"] {
	background: var(--hct-primary);
	color: #FFFFFF;
	border-color: var(--hct-primary);
}

.hct-wrapper .hct-area-pill[aria-pressed="true"] .hct-area-pill__label {
	background: #FFFFFF;
	color: var(--hct-primary);
}

/* SVG head */
.hct-wrapper .hct-head-svg {
	cursor: default;
}

.hct-wrapper .hct-head-area {
	cursor: pointer;
	transition: fill 0.2s ease, stroke 0.2s ease;
}

.hct-wrapper .hct-head-area:hover {
	fill: rgba(234, 58, 59, 0.35);
}

.hct-wrapper .hct-head-area.is-active {
	fill: var(--hct-primary);
	stroke: var(--hct-dark);
	stroke-width: 1.5;
}

.hct-wrapper .hct-head-area-label {
	font-family: var(--hct-body-font);
	font-size: 14px;
	font-weight: 600;
	fill: var(--hct-dark);
	pointer-events: none;
}

.hct-wrapper .hct-head-area.is-active + .hct-head-area-label,
.hct-wrapper .hct-head-area-label.is-active {
	fill: #FFFFFF;
}

/* Density */
.hct-wrapper .hct-density-list {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 8px 0 28px;
}

.hct-wrapper .hct-density-pill {
	border: 1px solid var(--hct-border);
	background: var(--hct-muted);
	color: var(--hct-secondary);
	border-radius: 999px;
	padding: 18px 28px;
	font-family: var(--hct-accent-font);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hct-wrapper .hct-density-pill--active,
.hct-wrapper .hct-density-pill[aria-pressed="true"] {
	background: var(--hct-primary);
	color: #FFFFFF;
	border-color: var(--hct-primary);
}

/* Total block */
.hct-wrapper .hct-total-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 0;
	border-top: 1px solid var(--hct-border);
	border-bottom: 1px solid var(--hct-border);
	margin: 16px 0;
}

.hct-wrapper .hct-total-block__label {
	font-family: var(--hct-body-font);
	font-size: 14px;
	color: var(--hct-secondary);
}

.hct-wrapper .hct-total-block__value {
	display: inline-block;
	border: 1px solid var(--hct-border-strong);
	border-radius: 999px;
	padding: 10px 24px;
	font-family: var(--hct-heading-font);
	font-size: 28px;
	font-weight: 600;
	color: var(--hct-dark);
	width: fit-content;
}

.hct-wrapper .hct-total-block__suffix {
	font-family: var(--hct-heading-font);
	font-size: 22px;
	color: var(--hct-dark);
	font-style: italic;
}

.hct-wrapper .hct-area-empty {
	font-family: var(--hct-body-font);
	font-size: 15px;
	color: var(--hct-secondary);
	margin: 12px 0;
}

.hct-wrapper .hct-tooltip-block {
	background: var(--hct-light);
	border: 1px solid var(--hct-border);
	color: var(--hct-dark-2);
	font-family: var(--hct-body-font);
	font-size: 14px;
	line-height: 1.55;
	padding: 16px 18px;
	border-radius: 14px;
	margin: 8px 0 16px;
}

/* Summary block */
.hct-wrapper .hct-summary-block {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	background: var(--hct-light);
	border: 1px solid var(--hct-border);
	border-radius: 16px;
	padding: 20px 24px;
	margin-bottom: 24px;
}

.hct-wrapper .hct-summary-block--appt {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
	.hct-wrapper .hct-summary-block,
	.hct-wrapper .hct-summary-block--appt {
		grid-template-columns: 1fr;
	}
}

.hct-wrapper .hct-summary-block__label {
	font-family: var(--hct-body-font);
	font-size: 13px;
	color: var(--hct-secondary);
	display: block;
	margin-bottom: 4px;
	letter-spacing: 0.02em;
}

.hct-wrapper .hct-summary-block strong {
	font-family: var(--hct-heading-font);
	font-size: 22px;
	color: var(--hct-dark);
	font-weight: 600;
}

/* Form fields */
.hct-wrapper .hct-grid {
	display: grid;
	gap: 16px;
}

.hct-wrapper .hct-grid--two {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
	.hct-wrapper .hct-grid--two {
		grid-template-columns: 1fr;
	}
}

.hct-wrapper .hct-field {
	display: flex;
	flex-direction: column;
}

.hct-wrapper .hct-field--full {
	grid-column: 1 / -1;
}

.hct-wrapper .hct-field label {
	font-family: var(--hct-body-font);
	font-size: 14px;
	font-weight: 500;
	color: var(--hct-secondary);
	margin-bottom: 8px;
}

.hct-wrapper .hct-field input:not([type="button"]):not([type="submit"]),
.hct-wrapper .hct-field select,
.hct-wrapper .hct-field textarea {
	height: 48px;
	border: 1px solid rgba(2, 70, 144, 0.20);
	border-radius: 10px;
	background: #FFFFFF;
	padding: 0 14px;
	font-family: var(--hct-body-font);
	font-size: 15px;
	color: var(--hct-dark);
	width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hct-wrapper .hct-field textarea {
	height: auto;
	padding: 12px 14px;
	min-height: 100px;
}

.hct-wrapper .hct-field input:focus,
.hct-wrapper .hct-field select:focus,
.hct-wrapper .hct-field textarea:focus {
	outline: none;
	border-color: var(--hct-primary);
	box-shadow: 0 0 0 3px rgba(234, 58, 59, 0.12);
}

.hct-wrapper .hct-field--checkbox {
	margin: 16px 0;
}

.hct-wrapper .hct-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--hct-dark-2);
	font-weight: 400;
}

.hct-wrapper .hct-field--checkbox input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--hct-primary);
}

.hct-wrapper .hct-error {
	color: var(--hct-primary);
	font-family: var(--hct-body-font);
	font-size: 14px;
	margin: 12px 0 0;
}

.hct-wrapper .hct-field.has-error input,
.hct-wrapper .hct-field.has-error select {
	border-color: var(--hct-primary);
}

.hct-wrapper .hct-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.hct-wrapper .hct-location-picker-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.hct-wrapper .hct-location-picker-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--hct-light);
	color: var(--hct-secondary);
	font-size: 14px;
}

.hct-wrapper .hct-location-picker-card {
	border: 1px solid var(--hct-border) !important;
	background: #fff;
	border-radius: 14px;
	padding: 0;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.hct-wrapper .hct-location-picker-card:hover {
	border-color: rgba(2, 70, 144, 0.45);
	background: #f8fbff;
}

.hct-wrapper .hct-location-picker-card.is-active {
	border-color: var(--hct-primary);
	background: #fff6f6;
	box-shadow: 0 0 0 3px rgba(234, 58, 59, 0.14);
}

.hct-wrapper .hct-location-picker-card__media {
	width: 100%;
	min-width: 60px;
	max-width: 70px;
	overflow: hidden;
	border-right: 1px solid rgba(2, 70, 144, 0.12);
}

.hct-wrapper .hct-location-picker-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hct-wrapper .hct-location-picker-card__body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
}

.hct-wrapper .hct-location-picker-card__body strong {
	display: block;
	font-family: var(--hct-heading-font);
	font-size: 20px;
	line-height: 1.2;
	color: var(--hct-dark);
}

.hct-wrapper .hct-location-picker-card__address {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--hct-secondary);
}

@media (max-width: 640px) {
	.hct-wrapper .hct-location-picker-grid {
		grid-template-columns: 1fr;
	}

	.hct-wrapper .hct-location-picker-card__media {
		width: 36%;
		min-width: 110px;
	}
}

/* Availability */
.hct-wrapper .hct-availability {
	margin: 8px 0 16px;
}

.hct-wrapper .hct-availability__loading,
.hct-wrapper .hct-availability__empty {
	font-family: var(--hct-body-font);
	font-size: 15px;
	color: var(--hct-secondary);
	padding: 16px 0;
}

.hct-wrapper .hct-availability-days {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.hct-wrapper .hct-availability-day {
	background: #FFFFFF;
	border: 1px solid var(--hct-border);
	border-radius: 14px;
	padding: 14px 18px;
	cursor: pointer;
	font-family: var(--hct-body-font);
	font-size: 14px;
	color: var(--hct-dark);
	min-width: 140px;
	text-align: left;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.hct-wrapper .hct-availability-day:hover {
	border-color: var(--hct-primary);
}

.hct-wrapper .hct-availability-day.is-active {
	background: var(--hct-dark);
	color: #FFFFFF;
	border-color: var(--hct-dark);
}

.hct-wrapper .hct-availability-times {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hct-wrapper .hct-availability-time {
	border: 1px solid var(--hct-border);
	background: var(--hct-muted);
	color: var(--hct-secondary);
	border-radius: 999px;
	padding: 12px 22px;
	font-family: var(--hct-accent-font);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.hct-wrapper .hct-availability-time:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.hct-wrapper .hct-availability-time.is-active {
	background: var(--hct-primary);
	color: #FFFFFF;
	border-color: var(--hct-primary);
}

/* Thanks */
.hct-wrapper .hct-step--thanks {
	text-align: center;
	padding: 32px 0;
}

/* Appointment form variant */
.hct-wrapper.hct-appointment-form .hct-card__grid {
	display: block;
}

.hct-wrapper.hct-appointment-form .hct-card__visual {
	display: none;
}

/* Locations Grid shortcode */
.hct-wrapper.hct-locations-grid-wrap {
	padding: 0;
}

.hct-wrapper .hct-locations-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.hct-wrapper .hct-location-card {
	background: #f2f2f4;
	border-radius: 24px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.hct-wrapper .hct-location-card__image-wrap {
	aspect-ratio: 16 / 8;
	overflow: hidden;
}

.hct-wrapper .hct-location-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hct-wrapper .hct-location-card__body {
	padding: 26px 24px 30px;
}

.hct-wrapper .hct-location-card__title {
	font-family: var(--hct-heading-font);
	font-size: 36px;
	line-height: 1.1;
	margin: 0 0 12px;
	color: var(--hct-dark);
}

.hct-wrapper .hct-location-card__text {
	font-family: var(--hct-body-font);
	font-size: 17px;
	line-height: 1.55;
	margin: 0;
	color: #1f3047;
}

@media (max-width: 1024px) {
	.hct-wrapper .hct-locations-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.hct-wrapper .hct-locations-grid {
		grid-template-columns: 1fr;
	}
}
