/* ATTA v1.2: stable, accessible mobile dialog and contact form. */
#detail{box-sizing:border-box;width:min(570px, calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:min(90dvh, 850px);margin:auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
#detail .dialogInner,#detail #content,#detail #brief,#detail #output{box-sizing:border-box;min-width:0;max-width:100%}
#detail .dialogInner{padding:clamp(18px,4vw,36px);width:100%}
#detail #content{overflow-wrap:anywhere;word-break:normal}
#detail label{display:block;max-width:100%;min-width:0}
#detail input,#detail select,#detail textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;font-size:16px;line-height:1.4}
#detail input[type=checkbox]{width:18px;max-width:18px;flex:0 0 18px;min-width:18px;margin:2px 0 0}
#detail .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#detail .cta{display:block;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:16px;line-height:1.35;text-align:center;text-decoration:none}
#detail #result{overflow-wrap:anywhere;max-width:100%;white-space:pre-wrap}
#detail .atta-consent{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5}
#detail .atta-consent a{text-underline-offset:3px}
#detail .atta-whatsapp{margin-top:14px}
#detail .atta-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
#detail #output[hidden]{display:none}
@media(max-width:550px){#detail{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 30px);border-radius:17px}#detail .dialogInner{padding:20px}#detail .row{grid-template-columns:minmax(0,1fr);gap:0}#detail h2{font-size:27px;line-height:1.2;padding-top:12px}#detail label{font-size:13px}#detail #content{max-width:100%}}
