/* MonsterWeb Blocks. Colors fall back to the MonsterWeb palette if a theme does not define them. */

/* Wilbur */
.mw-wilbur { position: relative; width: fit-content; margin: 0 auto; text-align: center; }
.mw-wilbur img { display: block; margin: 0 auto; width: min(380px, 80vw); height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3)); animation: mw-float 6s ease-in-out infinite; }
.mw-wilbur.is-small img { width: min(260px, 60vw); }
@keyframes mw-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(3deg); } }

/* Speech bubble: beside his head at eye level, tail pointing at his face, never over it */
.mw-bubble { position: absolute; z-index: 3; top: 12%; right: 85%; width: max-content; max-width: 210px; margin: 0; background: #fff; color: var(--wp--preset--color--ink, #231c38); border-radius: 26px; padding: 14px 20px; font-family: var(--wp--preset--font-family--display, inherit); font-weight: 600; font-size: 1.15rem; line-height: 1.2; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); text-align: left; }
.mw-bubble::after { content: ""; position: absolute; top: 50%; margin-top: -11px; right: -19px; border-style: solid; border-width: 11px 0 11px 22px; border-color: transparent transparent transparent #fff; }
a.mw-bubble { text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
a.mw-bubble:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38); color: var(--wp--preset--color--ink, #231c38); }
.mw-bubble-cta { display: block; margin-top: 6px; font-family: var(--wp--preset--font-family--body, inherit); font-weight: 800; font-size: 0.85rem; color: var(--wp--preset--color--purple, #6b5b9a); }
a.mw-bubble:hover .mw-bubble-cta { color: var(--wp--preset--color--plum, #554681); text-decoration: underline; }

/* Peek: head and hands over the bottom edge of the section it sits in */
.mw-peek { position: absolute; right: 6%; bottom: -4px; width: 170px; height: auto; margin: 0 !important; }

/* Domain search */
.mw-search { display: flex; background: #fff; border-radius: 999px; padding: 6px; max-width: 520px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.mw-search input[type="text"] { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 0 18px; border-radius: 999px; color: var(--wp--preset--color--ink, #231c38); background: transparent; }
.mw-search input[type="text"]:focus { outline: 2px solid var(--wp--preset--color--purple, #6b5b9a); }
.mw-search button { font-family: var(--wp--preset--font-family--display, inherit); font-weight: 600; font-size: 1.05rem; border: 0; cursor: pointer; border-radius: 999px; padding: 0.8em 1.5em; background: var(--wp--preset--color--yellow, #f5db42); color: var(--wp--preset--color--ink, #231c38); }
.mw-search button:hover { background: #ffe766; }
.mw-search .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Domain prices */
.mw-tlds { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.95rem; opacity: 0.9; }
.mw-tlds b { color: var(--wp--preset--color--yellow, #f5db42); }
.mw-domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mw-dom { border-radius: 16px 16px 16px 5px; padding: 14px; text-align: center; }
.mw-dom b { display: block; font-family: var(--wp--preset--font-family--display, inherit); font-size: 1.3rem; }
.mw-domains.is-tiles-dark .mw-dom { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mw-domains.is-tiles-dark .mw-dom b { color: var(--wp--preset--color--yellow, #f5db42); }
.mw-domains.is-tiles-light .mw-dom { background: var(--wp--preset--color--lavender, #e9e5f5); }
.mw-domains.is-tiles-light .mw-dom b { color: var(--wp--preset--color--purple, #6b5b9a); }

/* Card icon */
.mw-icon { width: 60px; height: 60px; border-radius: 18px 18px 18px 5px; background: var(--wp--preset--color--lavender, #e9e5f5); display: grid; place-items: center; }
.mw-icon svg { width: 30px; height: 30px; stroke: var(--wp--preset--color--purple, #6b5b9a); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Contact form */
.mw-contact { max-width: 640px; }
.mw-contact form p { margin: 0 0 16px; }
.mw-contact label { display: block; font-weight: 700; margin-bottom: 6px; }
.mw-contact label span { font-weight: 400; opacity: 0.75; }
.mw-contact input[type="text"], .mw-contact input[type="email"], .mw-contact input[type="tel"], .mw-contact textarea { box-sizing: border-box; width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--wp--preset--color--lavender, #e9e5f5); border-radius: 14px 14px 14px 5px; background: #fff; color: var(--wp--preset--color--ink, #231c38); }
.mw-contact input:focus, .mw-contact textarea:focus { outline: 2px solid var(--wp--preset--color--purple, #6b5b9a); border-color: transparent; }
.mw-contact button { font-family: var(--wp--preset--font-family--display, inherit); font-weight: 600; font-size: 1.05rem; border: 0; cursor: pointer; border-radius: 999px; padding: 0.8em 1.8em; background: var(--wp--preset--color--purple, #6b5b9a); color: #fff; }
.mw-contact button:hover { background: var(--wp--preset--color--plum, #554681); }
.mw-contact-captcha { margin: 0 0 16px; min-height: 78px; }
.mw-contact-note { font-size: 0.95rem; opacity: 0.85; }
.mw-contact-result { padding: 12px 16px; border-radius: 14px 14px 14px 5px; font-weight: 700; }
.mw-contact-result.is-ok { background: #e3f5e6; color: #1d5b2a; }
.mw-contact-result.is-error { background: #fbe7e7; color: #7a1f1f; }
.mw-contact-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
	.mw-domains { grid-template-columns: 1fr 1fr; }
	.mw-peek { display: none; }
	/* stacked on phones: the bubble sits in the normal flow above his head, so it takes up
	   its own space and can never cover the text above it; tail points down at him */
	.mw-wilbur { margin-top: 10px; }
	.mw-bubble { position: relative; top: auto; right: auto; left: auto; display: inline-block; margin: 0 auto 26px; max-width: 260px; font-size: 1.05rem; }
	.mw-bubble::after { top: auto; bottom: -19px; left: 50%; right: auto; margin: 0 0 0 -11px; border-width: 22px 11px 0 11px; border-color: #fff transparent transparent transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.mw-wilbur img { animation: none; }
	a.mw-bubble { transition: none; }
}
