/* PlotVibe's Contact page, on top of site.css and features.css (title, bands, links, the giant motto). The form is
   the centrepiece: topics as chips, fields whose labels float up and glow, a mistake shown under its field, and the
   email previewed beside the form as it is typed. */

.ct-hero { padding-bottom: 10px; }
.ct-hero .fx-title { font-size: clamp(48px, 8.6vw, 120px); }
.ct-live { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin: 30px auto 0; width: fit-content; max-width: 100%;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 14.5px; }
.ct-live b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); animation: ct-live 2s infinite; }
@keyframes ct-live { 0% { box-shadow: 0 0 0 0 rgba(38, 194, 129, .6); } 100% { box-shadow: 0 0 0 10px rgba(38, 194, 129, 0); } }
.ct-sep { width: 1px; height: 16px; background: var(--line-2); }

/* ---- the panel: the form and the preview ---- */
.ct-main { padding: clamp(50px, 7vh, 80px) 0 0; }
.ct-panel { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.5vw, 48px);
  padding: clamp(22px, 3.5vw, 48px); border-radius: 30px; border: 1px solid var(--line-2);
  background: radial-gradient(70% 60% at 0% 0%, rgba(138, 18, 253, .18), transparent 60%), linear-gradient(160deg, rgba(27, 18, 54, .9), rgba(10, 7, 20, .95));
  box-shadow: 0 50px 120px rgba(75, 2, 198, .25), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.ct-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .45;
  background-image: linear-gradient(rgba(196, 168, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 168, 255, .06) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 50% at 100% 0%, #000, transparent); mask-image: radial-gradient(60% 50% at 100% 0%, #000, transparent); }
.ct-form { position: relative; display: grid; gap: 30px; min-width: 0; }
.ct-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-form legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-family: var(--display); font-weight: 700; font-size: 21px; color: #fff; }
.ct-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff;
  background: rgba(138, 18, 253, .25); border: 1px solid rgba(185, 138, 255, .5); transition: background .4s, box-shadow .4s; }
.ct-form fieldset.done .ct-n { background: var(--grad); box-shadow: 0 0 0 5px rgba(138, 18, 253, .15); }

