/* Időpontfoglaló – frontend UI (Amelia-inspirált séma) */

.if-app {
	--if-accent: #6049e8;
	--if-accent-dark: #4c38c7;
	--if-accent-soft: #efecfd;
	--if-accent-softer: #f5f4fe;
	--if-text: #1a1a2e;
	--if-muted: #6f6f87;
	--if-border: #e6e4f4;
	--if-busy: #f2f2f7;
	--if-busy-text: #a3a3b8;
	--if-danger: #dc2626;
	--if-green: #0e9f6e;
	--if-green-soft: #e7f8f1;
	--if-surface: #ffffff;
	--if-radius: 20px;
	max-width: 1020px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--if-text);
	line-height: 1.55;
}

.if-card-main {
	background: var(--if-surface);
	border: 1px solid var(--if-border);
	border-radius: var(--if-radius);
	box-shadow: 0 14px 48px rgba(96, 73, 232, 0.10);
	padding: 32px;
	min-height: 380px;
}

/* Üzenetsáv (fizetés megszakadt stb.) */
.if-flash {
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 18px;
}
.if-flash-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--if-danger);
}

/* Fejléc */
.if-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}
.if-title {
	margin: 0 !important;
	font-size: 1.45rem !important;
	font-weight: 800;
	color: var(--if-text);
	letter-spacing: -0.01em;
}
.if-back {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 50%;
	border: 1px solid var(--if-border);
	background: var(--if-surface);
	color: var(--if-accent);
	font-size: 1.2rem;
	cursor: pointer;
	transition: all 0.15s ease;
}
.if-back:hover {
	background: var(--if-accent-soft);
	border-color: var(--if-accent);
}

/* Szűrőchipek (Amelia-stílus) */
.if-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.if-chip {
	border: 1.5px solid var(--if-border);
	background: var(--if-surface);
	color: var(--if-muted);
	border-radius: 999px;
	padding: 8px 18px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}
.if-chip:hover {
	border-color: var(--if-accent);
	color: var(--if-accent);
}
.if-chip-active {
	background: var(--if-accent);
	border-color: var(--if-accent);
	color: #fff;
}

.if-section-head {
	font-size: 1.02rem !important;
	font-weight: 800;
	margin: 26px 0 14px !important;
	color: var(--if-text);
}

/* Katalógus-kártyák (Amelia service card séma) */
.if-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.if-service-card {
	--if-card-accent: var(--if-accent);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--if-accent-softer);
	border: 1.5px solid var(--if-border);
	border-radius: 16px;
	padding: 20px;
	transition: all 0.15s ease;
	overflow: hidden;
}
.if-service-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--if-card-accent);
}
.if-service-card:hover {
	border-color: var(--if-accent);
	box-shadow: 0 10px 28px rgba(96, 73, 232, 0.14);
	transform: translateY(-2px);
}
.if-sold-out {
	opacity: 0.75;
}
.if-service-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.if-type-badge {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 999px;
	padding: 3px 10px;
	background: var(--if-accent-soft);
	color: var(--if-accent-dark);
}
.if-date-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--if-surface);
	border: 1.5px solid var(--if-border);
	line-height: 1.1;
}
.if-date-badge b {
	font-size: 1.15rem;
	color: var(--if-card-accent);
}
.if-date-badge small {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--if-muted);
}
.if-price-tag {
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--if-accent-dark);
	background: var(--if-surface);
	border: 1.5px solid var(--if-border);
	border-radius: 999px;
	padding: 5px 14px;
	white-space: nowrap;
}
.if-price-freebie {
	color: var(--if-green);
}
.if-service-name {
	font-weight: 800;
	font-size: 1.12rem;
	letter-spacing: -0.01em;
}
.if-service-desc {
	color: var(--if-muted);
	font-size: 0.9rem;
}
.if-event-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 0.88rem;
	color: var(--if-muted);
}
.if-service-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.85rem;
	color: var(--if-muted);
	font-weight: 600;
	margin-top: auto;
}
.if-avatars {
	display: inline-flex;
	align-items: center;
}
.if-avatars small {
	margin-left: 8px;
}
.if-mini-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #fff;
	object-fit: cover;
	margin-left: -8px;
}
.if-mini-avatar:first-child {
	margin-left: 0;
}
.if-spots {
	color: var(--if-green);
	font-weight: 700;
	background: var(--if-green-soft);
	border-radius: 999px;
	padding: 4px 12px;
}
.if-spots-none {
	color: var(--if-busy-text);
	background: var(--if-busy);
}
.if-cta {
	background: var(--if-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 11px 22px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	margin-top: 4px;
}
.if-cta:hover:not(:disabled) {
	background: var(--if-accent-dark);
	transform: translateY(-1px);
}
.if-cta:disabled {
	background: var(--if-busy);
	color: var(--if-busy-text);
	cursor: default;
}

/* Választólista (előadó) */
.if-grid {
	display: grid;
	gap: 12px;
}
.if-choice {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
	background: var(--if-surface);
	border: 1.5px solid var(--if-border);
	border-radius: 14px;
	padding: 16px 18px;
	cursor: pointer;
	transition: all 0.15s ease;
	font: inherit;
	color: inherit;
}
.if-choice:hover {
	border-color: var(--if-accent);
	box-shadow: 0 6px 20px rgba(96, 73, 232, 0.14);
	transform: translateY(-1px);
}
.if-choice-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}
.if-choice-name {
	font-weight: 800;
	font-size: 1.05rem;
}
.if-choice-desc {
	color: var(--if-muted);
	font-size: 0.9rem;
}
.if-choice-arrow {
	font-size: 1.6rem;
	color: var(--if-muted);
	flex: 0 0 auto;
}
.if-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 52px;
	border: 2px solid var(--if-accent-soft);
}

