/*! Dreamweave feedback (v1.37): boxes, the Feedback page form, the tab and its dialog. Builds on .dw-tform in dreamweave.css. */

.dwfb-slot[hidden], .dwfb [hidden], .dwfb-box [hidden] { display: none !important; }
.dwfb__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The box (recordings, posts, experiences) ---------- */
.dwfb-foot { margin-top: 48px; }
.dwx-app + .dwfb-slot--under { max-width: 960px; margin: 22px auto 0; }
.dwx-app .dwfb-slot--end { margin-top: 28px; }
body .dwfb-box {
	box-sizing: border-box; max-width: 720px; padding: 26px 28px; border-radius: var(--dw-radius, 16px);
	border: 1px solid var(--dw-line, #24345C);
	background: radial-gradient(600px 240px at 0% 0%, rgba(182,164,206,.10), transparent 70%), var(--dw-deep, #0A1A3A);
	color: var(--dw-text, #CEC7BC); font-family: var(--dw-sans, Karla, system-ui, sans-serif); font-size: 16px; line-height: 1.55; text-align: left;
}
.dwx-end .dwfb-box { margin-left: auto; margin-right: auto; }
body .dwfb-box *, body .dwfb-dialog * { box-sizing: border-box; }

body .dwfb { gap: 18px; max-width: none; }
body .dwfb .dwfb__h, body .dwfb-box .dwfb__h {
	font-family: var(--dw-serif, Cormorant, Georgia, serif); font-weight: 500; color: var(--dw-cream, #F0E0C8);
	font-size: 1.7rem; line-height: 1.15; margin: 0; padding: 0;
}

/* Stars */
body .dwfb .dwfb__rate { border: 0; margin: 0; padding: 0; min-width: 0; }
body .dwfb .dwfb__rate legend { color: var(--dw-cream, #F0E0C8); font-weight: 500; font-size: 16px; padding: 0; margin: 0 0 8px; }
body .dwfb .dwfb__opt { display: inline; font-size: 14px; margin: 0 !important; }
.dwfb__stars { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
body .dwfb .dwfb__star { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; color: var(--dw-line-strong, #3B4B78); transition: color .15s ease, transform .15s ease; }
body .dwfb .dwfb__star input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
body .dwfb .dwfb__star svg { width: 32px; height: 32px; fill: currentColor !important; stroke: rgba(217,185,138,.35); stroke-width: .8; }
.dwfb__star:has(input:focus-visible) { outline: 2px solid var(--dw-gold, #D9B98A); outline-offset: 1px; }
.dwfb__star:hover { transform: scale(1.08); }
body .dwfb .dwfb__stars:has(input[value="1"]:checked) .dwfb__star:nth-of-type(-n+1),
body .dwfb .dwfb__stars:has(input[value="2"]:checked) .dwfb__star:nth-of-type(-n+2),
body .dwfb .dwfb__stars:has(input[value="3"]:checked) .dwfb__star:nth-of-type(-n+3),
body .dwfb .dwfb__stars:has(input[value="4"]:checked) .dwfb__star:nth-of-type(-n+4),
body .dwfb .dwfb__stars:has(input[value="5"]:checked) .dwfb__star:nth-of-type(-n+5) { color: var(--dw-gold, #D9B98A); }
@media (hover: hover) {
	body .dwfb .dwfb__stars:has(.dwfb__star:nth-of-type(1):hover) .dwfb__star:nth-of-type(-n+1),
	body .dwfb .dwfb__stars:has(.dwfb__star:nth-of-type(2):hover) .dwfb__star:nth-of-type(-n+2),
	body .dwfb .dwfb__stars:has(.dwfb__star:nth-of-type(3):hover) .dwfb__star:nth-of-type(-n+3),
	body .dwfb .dwfb__stars:has(.dwfb__star:nth-of-type(4):hover) .dwfb__star:nth-of-type(-n+4),
	body .dwfb .dwfb__stars:has(.dwfb__star:nth-of-type(5):hover) .dwfb__star:nth-of-type(-n+5) { color: var(--dw-gold, #D9B98A); opacity: .85; }
}
.dwfb__word { margin-left: 10px; color: var(--dw-gold, #D9B98A); font-family: var(--dw-serif, Cormorant, Georgia, serif); font-style: italic; font-size: 1.25rem; }

body .dwfb .dw-tform__hint, body .dwfb .dw-tform__privacy { font-size: 14px; line-height: 1.5; }
body .dwfb .dw-tform__hint { margin: -2px 0 2px; }

/* The rest of a box opens once a star is chosen or something is typed */
.dwfb__more { display: grid; gap: 18px; }
.dwfb--compact:not(.is-open) .dwfb__more { display: none; }

/* The thank-you offer */
.dwfb__gift { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(217,185,138,.55); background: rgba(217,185,138,.07); }
body .dwfb__gift p { margin: 0 !important; font-size: 15px; line-height: 1.45; color: var(--dw-text, #CEC7BC); }
.dwfb__gift strong { color: var(--dw-cream, #F0E0C8); }
.dwfb__gift-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--dw-gold, #D9B98A); color: var(--dw-night, #010F2A); font: 700 17px/1 var(--dw-sans, Karla, sans-serif); }

.dwfb__testi .dw-tform__privacy { font-size: 13px; }
.dwfb__testi-more { display: grid; gap: 14px; padding-top: 4px; }
body .dwfb__error { margin: 0 !important; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--dw-lavender, #B6A4CE); background: rgba(182,164,206,.10); color: var(--dw-cream, #F0E0C8) !important; font-size: 15px; }
body .dwfb .dw-tform__submit:disabled { opacity: .7; cursor: progress; }

/* Inside experiences: their reset removes margins and borders, so put the form's back. */
.dwx-app .dwfb .dw-tform__consent { border: 1px solid var(--dw-line, #24345C); padding: 16px; }
.dwx-app .dwfb .dw-tform__hint { margin: 0 0 2px; }
.dwx-app .dwfb input[type=text], .dwx-app .dwfb input[type=email], .dwx-app .dwfb textarea, .dwx-app .dwfb select { color-scheme: dark; }

/* Afterwards */
.dwfb__done { display: grid; gap: 6px; justify-items: start; outline: none; }
body .dwfb__done p { margin: 0 !important; }
.dwfb__done-mark { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(217,185,138,.15); color: var(--dw-gold, #D9B98A); margin-bottom: 4px; }
.dwfb__done-mark svg { width: 22px; height: 22px; }
body .dwfb__had { margin: 0 !important; font-size: 15px; color: var(--dw-muted, #A6A0A4); }
.dwfb__link { background: none; border: 0; padding: 0; margin-left: 4px; color: var(--dw-gold, #D9B98A); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* The Feedback page */
.dwfb-page { max-width: 720px; }
.dwfb-page .dwfb { gap: 22px; }

/* ---------- The Feedback tab ---------- */
.dwfb-tab {
	position: fixed; left: 16px; bottom: 16px; z-index: 99990;
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px 10px 13px;
	border-radius: 999px; border: 1px solid rgba(217,185,138,.55); cursor: pointer;
	background: rgba(1,15,42,.92); color: var(--dw-cream, #F0E0C8); box-shadow: 0 10px 30px -12px rgba(0,0,0,.8);
	font: 700 14px/1 var(--dw-sans, Karla, system-ui, sans-serif); letter-spacing: .02em;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: transform .25s ease, opacity .25s ease, background .2s ease;
}
.dwfb-tab svg { width: 20px; height: 20px; color: var(--dw-gold, #D9B98A); }
.dwfb-tab:hover { background: var(--dw-deep, #0A1A3A); }
.dwfb-tab:focus-visible { outline: 2px solid var(--dw-gold, #D9B98A); outline-offset: 3px; }
.dwfb-tab.is-away { opacity: 0; transform: translateY(14px); pointer-events: none; }
@media (max-width: 600px) { .dwfb-tab { padding: 10px 12px; } .dwfb-tab span { display: none; } }
@media (prefers-reduced-motion: reduce) { .dwfb-tab, .dwfb__star { transition: none; } }
@media print { .dwfb-tab, .dwfb-slot { display: none !important; } }

/* ---------- Its dialog ---------- */
html.dwfb-lock { overflow: hidden; }
.dwfb-dialog {
	width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--dw-line, #24345C); border-radius: 18px;
	background: var(--dw-night, #010F2A); color: var(--dw-text, #CEC7BC); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); overflow: auto; color-scheme: dark;
}
.dwfb-dialog[open]:not(:modal) { position: fixed; inset: 12px; margin: auto; z-index: 99999; }
.dwfb-dialog::backdrop { background: rgba(1,8,22,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dwfb-dialog__in { padding: 24px 26px 28px; }
.dwfb-dialog__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
body .dwfb-dialog__h { margin: 0; padding: 0; font-family: var(--dw-serif, Cormorant, Georgia, serif); font-weight: 500; font-size: 2rem; line-height: 1.1; color: var(--dw-cream, #F0E0C8); }
.dwfb-dialog__x { flex: none; width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--dw-cream, #F0E0C8); font-size: 30px; line-height: 1; cursor: pointer; }
.dwfb-dialog__x:hover { background: rgba(255,255,255,.06); }
.dwfb-dialog__x:focus-visible { outline: 2px solid var(--dw-gold, #D9B98A); }

@media (max-width: 640px) {
	body .dwfb-box { padding: 22px 18px; }
	.dwfb-dialog__in { padding: 20px 16px 24px; }
	.dwfb__star { width: 40px; height: 40px; }
	.dwfb__star svg { width: 30px; height: 30px; }
	.dwfb__word { flex-basis: 100%; margin: 4px 0 0; }
}