/* topics as chips */
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; cursor: pointer; font-size: 15px; font-weight: 500; color: #cfc6e6;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); transition: color .2s, border-color .2s, background .25s, transform .2s, box-shadow .25s; user-select: none; }
.ct-chip:hover { color: #fff; border-color: rgba(185, 138, 255, .5); transform: translateY(-1px); }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip svg { width: 19px; height: 19px; color: var(--violet-soft); transition: color .2s, transform .3s; }
.ct-chip:has(input:checked) { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 10px 30px rgba(138, 18, 253, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.ct-chip:has(input:checked) svg { color: #fff; transform: scale(1.1); }
.ct-chip:has(input:focus-visible) { outline: 2px solid var(--violet-soft); outline-offset: 3px; }
.ct-hint { margin-top: 12px; color: var(--muted); font-size: 14px; min-height: 1.6em; transition: opacity .25s; }
.ct-hint.swap { opacity: 0; }

/* fields: the label sits inside, then floats up; the field glows when in use */
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { position: relative; }
.ct-field input, .ct-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(7, 5, 13, .65); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 24px 16px 9px 48px; outline: none; transition: border-color .2s, box-shadow .25s, background .25s; }
.ct-area textarea { padding: 30px 18px 34px; min-height: 190px; resize: vertical; line-height: 1.6; }
.ct-field label { position: absolute; left: 48px; top: 18px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: 0 0; transition: transform .2s, color .2s, top .2s; }
.ct-area label { left: 18px; top: 20px; right: 18px; }
.ct-field input:focus + label, .ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label, .ct-field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--violet-soft); }
.ct-area textarea:focus + label, .ct-area textarea:not(:placeholder-shown) + label { transform: translateY(-12px) scale(.76); }
.ct-field input:hover, .ct-field textarea:hover { border-color: rgba(185, 138, 255, .35); }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--violet-soft); background: rgba(14, 9, 28, .9); box-shadow: 0 0 0 4px rgba(138, 18, 253, .22), 0 10px 30px rgba(138, 18, 253, .15); }
.ct-ico { position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; color: var(--dim); transition: color .2s; pointer-events: none; }
.ct-field:focus-within .ct-ico { color: var(--violet-soft); }
.ct-field.ok .ct-ico { color: var(--up); }
.ct-count { position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); pointer-events: none; }
.ct-count.near { color: #f7a600; }
/* a mistake: red border, and the message under the field (as the app's forms) */
.ct-field.bad input, .ct-field.bad textarea { border-color: #f2545b; box-shadow: 0 0 0 4px rgba(242, 84, 91, .16); }
.ct-field.bad label, .ct-field.bad .ct-ico { color: #ff8d92; }
.ct-field.bad { animation: ct-shake .4s; }
@keyframes ct-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.ct-err { display: flex; align-items: center; gap: 6px; min-height: 0; margin: 0; font-size: 13.5px; color: #ff8d92; overflow: hidden; max-height: 0; transition: max-height .25s, margin .25s; }
.ct-err:not(:empty) { max-height: 40px; margin-top: 7px; }
.ct-err svg { width: 15px; height: 15px; flex: none; }

/* which device (for help and problems) */
.ct-devices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; overflow: hidden; max-height: 160px; transition: max-height .35s, opacity .3s, margin .35s; }
.ct-devices.off { max-height: 0; opacity: 0; margin-top: 0; }
.ct-dlabel { color: var(--muted); font-size: 14px; margin-right: 4px; }
.ct-mini { position: relative; cursor: pointer; }
.ct-mini input { position: absolute; opacity: 0; pointer-events: none; }
.ct-mini span { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: #cfc6e6; border: 1px solid var(--line-2); transition: all .2s; }
.ct-mini:hover span { border-color: rgba(185, 138, 255, .5); color: #fff; }
.ct-mini input:checked + span { color: #fff; border-color: rgba(185, 138, 255, .7); background: rgba(138, 18, 253, .25); }
.ct-mini input:focus-visible + span { outline: 2px solid var(--violet-soft); outline-offset: 2px; }

/* the send button: a gradient pill with a sheen; the plane flies off when sent */
.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ct-btn { position: relative; overflow: hidden; height: 58px; padding: 0 30px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 600; font-size: 17px; color: #fff;
  background: var(--grad); box-shadow: 0 14px 40px rgba(138, 18, 253, .45), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s, box-shadow .2s; }
.ct-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s; }
.ct-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(138, 18, 253, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.ct-btn:hover::after { left: 130%; }
.ct-btn:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 4px; }
.ct-btn-in { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.ct-btn svg { width: 20px; height: 20px; transition: transform .3s; }
.ct-btn:hover svg { transform: translate(3px, -3px) rotate(-6deg); }
.ct-btn.flying svg { animation: ct-fly .9s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes ct-fly { 40% { transform: translate(-4px, 4px); } 100% { transform: translate(140px, -70px) rotate(-20deg); opacity: 0; } }
.ct-safe { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13.5px; }
.ct-safe svg { width: 16px; height: 16px; color: var(--up); }

/* ---- the email preview ---- */
.ct-preview { position: relative; min-width: 0; display: flex; flex-direction: column; }
.ct-mail { position: sticky; top: 100px; border-radius: 20px; overflow: hidden; background: #f6f4fb; color: #1d1530; box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(1.2deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ct-preview:hover .ct-mail, .ct-panel:focus-within .ct-mail { transform: rotate(0); }
.ct-mail-top { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #1b1530; color: #cfc6e6; font-size: 13px; font-weight: 600; }
.ct-mail-top i { width: 11px; height: 11px; border-radius: 50%; background: #3a3058; }
.ct-mail-top i:nth-child(1) { background: #f2545b; } .ct-mail-top i:nth-child(2) { background: #f7a600; } .ct-mail-top i:nth-child(3) { background: #26c281; }
.ct-mail-top span { margin-left: 8px; }
.ct-mail-head { margin: 0; padding: 6px 20px; border-bottom: 1px solid #e3def0; }
.ct-mail-head div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid #ece8f5; font-size: 14px; }
.ct-mail-head div:last-child { border-bottom: 0; }
.ct-mail-head dt { color: #8d84a8; }
.ct-mail-head dd { margin: 0; color: #1d1530; font-weight: 500; overflow-wrap: anywhere; }
.ct-mail em { font-style: normal; color: #b0a8c6; }
.ct-to { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; border-radius: 999px; background: #ece4ff; color: #4b1bb0; font-weight: 600; }
.ct-to img { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #1b1236; }
.ct-mail-body { min-height: 150px; max-height: 300px; overflow: auto; padding: 18px 20px 6px; font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-mail-sign { padding: 0 20px 20px; font-size: 14px; color: #5c5478; white-space: pre-wrap; }
.ct-mail-sign:empty { display: none; }
.ct-mail .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #8a12fd; animation: ct-caret 1s steps(2, jump-none) infinite; }
@keyframes ct-caret { 50% { opacity: 0; } }
.ct-preview-note { margin-top: 18px; color: var(--muted); font-size: 13.5px; text-align: center; }
.ct-mail .pulse { animation: ct-flash .5s; }
@keyframes ct-flash { from { background: #e6d8ff; } to { background: transparent; } }

/* after sending: the preview turns into the next steps */
.ct-preview.sent .ct-mail, .ct-preview.sent .ct-preview-note { display: none; }
.ct-done { position: sticky; top: 100px; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 30px; border-radius: 22px; text-align: left;
  background: radial-gradient(80% 60% at 100% 0%, rgba(38, 194, 129, .22), transparent 70%), linear-gradient(160deg, #10241d, #08110e); border: 1px solid rgba(38, 194, 129, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: ct-in .5s cubic-bezier(.2, .7, .2, 1); }
.ct-done[hidden] { display: none; }
@keyframes ct-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.ct-done-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--up); box-shadow: 0 0 0 10px rgba(38, 194, 129, .15); margin-bottom: 20px; }
.ct-done-ico svg { width: 30px; height: 30px; color: #fff; stroke-dasharray: 30; stroke-dashoffset: 30; animation: ct-tick .6s .2s forwards; }
@keyframes ct-tick { to { stroke-dashoffset: 0; } }
.ct-done h3 { font-size: 26px; }
.ct-done p { margin-top: 10px; color: #c9e9da; font-size: 15px; }
.ct-done p b { color: #fff; overflow-wrap: anywhere; }
.ct-done-alt { color: #9fbfb1 !important; font-size: 14px !important; }
.ct-done-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ct-done .btn svg { flex: none; }
.ct-done button.btn-ghost { border: 1px solid transparent; background: none; color: #c9e9da; }
.ct-done button.btn-ghost:hover { color: #fff; border-color: rgba(38, 194, 129, .4); }
.ct-done .btn.copied { border-color: rgba(38, 194, 129, .7); color: #9ff0cb; }

/* ---- other ways ---- */
.ct-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 50px; }
.ct-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; text-decoration: none; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 16, 48, .8), rgba(12, 8, 24, .8)); transition: border-color .3s, transform .3s, box-shadow .3s; }
.ct-card::before { content: ""; position: absolute; width: 200px; height: 200px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(138, 18, 253, .35), transparent 70%); opacity: 0; transition: opacity .4s; }
.ct-card:hover { border-color: rgba(185, 138, 255, .45); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.ct-card:hover::before { opacity: 1; }
.ct-cico { position: relative; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(138, 18, 253, .18); border: 1px solid rgba(185, 138, 255, .3); color: var(--violet-soft); }
.ct-cico svg { width: 25px; height: 25px; }
.ct-card h3 { position: relative; font-size: 22px; margin-top: 6px; }
.ct-card p { position: relative; color: var(--muted); font-size: 15px; }
.ct-card em { position: relative; margin-top: auto; padding-top: 8px; font-style: normal; font-family: var(--mono); font-size: 13.5px; color: #dccbff; }

/* ---- quick answers ---- */
.ct-faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.ct-faq h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
.ct-faq-in > div:first-child { position: sticky; top: 110px; }
.ct-qs details { border-bottom: 1px solid var(--line); }
.ct-qs details:first-child { border-top: 1px solid var(--line); }
.ct-qs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 4px; font-family: var(--display); font-size: 19px; font-weight: 700; transition: color .2s; }
.ct-qs summary:hover { color: var(--violet-soft); }
.ct-qs summary::-webkit-details-marker { display: none; }
.ct-qs summary::after { content: "+"; color: var(--violet-soft); font-size: 24px; line-height: 1; transition: transform .25s; }
.ct-qs details[open] summary::after { transform: rotate(45deg); }
.ct-qs details p { padding: 0 4px 22px; color: var(--muted); max-width: 66ch; }
.ct-qs details a { color: var(--violet-soft); }
.ct .start { margin-top: clamp(90px, 13vh, 150px); }

@media (max-width: 980px) {
  .ct-panel { grid-template-columns: minmax(0, 1fr); }
  .ct-mail { position: relative; top: 0; transform: none; }
  .ct-mail-body { min-height: 90px; max-height: 160px; }
  .ct-done { position: fixed; inset: auto 12px 12px 12px; z-index: 60; }
}
@media (max-width: 900px) {
  .ct-cards, .ct-faq-in { grid-template-columns: minmax(0, 1fr); }
  .ct-faq-in > div:first-child { position: static; }
}
@media (max-width: 600px) {
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .ct-panel { border-radius: 22px; }
  .ct-chip { padding: 10px 13px; font-size: 14.5px; }
  .ct-btn { width: 100%; }
  .ct-to { font-size: 13px; }
  .ct-mail-head div { grid-template-columns: 56px minmax(0, 1fr); }
  .ct-sep { display: none; }
  .ct-live { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-dot, .ct-mail .caret, .ct-field.bad, .ct-btn.flying svg { animation: none; }
  .ct-mail { transform: none; }
}
