/* Chapter 07 Let's Connect — the inside of the contact card (the card itself lives in finale.css), as in the storyboard:
   one quiet peak with the Apex above it, the form as a sentence, the e-mail with a copy button. No prices anywhere. */
.cx .eyebrow { color: var(--bone-muted); }

/* the peak, sitting on the bottom edge; the Apex floats above the summit and lands on it after sending */
.cx-peak { position: relative; width: 100%; max-width: 300px; aspect-ratio: 4 / 3; }
.cx-peak svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cx-apex { position: absolute; left: 50%; top: 13.3%; width: clamp(14px, 1.6vw, 22px); aspect-ratio: 1; margin-left: calc(clamp(14px, 1.6vw, 22px) / -2);
  background: var(--orange); transform: translateY(-260%) rotate(45deg); box-shadow: 0 0 22px rgba(254, 106, 0, .55);
  animation: cx-hover 3.6s ease-in-out infinite; transition: transform 1.1s cubic-bezier(.5, 0, .2, 1.3); }
@keyframes cx-hover { 50% { translate: 0 -6px; } }
.cx[data-sent] .cx-apex { animation: none; transform: translateY(-62%) rotate(45deg); }

.cx-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: .94; font-size: clamp(36px, min(4.4vw, 7.6vh), 80px); text-wrap: balance; }
.cx-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--orange-deep); letter-spacing: -.02em; }
.cx-text { text-wrap: pretty; display: grid; gap: 12px; max-width: 34em; font-size: clamp(16px, min(1.2vw, 2.1vh), 19px); line-height: 1.6; color: #2c2a38; }

/* the form as a sentence: each field is an underlined word in the line */
.cx-form { display: grid; gap: 6px; margin-top: 6px; }
@media (max-width: 899px) { .cx-form { gap: 10px; } .cx-row { margin-top: 22px; } }
.cx-line { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, min(2.2vw, 4vh), 36px); line-height: 1.5; letter-spacing: -.02em; }
.cx-line label { cursor: text; }
.cx-form input, .cx-form select { font: inherit; letter-spacing: inherit; color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: 0 2px; margin: 0;
  border-bottom: 2px solid var(--orange); width: 9.5ch; max-width: 100%; min-width: 4ch; outline: none; transition: border-color .2s, background-color .2s; }
.cx-form input[type="email"] { width: 12ch; }
.cx-form select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 1.1em;
  background: linear-gradient(45deg, transparent 50%, var(--orange) 50%) right .45em top 55% / .32em .32em no-repeat, linear-gradient(-45deg, transparent 50%, var(--orange) 50%) right .13em top 55% / .32em .32em no-repeat; }
.cx-form input::placeholder { color: #9a93a6; opacity: 1; }
.cx-form input:focus-visible, .cx-form select:focus-visible { background-color: rgba(254, 106, 0, .09); }
.cx-form input:user-invalid { border-bottom-color: #b3261e; }
.cx-form select.cx-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }

/* the choice: reads as one more underlined word in the sentence, opens a quiet list in the house style */
.cx-pick { position: relative; display: inline-block; vertical-align: baseline; }
.cx-select { font: inherit; letter-spacing: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--orange); border-radius: 0;
  padding: 0 2px; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .32em; line-height: inherit; transition: background-color .2s; }
.cx-select:hover { background-color: rgba(254, 106, 0, .06); }
.cx-select:focus-visible { outline: none; background-color: rgba(254, 106, 0, .09); }
.cx-chev { width: .5em; height: .34em; color: var(--orange); transition: transform .25s var(--ease-out); flex: none; }
.cx-select[aria-expanded="true"] .cx-chev { transform: rotate(180deg); }
.cx-menu { position: absolute; z-index: 20; left: -10px; top: calc(100% + 10px); min-width: calc(100% + 20px); width: max-content; margin: 0; padding: 6px; list-style: none;
  background: #fffdf9; border: 1px solid rgba(12, 11, 18, .1); border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(40, 20, 6, .35), 0 2px 6px rgba(40, 20, 6, .08);
  font-family: var(--f-body); font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.3; outline: none;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: 20% 0; transition: opacity .18s ease, transform .22s var(--ease-out); }
