/* Delivery contact subform: preserve the parent request and its attachments. */
.delivery-contact-create-action { display:flex; align-items:center; gap:10px; margin-top:8px; }
.delivery-contact-create-action .button { padding:6px 10px; }
.delivery-contact-create-child > :not(.delivery-contact-create-form) { display:none !important; }
.delivery-contact-create-child { display:flex; flex-direction:column; height:min(900px,calc(100dvh - 32px)); max-height:calc(100dvh - 32px); overflow:hidden; }
.delivery-contact-create-form { display:flex; flex-direction:column; flex:1; min-height:0; }
.delivery-contact-create-body { flex:1; min-height:0; overflow:auto; scrollbar-gutter:stable; padding:4px 4px 12px 0; }
.delivery-contact-create-form .field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.delivery-contact-create-form .field-grid > label, .delivery-contact-create-form .contact-job-title-field { display:grid; grid-template-rows:auto auto; align-content:start; }
.delivery-contact-create-form .contact-notes-field { grid-column:1/-1; }
.delivery-contact-create-form textarea { min-height:70px; }
.delivery-contact-create-form .modal-actions { flex-shrink:0; border-top:1px solid var(--line); padding-top:12px; }
.delivery-contact-create-switch { display:flex; gap:8px; margin:14px 0; }
.delivery-contact-create-switch [aria-pressed=true] { background:var(--ink); color:var(--card); }
.delivery-contact-create-form .delivery-contact-create-use { margin-top:18px; }
.delivery-contact-create-form .delivery-contact-create-help { font-size:12px; font-weight:400; color:var(--muted); margin:8px 0; }
.delivery-contact-create-error { color:#a51e26; font-size:13px; }
.delivery-contact-create-match { border:1px solid var(--line); background:var(--canvas); padding:12px; margin-top:12px; border-radius:6px; }

@media(max-width:600px) { .delivery-contact-create-form .field-grid { grid-template-columns:1fr; } }
