/* /opt/triluma/public/triluma-contact-popup.css */
/* v91: Fade-kompatibel + rCoach-Vorbereitungsgespräch */

.triluma-contact-overlay {
	position: fixed;
	inset: 0;
	z-index: 3000;
	background: rgba(0, 0, 0, 0.48);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.triluma-contact-overlay.active {
	display: flex;
}

.triluma-contact-modal {
	width: min(760px, 100%);
	max-height: 92vh;
	overflow: auto;
	background: var(--tri-white);
	border-radius: var(--tri-radius);
	border: 1px solid var(--tri-border);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
	padding: 24px;
	position: relative;
}

.triluma-contact-close {
	position: absolute;
	top: 14px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--tri-text);
}

.triluma-contact-close:hover {
	color: var(--tri-blue);
}

.triluma-contact-head {
	padding-right: 36px;
	margin-bottom: 18px;
}

.triluma-contact-head h2 {
	margin-bottom: 8px;
}

.triluma-contact-form {
	display: grid;
	gap: 14px;
}

.triluma-contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.triluma-contact-field label,
.triluma-contact-check {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 5px;
}

.triluma-contact-field input,
.triluma-contact-field select,
.triluma-contact-field textarea {
	width: 100%;
	border: 1px solid var(--tri-border);
	border-radius: 8px;
	padding: 5px 8px;
	font: inherit;
	background: var(--tri-white);
	color: var(--tri-text);
}

.triluma-contact-field textarea {
	min-height: 72px;
	resize: vertical;
}

.triluma-contact-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	line-height: 1.4;
}

.triluma-contact-note {
	border-left: 4px solid var(--tri-blue);
	padding: 10px 12px;
	background: #f6fbfd;
	font-size: 13px;
	line-height: 1.45;
}