.cx-menu.open { opacity: 1; transform: none; }
.cx-menu [role="option"] { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 11px; cursor: pointer; color: #2c2a38; }
.cx-menu [role="option"].is-active { background: rgba(254, 106, 0, .09); color: var(--ink); }
.cx-menu [role="option"][aria-selected="true"] { color: var(--ink); font-weight: 600; }
.cx-tick { width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid #cbbfae; flex: none; transition: background-color .2s, border-color .2s; }
.cx-menu [aria-selected="true"] .cx-tick { background: var(--orange); border-color: var(--orange); }
.cx-menu:focus-visible { box-shadow: 0 24px 60px -18px rgba(40, 20, 6, .35), 0 0 0 2px rgba(254, 106, 0, .55); }

/* the two written fields: same calm line as the sentence, more room to write */
.cx-field { display: grid; gap: 8px; margin-top: 4px; }
.cx-field label { font-size: 14px; font-weight: 500; color: var(--bone-muted); }
.cx-field label span { font-weight: 400; color: #8a8292; }
.cx-field textarea { font: 400 16px/1.5 var(--f-body); color: var(--ink); width: 100%; resize: vertical; min-height: 3.2em; padding: 12px 14px; margin: 0;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--bone-line); border-bottom: 2px solid rgba(254, 106, 0, .55); border-radius: 12px 12px 4px 4px;
  outline: none; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.cx-field textarea::placeholder { color: #9a93a6; }
.cx-field textarea:hover { background: rgba(255, 255, 255, .8); }
.cx-field textarea:focus-visible { border-color: rgba(254, 106, 0, .6); border-bottom-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(254, 106, 0, .12); }
.cx-extra textarea { min-height: 6.6em; }
/* 'Aanvullende informatie': one quiet line with a plus that turns into a minus; the field unfolds below it */
.cx-extra { margin-top: 6px; }
.cx-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 6px 2px; margin: 0; border: 0; background: transparent; cursor: pointer;
  font: 500 14px var(--f-body); color: var(--bone-muted); border-radius: 6px; transition: color .2s; }
.cx-toggle span:not(.cx-plus) { font-weight: 400; color: #8a8292; margin-left: -4px; }
.cx-toggle:hover { color: var(--ink); }
.cx-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.cx-plus { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(254, 106, 0, .7); flex: none; transition: transform .3s var(--ease-out), border-color .2s; }
.cx-plus::before, .cx-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.5px; margin: -.75px 0 0 -4px; background: var(--orange); border-radius: 1px; transition: transform .3s var(--ease-out); }
.cx-plus::after { transform: rotate(90deg); }
.cx-toggle[aria-expanded="true"] .cx-plus::after { transform: rotate(0deg); }   /* plus → minus */
.cx-toggle:hover .cx-plus { border-color: var(--orange); }
#cx-extra-wrap .cx-field { padding: 6px 3px 4px; margin-top: 0; }
/* 'iets anders' unfolds below the choice */
.cx-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease-out), opacity .25s ease; }
.cx-reveal > * { min-height: 0; overflow: hidden; }
.cx-reveal.open { grid-template-rows: 1fr; opacity: 1; }
.cx-reveal[hidden] { display: none; }
.cx-reveal .cx-field { padding: 2px 3px 10px; }
.cx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.cx-send { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 99px; padding: 15px 24px; cursor: pointer;
  background: var(--ink); color: var(--bone); font: 600 16px var(--f-body); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background-color .25s; }
.cx-send:hover { transform: translateY(-2px); background: #1d1b2a; }
.cx-send:active { transform: translateY(0) scale(.98); }
.cx-send:focus-visible, .cx-copy:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.cx-dia { width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); }
.cx-status { font-size: 15px; color: var(--bone-muted); max-width: 30em; }
.cx-status.err { color: #b3261e; }

.cx-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 20px; border-top: 1px solid var(--bone-line); }
.cx-or { color: var(--bone-muted); font-size: 15px; }
.cx-mail .addr { font-family: var(--f-mono); font-size: 15px; letter-spacing: .02em; user-select: all; }
.cx-copy { font: 600 14px var(--f-body); color: var(--ink); background: transparent; border: 1px solid #bfb5a7; border-radius: 99px; padding: 10px 16px; cursor: pointer; transition: border-color .25s; }
.cx-copy:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .cx-apex { animation: none; transition: none; } .cx-send, .cx-menu, .cx-reveal, .cx-chev, .cx-plus, .cx-plus::after { transition: none; } }