/* Elrendezés: összegző | naptár | idősávok */
.if-layout {
	display: grid;
	grid-template-columns: 230px 1fr 200px;
	gap: 28px;
	align-items: start;
}
.if-layout-form {
	grid-template-columns: 230px 1fr;
}

/* Bal oldali összegző */
.if-side {
	border-right: 1px solid var(--if-border);
	padding-right: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.92rem;
}
.if-side-site {
	color: var(--if-muted);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.if-side-person {
	display: flex;
	align-items: center;
	gap: 10px;
}
.if-side-person .if-avatar {
	width: 44px;
	height: 44px;
	flex-basis: 44px;
}
.if-side-name {
	font-weight: 800;
	font-size: 1.02rem;
}
.if-side-topic {
	color: var(--if-muted);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 6px;
}
.if-side-meta,
.if-side-tz {
	color: var(--if-muted);
}
.if-side-when {
	background: var(--if-accent-soft);
	color: var(--if-accent-dark);
	border-radius: 12px;
	padding: 12px 14px;
	font-weight: 700;
}
.if-side-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px dashed var(--if-border);
	padding-top: 12px;
	font-size: 0.95rem;
}
.if-side-price b {
	color: var(--if-accent-dark);
	font-size: 1.05rem;
}
.if-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.if-legend {
	display: flex;
	gap: 14px;
	margin-top: auto;
	padding-top: 10px;
	color: var(--if-muted);
	font-size: 0.82rem;
}
.if-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.if-lg {
	width: 12px;
	height: 12px;
	border-radius: 4px;
	display: inline-block;
}
.if-lg-free { background: var(--if-accent-soft); border: 1.5px solid var(--if-accent); }
.if-lg-busy { background: var(--if-busy); border: 1.5px solid var(--if-border); }

/* Naptár */
.if-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.if-cal-title {
	font-weight: 800;
	font-size: 1.05rem;
}
.if-cal-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: var(--if-accent-soft);
	color: var(--if-accent);
	font-size: 1.2rem;
	cursor: pointer;
	transition: background 0.15s ease;
}
.if-cal-btn:hover:not(:disabled) { background: #e2ddfb; }
.if-cal-btn:disabled { opacity: 0.35; cursor: default; }

.if-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}
.if-cal-dow {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--if-muted);
	text-transform: uppercase;
	padding: 6px 0;
}
.if-cal-cell {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 0.95rem;
	color: var(--if-text);
	position: relative;
}
.if-cal-day { cursor: pointer; transition: all 0.12s ease; }
.if-cal-day:disabled { color: #cfcfe0; cursor: default; }

.if-day-free {
	background: var(--if-accent-soft);
	color: var(--if-accent-dark);
	font-weight: 800;
}
.if-day-free:hover { background: #e2ddfb; }
.if-day-free::after {
	content: "";
	position: absolute;
	bottom: 5px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--if-accent);
}
.if-day-full {
	background: var(--if-busy);
	color: var(--if-busy-text);
	font-weight: 600;
	text-decoration: line-through;
}
.if-cal-selected,
.if-day-free.if-cal-selected {
	background: var(--if-accent) !important;
	color: #fff !important;
}
.if-cal-selected::after { background: #fff !important; }
.if-cal-loading { opacity: 0.4; }

/* Idősávok */
.if-slots-title {
	font-weight: 800;
	font-size: 0.92rem;
	margin-bottom: 12px;
}
.if-slot-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 380px;
	overflow-y: auto;
	padding-right: 4px;
}
.if-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 8px;
	border-radius: 12px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.12s ease;
}
.if-slot-free {
	background: var(--if-surface);
	border: 1.5px solid var(--if-accent);
	color: var(--if-accent);
}
.if-slot-free:hover {
	background: var(--if-accent);
	color: #fff;
}
.if-slot-busy {
	background: var(--if-busy);
	border: 1.5px solid var(--if-border);
	color: var(--if-busy-text);
	cursor: default;
	text-decoration: line-through;
}
.if-slot-busy small {
	font-weight: 500;
	font-size: 0.72rem;
	text-decoration: none;
}
.if-empty {
	color: var(--if-muted);
	font-size: 0.92rem;
}
.if-slots-hint {
	padding: 24px 8px;
	text-align: center;
	background: var(--if-accent-softer);
	border-radius: 12px;
	color: var(--if-accent-dark);
	font-weight: 600;
}

