/* The contact page (lib/widgets/contact/ContactWidget.php). On top the room of the panel (taaltaal-cast.css) with what the
   desk uses of it, then what is its own: the balloon has a fixed place over the wall, so nothing moves when Linda says
   something else */
taaltaal-desk { display: block; max-width: none; margin: 0; }
taaltaal-desk:not(.tts-exercise) { box-sizing: content-box; aspect-ratio: 760 / 254; padding-bottom: 2px; }
taaltaal-desk .tca-frame { border-radius: 14px; border: 1px solid #d9cfbd; background: #fff; box-shadow: 0 4px 16px rgba(60, 45, 20, .26); }
taaltaal-desk .tca-room { border-radius: 13px; }
/* the logo lies over the room, its lights each on a layer of their own: they only fade and drift, slowly and out of step */
taaltaal-desk .tca-stage { position: relative; }
taaltaal-desk .tca-sign { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
taaltaal-desk .tca-light { will-change: opacity, transform; }
taaltaal-desk .tca-wide { animation: tca-drift 11s ease-in-out infinite alternate; }
taaltaal-desk .tca-near { animation: tca-breathe 6s ease-in-out infinite alternate; }
@keyframes tca-drift { from { opacity: .65; transform: translateX(-1%); } to { opacity: 1; transform: translateX(1%); } }
@keyframes tca-breathe { from { opacity: .72; } to { opacity: 1; } }

/* they come up from behind the table once they are all there; hovered or speaking they come up a little more */
taaltaal-desk .tca-rise { visibility: hidden; }
taaltaal-desk.tca-ready .tca-rise { visibility: visible; animation: tca-up .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes tca-up { from { transform: translateY(80px); } to { transform: none; } }
taaltaal-desk .tca-lift { transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
taaltaal-desk .tca-who.hover .tca-lift { transform: translateY(-5px); }
taaltaal-desk .tca-who.talking .tca-lift { transform: translateY(-9px); }
taaltaal-desk .tca-glow { opacity: 0; transition: opacity .2s ease; }
taaltaal-desk .tca-who.talking .tca-glow { opacity: 1; }
taaltaal-desk .tca-who.talking .tca-nod { animation: tca-nod .9s ease-in-out infinite alternate; }
@keyframes tca-nod { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
/* the mouths: shut until the sound opens them (taaltaal-scene.js) */
taaltaal-desk .mouth-open { display: inline !important; opacity: 0; transform-box: fill-box; transform-origin: 50% 25%; }

/* the name cards, pink for who was clicked last */
taaltaal-desk .tca-card path { fill: #fffdf8; stroke: #d6c8ae; stroke-width: 1; transition: fill .15s ease; }
taaltaal-desk .tca-card text { font: bold 18px Arial, Verdana, sans-serif; fill: #2b3f93; transition: fill .15s ease; }
taaltaal-desk .tca-card.hover path { fill: #fde4f0; }
taaltaal-desk .tca-card.on path { fill: #c70765; stroke: #a00552; }
taaltaal-desk .tca-card.on text { fill: #fff; }
taaltaal-desk .tca-hit { fill: transparent; cursor: pointer; outline: none; }
taaltaal-desk .tca-hit:focus-visible { stroke: #2b3f93; stroke-width: 2.5; stroke-dasharray: 5 4; }

@media (prefers-reduced-motion: reduce) {
    taaltaal-desk.tca-ready .tca-rise, taaltaal-desk .tca-who.talking .tca-nod, taaltaal-desk .tca-light { animation: none; }
    taaltaal-desk .tca-lift, taaltaal-desk .tca-glow { transition: none; }
}

.contact_page { margin-top: -18px; color: #333; font: 15px/1.45 Arial, Verdana, sans-serif; }
.contact_page h1 { margin: 2px 0 12px; font-size: 27px; font-weight: normal; line-height: 1.2; color: #2b3f93; text-wrap: balance; }
.contact_page h2 { margin: 0 0 8px; font-size: 19px; font-weight: normal; color: #2b3f93; }
.contact_page .small { margin: 8px 0 0; font-size: 12px; line-height: 1.3; color: #6a6f85; }
.contact_page .small a { color: inherit; }

/* ---- the desk: a street sign, a bell, and two people */
.contact_page .desk_place { position: relative; margin-bottom: 4px; }
.contact_page.sent .desk_place { margin-bottom: 14px; }
taaltaal-desk { max-width: none; }
taaltaal-desk .tcd-sign text { font: bold 15.5px Arial, Verdana, sans-serif; fill: #fff; }
taaltaal-desk .tca-hit[data-who=bell] { cursor: pointer; }

/* what she says, as big as what she says, with its point at her and the sound beside it; it lies over the wall, so its size
   moves nothing */
.contact_page .balloon { position: absolute; left: 20.5%; top: 33%; max-width: 60%; box-sizing: border-box; display: flex; align-items: center; gap: 9px; padding: 6px 8px 7px 13px;
        border: 1.5px solid #8fa3cf; border-radius: 13px; background: linear-gradient(#ffffff, #f4f7fd); box-shadow: 0 3px 10px rgba(40, 40, 70, .26); font-size: 15px; line-height: 1.32; transform: translateY(-50%); }
.contact_page .balloon::before { content: ""; position: absolute; left: -8px; top: 50%; width: 13px; height: 13px; margin-top: -7px; box-sizing: border-box; background: #f8fafe; border: solid #8fa3cf; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.contact_page .balloon .line { min-width: 0; }
/* her hello is short: three lines, more of a square */
.contact_page .balloon .line[data-id=hello] { width: 236px; }
.contact_page.en .balloon .line[data-id=hello] { width: 262px; }
/* English says it at more length, with the Dutch under it */
.contact_page.en .balloon { top: 31%; font-size: 14px; line-height: 1.28; }
.contact_page .balloon p { margin: 0; }
.contact_page .balloon .dutch { font-weight: bold; color: #2b3f93; }
.contact_page .balloon .teach { margin-top: 3px; font-size: 13px; line-height: 1.3; color: #6a6f85; }
.contact_page .balloon .teach b { color: #2b3f93; }
.contact_page .balloon .number { margin-top: 3px; font-size: 13.5px; color: #2b3f93; }
.contact_page .balloon .go { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.contact_page .balloon .go a, .contact_page .after a { padding: 1px 10px 2px; border: 1px solid #c9d3ea; border-radius: 12px; background: #eef2fb; color: #2b3f93; font-size: 13px; line-height: 1.35; text-decoration: none; white-space: nowrap; }
.contact_page .balloon .go a:hover, .contact_page .after a:hover { border-color: #eeb4d0; background: #fde4f0; color: #c70765; }
.contact_page .balloon .listen { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; padding: 0; border: 1px solid #c9d3ea; border-radius: 50%; background: #fff; cursor: pointer; }
.contact_page .balloon .listen:hover { border-color: #eeb4d0; background: #fde4f0; }
.contact_page .balloon .listen svg { width: 16px; height: 16px; }

/* a click on the logo: they call out the name, each with a small balloon above the head (as taaltaal-cast.css) */
taaltaal-desk .tca-shout { position: absolute; z-index: 5; left: var(--at); bottom: calc(100% - var(--y) + 4px); padding: 3px 11px 4px; border: 1.5px solid #8fa3cf; border-radius: 12px; background: #fff;
                           box-shadow: 0 3px 10px rgba(43, 63, 147, .25); color: #c70765; font: bold 15px/18px Arial, Verdana, sans-serif; white-space: nowrap; pointer-events: none;
                           transform: translateX(-50%) rotate(-3deg); animation: tca-shout .22s ease-out; }
@keyframes tca-shout { from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.8) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { taaltaal-desk .tca-shout { animation: none; } }

/* the one thing Carlos says: on the wall, with its point at him, and she waits while he says it */
.contact_page .shout { position: absolute; z-index: 5; right: 18.5%; top: 33%; max-width: 46%; box-sizing: border-box; margin: 0; padding: 7px 13px 8px; border: 1.5px solid #c70765; border-radius: 13px; background: #fff; box-shadow: 0 3px 10px rgba(43, 63, 147, .25); color: #c70765; font: bold 15px/1.3 Arial, Verdana, sans-serif; transform: translateY(-50%); }
.contact_page .shout::after { content: ""; position: absolute; right: -8px; top: 50%; width: 13px; height: 13px; margin-top: -7px; box-sizing: border-box; background: #fff; border: solid #c70765; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.contact_page .desk_place.carlos_talks .balloon { visibility: hidden; }
.contact_page .shout small { display: block; font-size: 12px; font-weight: normal; color: #6a6f85; }

/* ---- the topics: nothing has to be chosen before writing */
.contact_page .lead { margin: 11px 0 6px; font-size: 17px; color: #2b3f93; }
.contact_page .topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.contact_page .topic { display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px 5px 8px; border: 1px solid #d9d2c3; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(60, 50, 30, .16); color: #2b3f93; font-size: 14px; text-decoration: none; }
.contact_page .topic svg { flex: none; box-sizing: border-box; width: 22px; height: 22px; padding: 1px; }
.contact_page .topic:hover { border-color: #eeb4d0; background: #fde4f0; color: #c70765; }
.contact_page .topic[aria-current] { border-color: #a00552; background: #c70765; color: #fff; }
.contact_page .topic[aria-current] svg { border-radius: 50%; background: #fff; }
.contact_page .topic:focus-visible, .contact_page .send:focus-visible, .contact_page .listen:focus-visible { outline: 2px solid #2b3f93; outline-offset: 2px; }

/* ---- the postcard: the edge of airmail in the colors of the logo, the message on lines, who it is from under the stamp */
.contact_page .postcard { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; padding: 20px 18px 14px; border: 1px solid #e3d9c4; border-radius: 8px; background: #fffdf8; box-shadow: 0 6px 18px rgba(60, 50, 30, .2); }
.contact_page .postcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(-45deg, #c70765 0 12px, #fff 12px 24px, #73d2f7 24px 36px, #fff 36px 48px); }
.contact_page .dear { display: block; margin: 0 0 3px; font: 700 27px/1.1 "Caveat", "Segoe Print", cursive; color: #2b3f93; }
.contact_page .postcard textarea, .contact_page .card_message { display: block; box-sizing: border-box; width: 100%; min-height: 252px; margin: 0; padding: 0 3px; border: 0; border-radius: 0; background: transparent repeating-linear-gradient(transparent 0 27px, #cfd8ea 27px 28px); background-attachment: local; font: 16px/28px Arial, Verdana, sans-serif; color: #223; }
/* where you write: white and sunk into the card, with words that say so */
.contact_page .message_side { display: flex; flex-direction: column; min-width: 0; }
.contact_page .postcard textarea { flex: 1; padding: 0 9px; border: 1px solid #c3cbdc; border-radius: 6px; background: #fff repeating-linear-gradient(transparent 0 27px, #e9edf6 27px 28px) local; box-shadow: inset 0 2px 5px rgba(40, 50, 80, .17); resize: vertical; outline: 0; }
.contact_page .postcard textarea::placeholder { color: #737f9e; opacity: 1; }
.contact_page .postcard textarea:focus, .contact_page .address_side input:focus { outline: 0; border-color: #8fa3cf; box-shadow: inset 0 2px 5px rgba(40, 50, 80, .17), 0 0 0 2px #c9d6f0; }
.contact_page .card_message { white-space: pre-wrap; overflow-wrap: anywhere; }
.contact_page .address_side { position: relative; min-width: 0; margin-left: 16px; padding-left: 16px; border-left: 1px solid #d9cfbd; }
.contact_page .to { min-height: 84px; margin: 0 86px 2px 0; font: 700 21px/1.15 "Caveat", "Segoe Print", cursive; color: #2b3f93; }
.contact_page .address_side label { display: block; margin-top: 8px; font-size: 13px; line-height: 1.3; color: #5a6380; }
.contact_page .address_side label small { font-size: 12px; }
.contact_page .address_side input { display: block; box-sizing: border-box; width: 100%; margin-top: 2px; padding: 5px 8px; border: 1px solid #c3cbdc; border-radius: 5px; background: #fff; box-shadow: inset 0 1px 4px rgba(40, 50, 80, .17); font: 16px Arial, Verdana, sans-serif; color: #223; }
.contact_page .pair { display: flex; gap: 12px; }
.contact_page .pair label { flex: 1; min-width: 0; }
.contact_page .pair .invoice { display: none; }
.contact_page .with_invoice .pair .invoice { display: block; }
.contact_page .send { display: block; margin: 14px 0 0 auto; padding: 7px 28px 8px; border: 0; border-radius: 20px; background: #c70765; box-shadow: 0 2px 6px rgba(160, 5, 82, .4); color: #fff; font: bold 16px Arial, Verdana, sans-serif; cursor: pointer; }
.contact_page .send:hover { background: #a00552; }
.contact_page .postcard .small { text-align: right; }
.contact_page .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact_page .oops { grid-column: 1 / -1; margin: 0 0 10px; padding: 6px 11px; border-radius: 6px; background: #fde4f0; color: #a00552; }

/* the stamp: the sticker in a white edge with teeth, a little crooked */
.contact_page .stamp { position: absolute; top: -8px; right: 0; display: block; padding: 7px; background: #fff; filter: drop-shadow(0 1px 2px rgba(40, 30, 20, .4)); transform: rotate(3deg);
        --r: 3px; -webkit-mask: radial-gradient(circle var(--r), transparent 98%, #000) calc(var(--r) * -1.5) calc(var(--r) * -1.5) / calc(var(--r) * 3) calc(var(--r) * 3), linear-gradient(#000 0 0) center / calc(100% - var(--r) * 3) calc(100% - var(--r) * 3) no-repeat;
        mask: radial-gradient(circle var(--r), transparent 98%, #000) calc(var(--r) * -1.5) calc(var(--r) * -1.5) / calc(var(--r) * 3) calc(var(--r) * 3), linear-gradient(#000 0 0) center / calc(100% - var(--r) * 3) calc(100% - var(--r) * 3) no-repeat; }
.contact_page .stamp img { display: block; width: 64px; height: 64px; }

/* ---- sent: your card with a postmark over the stamp, the one moment of this page */
.contact_page.sent .card_message { min-height: 168px; }
.contact_page.sent .card_name, .contact_page.sent .card_email { min-height: 24px; margin: 8px 0 0; border-bottom: 1px solid #aeb9d3; font-size: 16px; overflow-wrap: anywhere; }
.contact_page .postmark { position: absolute; z-index: 2; top: -12px; right: 34px; width: 104px; height: 104px; fill: none; stroke: #2b3f93; stroke-width: 2.4; opacity: .82; transform: rotate(-14deg); animation: contact-stamped .4s .5s cubic-bezier(.3, 1.3, .5, 1) both; pointer-events: none; }
.contact_page .postmark text { fill: #2b3f93; stroke: none; font: bold 13px Arial, Verdana, sans-serif; letter-spacing: 1px; }
.contact_page .postmark .day { font-size: 13.5px; letter-spacing: 0; }
@keyframes contact-stamped { from { opacity: 0; transform: scale(1.8) rotate(-14deg); } to { opacity: .82; transform: rotate(-14deg); } }
.contact_page .after { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }

/* ---- where we are */
.contact_page .details { display: flex; align-items: flex-start; gap: 24px; margin: 28px 0 22px; }
.contact_page .polaroid { flex: none; width: 214px; box-sizing: border-box; padding: 8px 8px 5px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); transform: rotate(-2deg); text-decoration: none; }
.contact_page .polaroid img { display: block; width: 100%; height: auto; }
.contact_page .polaroid span { display: block; margin-top: 3px; text-align: center; font: 700 21px/1.15 "Caveat", "Segoe Print", cursive; color: #2b3f93; }
.contact_page .business_card { flex: 1; min-width: 0; padding: 13px 18px 6px; border: 1px solid #e3d9c4; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(60, 50, 30, .13); }
.contact_page .business_card p { margin: 0 0 9px; }
.contact_page .business_card img { display: block; }
.contact_page .good_to_know { margin-bottom: 20px; }
.contact_page .good_to_know p { margin: 0 0 8px; }
.contact_page .philosophy ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact_page .philosophy li { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 0; background: none; font-size: 13px; line-height: 1.3; text-align: center; }
.contact_page .philosophy svg { width: 34px; height: 34px; }

/* ---- a phone: what she says under the desk, with room for the longest, so nothing moves there either */
@media (max-width: 600px) {
    .contact_page h1 { font-size: 23px; }
    .contact_page { margin-top: 0; }
    .contact_page .balloon, .contact_page.en .balloon { position: relative; left: auto; top: auto; max-width: none; min-height: 158px; margin-top: 12px; transform: none; }
    .contact_page .balloon .line[data-id=hello], .contact_page.en .balloon .line[data-id=hello] { width: auto; }
    .contact_page .balloon::before { left: 30px; top: -8px; margin-top: 0; border-width: 1.5px 0 0 1.5px; }
    .contact_page .shout { top: auto; right: 0; bottom: 84px; left: 0; max-width: none; transform: none; }
    .contact_page .shout::after { right: 30px; top: -8px; margin-top: 0; border-width: 1.5px 0 0 1.5px; }
    .contact_page .postcard { grid-template-columns: minmax(0, 1fr); padding: 18px 13px 13px; }
    .contact_page .address_side { margin: 12px 0 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid #d9cfbd; }
    .contact_page .stamp { top: 6px; }
    .contact_page .postcard textarea { min-height: 196px; }
    .contact_page .details { flex-direction: column; align-items: center; }
    .contact_page .business_card { align-self: stretch; }
    .contact_page .philosophy ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .contact_page .postmark { animation: none; }
}
