/* Short company enquiry + mobile contact bar. Reuses the site's .ct-field / .cta styles. */

.dem { padding: clamp(3.5rem, 7vw, 6rem) 0; background: #fff; border-top: 1px solid rgba(0, 51, 102, .08); border-bottom: 1px solid rgba(0, 51, 102, .08); scroll-margin-top: 5.5rem; }
.dem__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .dem__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; } }
.dem__title { margin-top: 1rem; }
.dem__lead { margin-top: 1rem; font-size: 1.02rem; line-height: 1.75; color: #475569; max-width: 30rem; }
.dem__facts { margin: 1.75rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(0, 51, 102, .12); max-width: 30rem; }
.dem__facts li { padding: .85rem 0; border-bottom: 1px solid rgba(0, 51, 102, .12); font-size: .92rem; line-height: 1.6; color: #003366; font-weight: 600; }
.dem__facts a { color: #0075B0; border-bottom: 1px solid rgba(0, 117, 176, .4); font-weight: 700; }
.dem__direct { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.dem__wa, .dem__tel { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 9999px; font-size: .88rem; font-weight: 700; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.dem__wa { background: #25D366; color: #fff; }
.dem__wa:hover { background: #1da851; }
.dem__tel { border: 1px solid rgba(0, 51, 102, .2); color: #003366; }
.dem__tel:hover { border-color: #003366; background: #003366; color: #fff; }

.dem__form { min-width: 0; }
.dem__fields { margin-top: 0; }
.dem__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dem__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.dem__submit { margin-top: 0; }
.dem__submit[disabled] { opacity: .6; cursor: wait; }
.dem__more { font-size: .86rem; color: #64748b; border-bottom: 1px solid rgba(100, 116, 139, .35); }
.dem__more:hover { color: #003366; border-color: #003366; }
.dem__msg { margin-top: 1.5rem; padding: 1rem 1.15rem; font-size: .95rem; line-height: 1.6; border-left: 3px solid #0075B0; background: rgba(0, 160, 198, .06); color: #003366; }
.dem__msg.is-error { border-left-color: #b42318; background: #fef3f2; color: #7a271a; }
.dem__msg.is-hidden { display: none; }
.dem__privacy { margin-top: 1.25rem; font-size: .78rem; line-height: 1.6; color: #94a3b8; }

/* Mobile contact bar on company pages */
.mak-bar { display: none; }
@media (max-width: 767px) {
    .mak-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: rgba(0, 51, 102, .12); border-top: 1px solid rgba(0, 51, 102, .12); padding-bottom: env(safe-area-inset-bottom); }
    .mak-bar__btn { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 54px; background: #fff; color: #003366; font-size: .88rem; font-weight: 800; }
    .mak-bar__btn--wa { color: #128c4a; }
    .mak-bar__btn--form { background: #003366; color: #fff; }
    body:has(.mak-bar) { padding-bottom: 56px; }
    body:has(.mak-bar) .float-stack { bottom: calc(56px + 1rem + env(safe-area-inset-bottom)); }
    body:has(.mak-bar) .float-stack > a[href*="wa.me"] { display: none; }
    .dem__direct a { flex: 1 1 auto; justify-content: center; }
}

/* Team and fees, next to the short form */
.dem__team { margin-top: 1.75rem; max-width: 30rem; }
.dem__team-lab { font-size: max(.64rem, 11px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #0075B0; }
.dem__people { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: .85rem; }
.dem__person { display: flex; align-items: center; gap: .75rem; color: #003366; }
.dem__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; background: #e8eef5; }
.dem__person strong { display: block; font-size: .92rem; font-weight: 800; line-height: 1.3; }
.dem__person small { display: block; font-size: .8rem; color: #64748b; }
a.dem__person:hover strong { color: #0075B0; }
.dem__fees { margin-top: 1rem; font-size: .88rem; line-height: 1.6; color: #475569; }
.dem__fees a { color: #0075B0; font-weight: 700; border-bottom: 1px solid rgba(0, 117, 176, .4); }

/* Recent assignments */
.dem__missions { margin-top: 1.5rem; max-width: 30rem; }
.dem__missions ul { margin: .6rem 0 0; padding: 0; list-style: none; }
.dem__missions li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(0, 51, 102, .1); font-size: .9rem; color: #003366; }
.dem__missions li:last-child { border-bottom: 0; }
.dem__missions b { font-weight: 800; white-space: nowrap; color: #0075B0; }
