/* Therapylab – Newsletter (ίδια γλώσσα σχεδίασης με τα υπόλοιπα plugins) */
html.tlnl-lock, html.tlnl-lock body { overflow: hidden !important; }

.tlnl-modal {
	--tlnl-blue: #29abe2;
	--tlnl-blue-dark: #1f95c7;
	--tlnl-ink: #1e2229;
	--tlnl-muted: #6b7380;
	--tlnl-line: #d9dee6;
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; box-sizing: border-box;
}
.tlnl-modal[hidden] { display: none; }
.tlnl-modal *, .tlnl-modal *::before, .tlnl-modal *::after { box-sizing: border-box; }

.tlnl-modal__backdrop {
	position: absolute; inset: 0; background: rgba(15, 23, 42, .55);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .2s ease;
}
.tlnl-modal__dialog {
	position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; border-radius: 20px; padding: 40px 36px 32px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, .28), 0 2px 6px rgba(15, 23, 42, .08);
	text-align: center; color: var(--tlnl-ink); font-family: inherit;
	opacity: 0; transform: translateY(14px) scale(.98);
	transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
	outline: none;
}
.tlnl-modal.is-open .tlnl-modal__backdrop { opacity: 1; }
.tlnl-modal.is-open .tlnl-modal__dialog { opacity: 1; transform: none; }

.tlnl-modal__close {
	position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: transparent; color: #8a929d; cursor: pointer;
	transition: background .15s, color .15s;
}
.tlnl-modal__close:hover { background: #f1f4f8; color: var(--tlnl-ink); }
.tlnl-modal__close:focus-visible { outline: 2px solid var(--tlnl-blue); outline-offset: 2px; }

.tlnl-modal__icon {
	width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #e6f4fc; color: var(--tlnl-blue);
}
.tlnl-modal__title { margin: 0 0 8px; font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--tlnl-ink); }
.tlnl-modal__text { margin: 0 0 26px; font-size: 15px; line-height: 1.6; color: var(--tlnl-muted); }

/* ---------- Φόρμα (παράθυρο και shortcode) ---------- */
.tlnl-form { text-align: left; margin: 0; }
.tlnl-form .tlnl-field { margin: 0 0 14px; }
.tlnl-form .tlnl-field label {
	display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #41454f; line-height: 1.3;
}
.tlnl-form .tlnl-input {
	display: block; width: 100%; height: 50px; margin: 0; padding: 0 16px;
	border: 1px solid var(--tlnl-line, #d9dee6); border-radius: 12px; background: #fff;
	font-family: inherit; font-size: 15px; color: var(--tlnl-ink, #1e2229); line-height: 1.2;
	box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.tlnl-form .tlnl-input::placeholder { color: #a3aab5; }
.tlnl-form .tlnl-input:focus { outline: none; border-color: var(--tlnl-blue, #29abe2); box-shadow: 0 0 0 4px rgba(41, 171, 226, .15); }
.tlnl-form .tlnl-input[aria-invalid="true"] { border-color: #d63638; box-shadow: 0 0 0 4px rgba(214, 54, 56, .1); }

.tlnl-form .tlnl-consent {
	display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; cursor: pointer;
	font-size: 13px; line-height: 1.5; color: var(--tlnl-muted, #6b7380); font-weight: 400;
}
.tlnl-form .tlnl-consent input[type="checkbox"] {
	flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--tlnl-blue, #29abe2); cursor: pointer;
}
.tlnl-form .tlnl-consent a { color: var(--tlnl-blue-dark, #1f95c7); text-decoration: underline; }
.tlnl-form .tlnl-consent.is-invalid span { color: #c02525; }

.tlnl-form .tlnl-msg {
	margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45;
	background: #fdeaea; color: #c02525; border: 1px solid #f4bebe;
}
.tlnl-form .tlnl-msg[hidden] { display: none; }

.tlnl-form .tlnl-submit {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; height: 52px; margin: 0; padding: 0 22px; border: 0; border-radius: 12px;
	background: var(--tlnl-blue, #29abe2); color: #fff; font-family: inherit; font-size: 16px; font-weight: 600;
	line-height: 1; letter-spacing: .2px; cursor: pointer; text-transform: none;
	box-shadow: 0 6px 16px rgba(41, 171, 226, .3); transition: background .18s, box-shadow .18s, transform .06s;
}
.tlnl-form .tlnl-submit:hover { background: var(--tlnl-blue-dark, #1f95c7); color: #fff; box-shadow: 0 8px 22px rgba(41, 171, 226, .38); }
.tlnl-form .tlnl-submit:active { transform: translateY(1px); }
.tlnl-form .tlnl-submit:focus-visible { outline: 3px solid rgba(41, 171, 226, .45); outline-offset: 2px; }
.tlnl-form .tlnl-submit[disabled] { opacity: .75; cursor: wait; }

.tlnl-spinner {
	display: none; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: tlnl-spin .7s linear infinite;
}
.tlnl-form.is-busy .tlnl-spinner { display: inline-block; }
@keyframes tlnl-spin { to { transform: rotate(360deg); } }

/* Παγίδα για bots: εκτός οθόνης, όχι display:none (κάποια bots το ελέγχουν). */
.tlnl-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Επιτυχία ---------- */
.tlnl-done { text-align: center; padding: 6px 0 2px; }
.tlnl-done[hidden] { display: none; }
.tlnl-done__icon {
	width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: #e7f6ed; color: #1a7f3c;
	animation: tlnl-pop .35s cubic-bezier(.2, .8, .2, 1.2);
}
.tlnl-done__text { margin: 0 0 22px; font-size: 16px; line-height: 1.55; color: var(--tlnl-ink, #1e2229); font-weight: 500; outline: none; }
.tlnl-done__close {
	display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 26px; margin: 0;
	border: 1px solid var(--tlnl-line, #d9dee6); border-radius: 10px; background: #fff; color: #41454f;
	font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.tlnl-done__close:hover { background: #f6f8fb; border-color: #b9c1cc; color: var(--tlnl-ink, #1e2229); }
.tlnl-inline .tlnl-done__close { display: none; }
@keyframes tlnl-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Shortcode μέσα σε σελίδα ---------- */
.tlnl-inline { max-width: 460px; }

@media (max-width: 520px) {
	.tlnl-modal { align-items: flex-end; padding: 0; }
	.tlnl-modal__dialog {
		max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 36px 20px 24px;
		transform: translateY(40px);
	}
	.tlnl-modal__title { font-size: 21px; }
	.tlnl-modal__text { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.tlnl-modal__backdrop, .tlnl-modal__dialog { transition: none; }
	.tlnl-done__icon, .tlnl-spinner { animation: none; }
}