/* Honeypot mező – látogatónak láthatatlan */
.if-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* Űrlap */
.if-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 480px;
}
.if-form label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--if-text);
}
.if-form input,
.if-form textarea {
	border: 1.5px solid var(--if-border);
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	font-weight: 400;
	background: var(--if-surface);
	color: var(--if-text);
	transition: border-color 0.15s ease;
}
.if-form input:focus,
.if-form textarea:focus {
	outline: none;
	border-color: var(--if-accent);
	box-shadow: 0 0 0 3px rgba(96, 73, 232, 0.14);
}
.if-pay-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--if-accent-softer);
	border: 1.5px solid var(--if-border);
	border-radius: 12px;
	padding: 13px 16px;
	font-weight: 700;
}
.if-pay-summary b {
	color: var(--if-accent-dark);
	font-size: 1.1rem;
}
.if-pay-note {
	color: var(--if-muted);
	font-size: 0.82rem;
}
.if-form-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--if-danger);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 0.9rem;
}
.if-submit {
	background: var(--if-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 28px;
	font: inherit;
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	align-self: flex-start;
}
.if-submit:hover:not(:disabled) {
	background: var(--if-accent-dark);
	transform: translateY(-1px);
}
.if-submit:disabled { opacity: 0.6; cursor: default; }

/* Siker */
.if-success {
	text-align: center;
	padding: 40px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.if-success-icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--if-green-soft);
	color: var(--if-green);
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #a7f3d0;
}
.if-success h2 {
	margin: 6px 0 0 !important;
	font-size: 1.4rem !important;
}
.if-success-when {
	font-weight: 800;
	color: var(--if-accent-dark);
	background: var(--if-accent-soft);
	padding: 8px 18px;
	border-radius: 999px;
	margin: 4px 0 !important;
}
.if-again { align-self: center; margin-top: 8px; }

/* Felugró foglalóablak */
.if-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	overflow-y: auto;
	background: rgba(23, 17, 44, 0.6);
	padding: 40px 14px;
}
.if-modal.if-modal-open {
	display: block;
}
.if-modal-inner {
	max-width: 1020px;
	margin: 0 auto;
	position: relative;
}
.if-modal-close {
	position: absolute;
	top: -16px;
	right: -8px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #333;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.1s ease;
}
.if-modal-close:hover {
	transform: scale(1.08);
}

/* ---------- Színsémák ---------- */

.if-app.if-scheme-ocean {
	--if-accent: #0284c7;
	--if-accent-dark: #075985;
	--if-accent-soft: #e0f2fe;
	--if-accent-softer: #f0f9ff;
	--if-border: #dbeafe;
}

.if-app.if-scheme-forest {
	--if-accent: #0e9f6e;
	--if-accent-dark: #046c4e;
	--if-accent-soft: #e7f8f1;
	--if-accent-softer: #f2fbf7;
	--if-border: #d1fae5;
}

.if-app.if-scheme-sunset {
	--if-accent: #ea580c;
	--if-accent-dark: #c2410c;
	--if-accent-soft: #ffedd5;
	--if-accent-softer: #fff7ed;
	--if-border: #fed7aa;
}

.if-app.if-scheme-rose {
	--if-accent: #e11d48;
	--if-accent-dark: #be123c;
	--if-accent-soft: #ffe4e9;
	--if-accent-softer: #fff1f3;
	--if-border: #fecdd3;
}

