/* Contact card and optional stages follow the user-approved Meta references. */
.instant-page{background:#e9ebee;color:#1c1e21;font-family:Arial,Helvetica,sans-serif;font-size:16px;min-height:100vh;min-height:100dvh;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.instant-shell{width:calc(100% - 32px);max-width:480px;min-height:min(760px,calc(100dvh - 48px));margin:24px auto;background:#f0f2f5;border-radius:12px;overflow:clip;box-shadow:0 2px 16px #0000000b}
.instant-stage{min-height:inherit;display:flex;flex-direction:column}
.instant-stage>form{display:flex;flex-direction:column;flex:1;min-height:inherit;margin:0}
.instant-cards{padding:20px 16px 22px;flex:1;min-width:0}
.instant-card{background:#fff;border-radius:14px;padding:23px 21px;box-shadow:0 2px 5px #00000014;overflow-wrap:anywhere;margin-bottom:16px}
.instant-card:last-child{margin-bottom:0}
.instant-card h1{font-size:18px;line-height:1.4;font-weight:400;letter-spacing:0}
.instant-card .info-icon{width:21px;height:21px;color:#656b73;vertical-align:-2px;margin-left:5px}
.info-icon circle{fill:currentColor;stroke:none}.info-icon path{stroke:white;stroke-width:2.4}
.contact-description{font-size:14px;line-height:1.45;margin:17px 0 23px;white-space:pre-line}
.instant-field{display:block;margin:0 0 27px;min-width:0}
.instant-field:last-child{margin-bottom:8px}
.instant-field>span{display:block;font-size:12px;font-weight:400;color:#8c939e;margin-bottom:9px}
.instant-field em{font-style:normal;font-weight:400;font-size:11px}
.instant-field input,.instant-field textarea{display:block;width:100%;min-width:0;border:0;border-bottom:1px solid #bec3c9;border-radius:0;outline:0;background:transparent;color:#1c1e21;padding:9px 0 11px;font-size:16px;line-height:1.4;font-weight:400;box-shadow:none}
.instant-field input::placeholder,.instant-field textarea::placeholder{color:#9097a3;opacity:1}
.instant-field input:focus,.instant-field textarea:focus{border-bottom:2px solid #1877f2;margin-bottom:-1px;outline:0}
.instant-field textarea{resize:vertical;min-height:90px}
.instant-field small{display:block;font-size:10px;line-height:1.45;color:#8a9099;margin-top:8px}
.instant-actions{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;padding:13px 16px max(13px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e0e3e8;margin-top:auto;z-index:2}
.instant-primary{display:flex;align-items:center;justify-content:center;min-height:45px;width:100%;padding:12px 17px;background:#1877f2;color:white;font-size:15px;line-height:1.3;font-weight:600;border:0;border-radius:5px;text-decoration:none;cursor:pointer;text-align:center;overflow-wrap:anywhere}
.instant-primary:hover{background:#1269df;text-decoration:none}
.instant-primary:disabled{opacity:.6;cursor:wait}
.instant-back{width:44px;min-height:44px;background:#e4e6eb;color:#4b4f56;border:0;border-radius:5px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.instant-back svg{width:19px;height:19px;transform:rotate(180deg)}
.instant-center{flex:1;display:flex;align-items:center;justify-content:center;padding:68px 25px 40px;min-height:0}
.instant-message{text-align:center;width:100%;padding:0 20px 25px;border-radius:13px}
.instant-brand{display:flex;align-items:center;flex-direction:column;margin-bottom:22px;font-size:16px;gap:12px}
.instant-avatar{width:66px;height:66px;border:3px solid white;border-radius:50%;background:#dfe3e8;color:#50545a;margin-top:-33px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:600;flex-shrink:0}
.instant-message h1{font-size:18px;font-weight:700;line-height:1.4;letter-spacing:0}
.instant-message>p{font-size:14px;line-height:1.5;margin-top:26px;white-space:pre-line}
.instant-confirmation{display:flex;align-items:flex-start;gap:6px;padding-top:15px;margin-top:23px;border-top:1px solid #dadde1;text-align:left;color:#9097a3;font-size:12px;line-height:1.4}
.instant-confirmation .confirmation-icon{width:14px;height:14px;margin:1px 0 0;flex-shrink:0;color:#9097a3}
.instant-question h2{font-size:16px;line-height:1.45;font-weight:400;letter-spacing:0;margin-bottom:16px}
.question-optional{font-size:11px;color:#8a9099;margin:-8px 0 14px}
.instant-options{display:grid;gap:12px}
.instant-option{position:relative;display:flex;cursor:pointer;min-width:0}
.instant-option input{position:absolute;opacity:0;width:1px;height:1px}
.instant-option span{display:flex;align-items:center;justify-content:center;width:100%;min-height:49px;padding:12px 18px;border-radius:28px;background:#e4e6eb;color:#1c1e21;font-size:14px;font-weight:600;line-height:1.4;text-align:center;transition:background .15s}
.instant-option input:checked+span{background:#1877f2;color:#fff}
.instant-option:hover span{background:#d8dce2}.instant-option:hover input:checked+span{background:#1269df}
.instant-option input:focus-visible+span{outline:3px solid #8dbaf9;outline-offset:3px}
.instant-page .form-error{font-size:13px;margin:16px 0 0}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.instant-page.is-preview{background:#f0f2f5}
.instant-page.is-preview .instant-shell{width:100%;margin:0;min-height:calc(100dvh - 28px);border-radius:0;box-shadow:none;max-width:none}
.instant-page.is-preview .instant-stage,.instant-page.is-preview .instant-stage>form{min-height:calc(100dvh - 28px)}
.instant-page.is-preview .instant-center{min-height:0;padding-left:20px;padding-right:20px}
.instant-page.is-preview .instant-card{padding-left:19px;padding-right:19px}
.instant-page.is-preview .instant-message{padding-top:0}
.language-panel{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e4e6eb;background:#fafbfd}
.language-panel strong{display:block;font-size:12px;margin-bottom:5px}.language-panel p{font-size:10px;line-height:1.5;color:#8a9099;max-width:290px}
.language-panel select{font:inherit;font-size:12px;border:1px solid #d9dde3;background:white;color:#1c1e21;border-radius:6px;padding:9px 30px 9px 12px;min-width:112px}
@media(max-width:600px){.instant-shell{width:100%;max-width:480px;margin:0 auto;border-radius:0;box-shadow:none;min-height:100dvh}.instant-center{min-height:0}.instant-cards{padding-left:16px;padding-right:16px}.instant-card h1{font-size:18px}.instant-field input,.instant-field textarea{font-size:16px}.language-panel{padding:16px;align-items:flex-start;gap:12px}.language-panel p{max-width:210px}}
@media(max-width:359px){.instant-cards{padding-left:12px;padding-right:12px}.instant-card{padding:21px 17px}.instant-card h1{font-size:18px}.contact-description{font-size:14px}.instant-field input,.instant-field textarea{font-size:16px}.instant-field>span{font-size:12px}.instant-center{padding-left:18px;padding-right:18px}.language-panel{flex-wrap:wrap}.language-panel select{width:100%}}
.contact-field-list{border:1px solid #e4e6eb;border-radius:12px;margin:20px 0;overflow:hidden}
.contact-field-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid #e4e6eb}
.contact-field-row:last-child{border-bottom:0}
.contact-field-row .switch{flex:1;min-width:0}
.contact-field-order{display:flex;flex-shrink:0;gap:3px}
.contact-field-order .icon-button:disabled{opacity:.3;cursor:default}

/* Information popover stays within the contact card at every viewport width. */
.contact-heading{position:relative;display:flex;align-items:flex-start;gap:6px}
.contact-heading h1{flex:1;min-width:0}
.contact-help-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;padding:8px;margin:-5px -8px -5px 0;border:0;border-radius:50%;background:transparent;color:#656b73;touch-action:manipulation}
.contact-help-button:hover,.contact-help-button[aria-expanded="true"]{background:#f0f2f5}
.instant-card .contact-help-button .info-icon{width:22px;height:22px;margin:0;vertical-align:initial}
@media(pointer:coarse){.contact-help-button{width:44px;height:44px;margin-top:-7px;margin-bottom:-7px}.instant-option span{min-height:48px}}
@media(max-width:600px){.instant-cards{padding-top:max(16px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.instant-actions{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}}
@media(max-height:500px){.instant-shell{margin:0 auto;min-height:100dvh}.instant-center{padding-top:52px;padding-bottom:20px}.instant-message>p{margin-top:16px}.instant-actions{position:static}}

/* Page identity and optional shared background. */
.instant-shell{position:relative;isolation:isolate}
.instant-stage,.instant-shell>.preview-notice{position:relative;z-index:1}
.instant-backdrop{position:absolute;inset:0 0 auto;display:block;width:100%;aspect-ratio:1/1;overflow:hidden;pointer-events:none;z-index:0}
.instant-backdrop img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.instant-shell[data-background-format="portrait"] .instant-backdrop{aspect-ratio:9/16}
.has-background .instant-cards{padding-top:clamp(90px,18vw,140px)}
.has-background .instant-center{padding-top:clamp(100px,22vw,160px)}
.instant-avatar.has-logo{background:#fff;padding:0;overflow:hidden}
.instant-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.stage-intro .instant-message{border-radius:4px;padding-bottom:28px;box-shadow:0 4px 12px #0002}
.stage-intro .instant-brand{gap:12px;margin-bottom:18px}
.stage-intro .instant-brand strong{font-size:15px;font-weight:400;color:#526176}
.stage-intro .instant-message>p{margin-top:18px;line-height:1.6}
@media(max-width:600px){.instant-shell[data-background-format="auto"] .instant-backdrop{aspect-ratio:9/16}}
.image-field{display:grid;gap:12px;border:1px solid #e4e6eb;border-radius:9px;padding:14px;margin:0 0 20px;min-width:0}
.image-field>strong{font-size:12px;font-weight:600}
.image-field>p{font-size:11px;line-height:1.5;color:#65676b}
.image-picker{display:grid;gap:8px;font-size:12px;min-width:0}
.image-picker input{max-width:100%;min-width:0;font-size:12px}
.image-picker input::file-selector-button{padding:9px 12px;border:1px solid #d9dde3;border-radius:6px;background:#f0f2f5;color:#1c1e21;margin-right:8px;cursor:pointer}
.image-preview{width:100%;height:150px;object-fit:contain;background:#f0f2f5;border-radius:6px}
.image-preview.logo-preview{width:76px;height:76px;border-radius:50%;background:#f0f2f5}
.image-field .button{justify-self:start}

/* Reference help panel: close button, title, scrolling text; bottom sheet on mobile. */
.contact-help-layer{position:absolute;left:0;right:0;top:calc(100% + 10px);z-index:30}
.contact-help-panel{background:#fff;color:#1c1e21;border:1px solid #ccd0d5;border-radius:8px;box-shadow:0 5px 24px #0003;overflow:hidden;text-align:left;max-height:min(440px,70dvh);display:flex;flex-direction:column}
.contact-help-header{display:flex;align-items:center;gap:4px;padding:4px 8px;border-bottom:1px solid #dadde1;flex-shrink:0}
.contact-help-header h2{font-size:14px;line-height:1.4;font-weight:400;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.contact-help-close{width:36px;height:36px;flex-shrink:0;border:0;border-radius:4px;background:transparent;color:#4b4f56;font-size:26px;line-height:1;font-weight:300}
.contact-help-close:hover{background:#f0f2f5}
.contact-help-body{padding:16px;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:0;white-space:pre-line;overflow-wrap:anywhere;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
@media(max-width:600px){.contact-help-layer{position:fixed;inset:0;display:flex;align-items:flex-end;justify-content:center;background:#0009}.contact-help-panel{width:100%;max-width:480px;max-height:70dvh;border-radius:8px 8px 0 0;padding-bottom:env(safe-area-inset-bottom)}.contact-help-close{width:40px;height:40px}}

/* Question rows follow the reference's rectangular answer controls. */
.instant-option span{position:relative;justify-content:flex-start;text-align:left;min-height:48px;padding:12px 44px 12px 14px;border:1px solid #ccd0d5;border-radius:4px;background:#fff;font-size:16px;font-weight:400}
.instant-option span:after{content:'';position:absolute;right:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;border:1px solid #606770;border-radius:50%;box-sizing:border-box}
.instant-option input[type=checkbox]+span:after{border-radius:3px}
.instant-option input:checked+span{background:#f0f7ff;border-color:#1877f2;color:#1c1e21}
.instant-option input[type=radio]:checked+span:after{background:#1877f2;border:4px solid #fff;outline:1px solid #1877f2}
.instant-option input[type=checkbox]:checked+span:after{content:'✓';display:flex;align-items:center;justify-content:center;background:#1877f2;border-color:#1877f2;color:#fff;font-size:14px;font-weight:600}
.instant-option:hover span{background:#f5f6f7}.instant-option:hover input:checked+span{background:#e7f3ff}
.instant-field select{width:100%;min-width:0;padding:12px 28px 12px 0;border:0;border-bottom:1px solid #bec3c9;background:transparent;color:#1c1e21;font:inherit;font-size:17px;line-height:1.4;border-radius:0}
.instant-field select:disabled{color:#8a8d91}
.appointment-fields{display:grid;gap:0;grid-template-columns:1fr}
.appointment-fields .instant-field input{font-size:17px;min-height:44px}
.appointment-zone,.appointment-confirmation{font-size:12px;line-height:1.5;color:#65676b;margin-top:12px}
.question-toggle{margin-top:12px;margin-bottom:12px}.question-hint{font-size:11px;line-height:1.6;color:#65676b;margin:10px 0 14px}
.questions-logic{margin-bottom:20px}.question-optional-toggle{font-size:10px;display:flex;gap:5px;align-items:center;margin-left:auto}
.question-toolbar{flex-wrap:wrap}.question-toolbar strong{min-width:100px;font-size:11px}
.question-answer-list{display:grid;gap:8px;margin:12px 0}
.question-answer-row{display:flex;gap:6px;align-items:center;min-width:0}
.question-answer-row>input{min-width:0;flex:1;border:1px solid #d9dde3;border-radius:4px;padding:9px;font-size:12px}
.priority-option{font-size:10px;display:flex;align-items:center;gap:3px;white-space:nowrap}
.question-rule{border-top:1px solid #e4e6eb;margin-top:16px;padding-top:16px}
.add-question-row{display:flex;gap:8px;flex-wrap:wrap}.add-question-row select{min-width:0;max-width:100%;padding:10px;border:1px solid #d9dde3;border-radius:6px;font-size:12px}
.add-question-row .button{font-size:12px}.csv-example{display:inline-block;font-size:12px;margin-bottom:14px}
.question-card input[type=file]{max-width:100%;min-width:0}
.priority-badge{display:inline-block;font-size:10px;padding:4px 7px;margin-top:6px;background:#e7f3ff;color:#1763c3;border-radius:4px}
.completion-heading{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:nowrap}
.completion-heading h1{flex:1;min-width:min(45%,120px);font-size:18px;font-weight:700}
/* Compact completion CTA, matched to the supplied Facebook screenshot. */
.completion-heading .completion-button{flex:0 1 auto;min-width:0;max-width:65%}
.completion-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;max-width:100%;padding:6px 10px;background:#ccd0d5;border:0;border-radius:2px;color:#1c1e21;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:700;line-height:20px;overflow-wrap:anywhere;text-align:center;text-decoration:none;box-shadow:none}
.completion-button:hover{background:#bec3c9;text-decoration:none}
.completion-button:disabled{background:#ccd0d5;color:#65676b;opacity:1;cursor:default}
.completion-button:disabled:hover{background:#ccd0d5}
.completion-card .instant-brand{font-size:15px;color:#526176}.completion-card .instant-brand strong{font-weight:400}
.completion-card .instant-confirmation{justify-content:center}
.promo-box{margin-top:20px;padding:14px;border:1px dashed #bec3c9;border-radius:6px;font-size:13px;display:grid;gap:10px}
.promo-box label{display:grid;gap:6px}.promo-box input{max-width:100%;min-width:0;width:100%;background:transparent;text-align:center;border:0;font-size:20px;font-weight:600;padding:6px;letter-spacing:1px;color:#1c1e21}
.promo-copy{background:transparent;border:0;color:#1877f2;font-size:13px;padding:8px;min-height:40px}
#copyStatus{font-size:12px;color:#65676b}
@media(max-width:359px){.completion-heading h1{font-size:18px}.completion-heading .completion-button{font-size:12px;padding:6px 8px}.priority-option{font-size:9px}}

.instant-page.help-open{overflow:hidden}
