/* Scoped Company enquiry: retain ApolloPCB typography and logo-blue controls. */
.company-page .ce-dialog{
  width:min(680px,calc(100vw - 32px));
  max-width:none;
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:0;
  border:0;
  border-radius:28px;
  background:#fff;
  color:var(--ink);
  overflow:auto;
  box-shadow:0 28px 100px #02021455;
  overscroll-behavior:contain;
}
.ce-dialog::backdrop{background:#020214aa;backdrop-filter:blur(7px)}
.ce-dialog-content{position:relative;padding:36px 40px}
.ce-close{position:absolute;right:22px;top:22px;width:40px;height:40px;display:grid;place-items:center;padding:0;border-radius:50%;background:#f4f4f9;color:var(--brand);transition:background .2s}
.ce-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.ce-close:hover{background:#eaeaf5}
.ce-context{font-size:12px;color:var(--brand);padding-right:42px;margin-bottom:12px}
.company-page .ce-dialog h2{font-size:34px;font-weight:700;line-height:1.22;letter-spacing:-.025em;margin:0;padding-right:28px}
.ce-dialog #ce-intro{font-size:14px;line-height:1.7;color:#74747d;margin-top:14px;max-width:520px}
.ce-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin-top:26px}
.ce-dialog label{display:block;min-width:0;font-size:13px;font-weight:500;color:var(--ink)}
.ce-fields label>span{color:var(--brand)}
.ce-full{grid-column:1/-1}
.ce-dialog input,.ce-dialog select,.ce-dialog textarea{display:block;width:100%;min-width:0;border:1px solid #dfdfe7;background:#f8f8fb;color:var(--ink);border-radius:12px;padding:12px 14px;margin-top:8px;font:inherit;font-size:14px;line-height:1.5;transition:border-color .2s,box-shadow .2s}
.ce-dialog input,.ce-dialog select{min-height:46px}
.ce-dialog textarea{resize:vertical;min-height:112px}
.ce-dialog input::placeholder,.ce-dialog textarea::placeholder{color:#888894}
.ce-dialog input:focus,.ce-dialog select:focus,.ce-dialog textarea:focus{border-color:var(--brand);outline:2px solid #2f308c24;outline-offset:1px;background:#fff}
.ce-dialog [readonly]{background:#f6f6fa}
.ce-mail-note{font-size:11px;color:#74747d;line-height:1.8;margin-top:18px}
.ce-mail-note>span{color:var(--brand)}
.company-page .ce-dialog .pill{font-size:14px;min-height:48px;min-width:0;padding:14px 24px;gap:22px}
.ce-prepare{margin-top:20px}
.ce-preview-note{font-size:13px;line-height:1.8;color:var(--brand);padding:15px 18px;background:#f4f4fa;border-radius:12px;margin:24px 0 20px}
.ce-preview>label+label{margin-top:15px}
.ce-preview textarea{min-height:190px}
.ce-draft-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px 22px;margin-top:24px}
.ce-text-button{background:none;padding:8px 0;color:var(--brand);font:inherit;font-size:13px;border-bottom:1px solid #d9d9ec}
.ce-text-button:hover{border-color:var(--brand)}
.ce-status{font-size:12px;line-height:1.7;color:var(--brand)}
.ce-status:not(:empty){margin-top:16px}
@media(max-width:550px){
  .ce-dialog-content{padding:28px 24px}
  .ce-close{right:16px;top:16px;width:36px;height:36px}
  .company-page .ce-dialog h2{font-size:28px;padding-right:24px}
  .ce-context{font-size:11px;margin-bottom:14px}
  .ce-dialog #ce-intro{font-size:13px}
  .ce-fields{grid-template-columns:1fr;gap:16px;margin-top:22px}
  .ce-full{grid-column:auto}
  .ce-dialog input,.ce-dialog select,.ce-dialog textarea{font-size:16px}
  .ce-dialog textarea{min-height:100px}
  .ce-draft-actions{gap:16px}
  .ce-draft-actions>.pill{width:100%}
  .ce-mail-note{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.ce-dialog *{transition:none!important}}