.if-app.if-scheme-dark {
	--if-accent: #8b7bff;
	--if-accent-dark: #a99dff;
	--if-accent-soft: #2c2749;
	--if-accent-softer: #211d38;
	--if-text: #f1efff;
	--if-muted: #a09cc0;
	--if-border: #3a3560;
	--if-busy: #2a2745;
	--if-busy-text: #6e6a92;
	--if-green-soft: #123b2e;
	--if-surface: #191631;
}
.if-app.if-scheme-dark .if-card-main {
	box-shadow: 0 14px 48px rgba(0, 0, 0, 0.45);
}
.if-app.if-scheme-dark .if-cal-day:disabled {
	color: #4b4770;
}
.if-app.if-scheme-dark .if-mini-avatar {
	border-color: var(--if-surface);
}
.if-app.if-scheme-dark .if-cta,
.if-app.if-scheme-dark .if-submit,
.if-app.if-scheme-dark .if-chip-active,
.if-app.if-scheme-dark .if-cal-selected,
.if-app.if-scheme-dark .if-day-free.if-cal-selected {
	color: #14122a !important;
}
.if-app.if-scheme-dark .if-slot-free:hover {
	color: #14122a;
}
.if-app.if-scheme-dark .if-flash-error,
.if-app.if-scheme-dark .if-form-error {
	background: #3b1526;
	border-color: #7f1d3a;
	color: #ffa3b5;
}

/* Térképes Iránytű – krém háttér, málna-rózsaszín akcent, szeriffes címsorok */
.if-app.if-scheme-iranytu {
	--if-accent: #d95c72;
	--if-accent-dark: #b8455c;
	--if-accent-soft: #f8e3e6;
	--if-accent-softer: #faf5ea;
	--if-text: #3e3a33;
	--if-muted: #8a8274;
	--if-border: #e7dcc8;
	--if-busy: #efe8d8;
	--if-busy-text: #b0a893;
	--if-surface: #fffdf7;
	--if-green: #7d9b4e;
	--if-green-soft: #eef3e2;
}
.if-app.if-scheme-iranytu .if-title,
.if-app.if-scheme-iranytu .if-service-name,
.if-app.if-scheme-iranytu .if-side-name,
.if-app.if-scheme-iranytu .if-cal-title,
.if-app.if-scheme-iranytu .if-section-head,
.if-app.if-scheme-iranytu .if-success h2 {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 600;
	letter-spacing: 0;
}
.if-app.if-scheme-iranytu .if-card-main {
	box-shadow: 0 14px 48px rgba(120, 90, 60, 0.12);
}

/* Integrál Healing – törtfehér háttér, meleg arany akcent, mély petrolkék szövegek */
.if-app.if-scheme-integral {
	--if-accent: #c9962e;
	--if-accent-dark: #a2761a;
	--if-accent-soft: #f6ead0;
	--if-accent-softer: #fcf9f1;
	--if-text: #24556e;
	--if-muted: #6e8ea1;
	--if-border: #e7e0cf;
	--if-busy: #eff1f0;
	--if-busy-text: #a7b6bd;
	--if-surface: #ffffff;
	--if-green: #2f8f7a;
	--if-green-soft: #e4f2ed;
}
.if-app.if-scheme-integral .if-side-when {
	background: #1d4a63;
	color: #f6ead0;
}
.if-app.if-scheme-integral .if-cta,
.if-app.if-scheme-integral .if-submit {
	box-shadow: 0 3px 10px rgba(201, 150, 46, 0.35);
}
.if-app.if-scheme-integral .if-title,
.if-app.if-scheme-integral .if-service-name,
.if-app.if-scheme-integral .if-side-name,
.if-app.if-scheme-integral .if-cal-title,
.if-app.if-scheme-integral .if-section-head,
.if-app.if-scheme-integral .if-success h2 {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 600;
	letter-spacing: 0;
}
.if-app.if-scheme-integral .if-card-main {
	box-shadow: 0 14px 48px rgba(47, 82, 101, 0.10);
}

/* Reszponzív */
@media (max-width: 880px) {
	.if-layout,
	.if-layout-form {
		grid-template-columns: 1fr;
	}
	.if-side {
		border-right: none;
		border-bottom: 1px solid var(--if-border);
		padding-right: 0;
		padding-bottom: 16px;
	}
	.if-legend { margin-top: 0; }
	.if-slot-list {
		flex-direction: row;
		flex-wrap: wrap;
		max-height: none;
	}
	.if-slot { flex: 1 1 90px; }
	.if-card-main { padding: 20px; }
	.if-cards { grid-template-columns: 1fr; }
}