.triluma-contact-modal a:not(.tri-btn):not(.tri-header-btn):not(.tri-text-btn) {
	color: var(--tri-black);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.triluma-contact-modal a:not(.tri-btn):not(.tri-header-btn):not(.tri-text-btn):hover {
	color: var(--tri-blue);
	font-weight: 500;
	text-decoration: underline;
}

.triluma-contact-check input {
	margin-top: 3px;
	flex-shrink: 0;
	margin-bottom: -20px;
}

.triluma-contact-callback {
	display: none;
	border-left: 4px solid var(--tri-blue);
	padding-left: 14px;
}

.triluma-contact-callback.active {
	display: block;
}

.triluma-contact-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.triluma-contact-status {
	min-height: 22px;
	font-size: 14px;
	font-weight: 600;
}

.triluma-contact-status.ok {
	color: var(--tri-blue-dark);
}

.triluma-contact-status.error {
	color: var(--tri-orange);
}

.triluma-contact-actions {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	margin-top: 0px;
}

@media (max-width: 700px) {
	.triluma-contact-modal {
		padding: 18px;
	}

	.triluma-contact-row {
		grid-template-columns: 1fr;
	}
}

/* === TRILUMA_THEME_RESTART30_V4_CONTACT_START === */
html[data-theme="dark"] .triluma-contact-overlay{ background:rgba(0,0,0,.66) !important; }
html[data-theme="dark"] .triluma-contact-modal{
  background:var(--tri-dark-surface, #201f1d) !important;
  color:var(--tri-dark-text, #f3f1ed) !important;
  border:1px solid var(--tri-border) !important;
  box-shadow:var(--tri-dark-shadow, 0 20px 54px rgba(0,0,0,.44)) !important;
}
html[data-theme="dark"] .triluma-contact-field label,
html[data-theme="dark"] .triluma-contact-check,
html[data-theme="dark"] .triluma-contact-modal p{ color:var(--tri-dark-text, #f3f1ed) !important; }
html[data-theme="dark"] .triluma-contact-field input,
html[data-theme="dark"] .triluma-contact-field select,
html[data-theme="dark"] .triluma-contact-field textarea{
  background:var(--tri-dark-surface-2, #2a2825) !important;
  color:var(--tri-dark-text, #f3f1ed) !important;
  border-color:var(--tri-border) !important;
}
html[data-theme="dark"] .triluma-contact-note{
  background:var(--tri-dark-surface-2, #2a2825) !important;
  color:var(--tri-dark-text, #f3f1ed) !important;
}
html[data-theme="dark"] .triluma-contact-close{
  width:42px !important; height:42px !important; border:1px solid var(--tri-border) !important;
  border-radius:12px !important; background:rgba(255,255,255,.08) !important;
  color:var(--tri-dark-text, #f3f1ed) !important;
}
html[data-theme="dark"] .triluma-contact-close:hover{ background:var(--tri-blue) !important; color:var(--tri-white) !important; }
/* === TRILUMA_THEME_RESTART30_V4_CONTACT_END === */


/* === TRILUMA_THEME_RESTART30_V5_CONTACT_START === */
html[data-theme="dark"] .triluma-contact-overlay{ background:rgba(0,0,0,.42) !important; }
html[data-theme="dark"] .triluma-contact-modal{ background:var(--tri-dark-surface,#1d1c1a) !important; border-color:var(--tri-dark-border-strong,rgba(255,255,255,.16)) !important; }
html[data-theme="dark"] .triluma-contact-field input,
html[data-theme="dark"] .triluma-contact-field select,
html[data-theme="dark"] .triluma-contact-field textarea{ background:var(--tri-dark-surface-2,#292623) !important; border-color:var(--tri-dark-border,rgba(255,255,255,.095)) !important; }
/* === TRILUMA_THEME_RESTART30_V5_CONTACT_END === */

/* === RESTART_30 DARK OVERLAY HOTFIX v13 START === */
html[data-theme="dark"] .tri-overlay,
html[data-theme="dark"] .tri-session-choice-overlay,
html[data-theme="dark"] #tri-session-choice-overlay.tri-session-choice-overlay,
html[data-theme="dark"] #tri-session-choice-overlay.tri-session-choice-overlay.tri-popup-fade,
html[data-theme="dark"] .tri-contact-overlay,
html[data-theme="dark"] .triluma-contact-overlay,
html[data-theme="dark"] .tri-contact-popup-overlay,
html[data-theme="dark"] .tri-auth-overlay,
html[data-theme="dark"] .tri-login-overlay,
html[data-theme="dark"] .tri-code-overlay,
html[data-theme="dark"] .tri-vcoach-popup-overlay,
html[data-theme="dark"] .tri-companion-info-overlay,
html[data-theme="dark"] .tri-trainer-info-overlay,
html[data-theme="dark"] .tri-talkway-info-overlay,
html[data-theme="dark"] .tri-chat-popup-overlay,
html[data-theme="dark"] .tri-chat-overlay,
html[data-theme="dark"] .tri-companion-chat-overlay,
html[data-theme="dark"] .tri-trainer-chat-overlay,
html[data-theme="dark"] .tri-popup-overlay,
html[data-theme="dark"] .tri-modal-overlay,
html[data-theme="dark"] .cp-overlay,
html[data-theme="dark"] .triluma-roi-overlay,
:root[data-theme="dark"] .tri-overlay,
:root[data-theme="dark"] .tri-session-choice-overlay,
:root[data-theme="dark"] #tri-session-choice-overlay.tri-session-choice-overlay,
:root[data-theme="dark"] .triluma-roi-overlay,
#tri-session-choice-overlay.tri-session-choice-overlay-dark-soft {
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

:host([data-theme="dark"]) .tri-overlay,
:host-context(html[data-theme="dark"]) .tri-overlay {
  background: rgba(0, 0, 0, 0.78) !important;
}
/* === RESTART_30 DARK OVERLAY HOTFIX v13 END === */
