/* Layout: user-supplied Instagram Ads Manager previews, 2026-10-29.
   Asset provenance and reconstruction notes: config/instagram-ui-assets.json. */
.instagram-toolbar,.instagram-progress,.instagram-step-brand,.instagram-completion-illustration{display:none}
.instant-page.theme-instagram{background:#f2f3f5;color:#262626;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.theme-instagram #companyPage,.theme-instagram .lead-dialog-header{display:none}
.instant-page.theme-instagram .lead-dialog{inset:0;width:100%;max-width:min(480px,100vw);height:100dvh;max-height:100dvh;margin:0 auto;border-radius:0;background:#fff;box-shadow:none}
.theme-instagram .lead-dialog::backdrop{background:#f2f3f5}
.instant-page.theme-instagram .instant-shell{width:100%;max-width:480px;height:100dvh;min-height:0;margin:0 auto;border-radius:0;background:#fff;box-shadow:none;display:flex;flex-direction:column;overflow:hidden}
.instant-page.theme-instagram .lead-dialog .instant-shell{height:100%;min-height:0}
.instant-page.theme-instagram .instant-stage,.instant-page.theme-instagram .instant-stage>form{flex:1;min-height:0;overflow:hidden}
.instant-page.theme-instagram .instagram-toolbar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;z-index:4}
.instagram-toolbar button{display:flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:10px;border:0;border-radius:0;background:transparent;color:#262626;touch-action:manipulation;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3}
.instagram-toolbar button:disabled{cursor:default;opacity:1}
.instagram-toolbar button:focus-visible{outline:2px solid #5957ff;outline-offset:-2px}
.instagram-toolbar svg{display:block;width:20px;height:20px;flex-shrink:0}
.instagram-toolbar .ig-back-empty{visibility:hidden;pointer-events:none}
.theme-instagram .instagram-progress{display:flex;gap:8px;height:4px;min-height:4px;margin:0 24px 28px;flex-shrink:0}
.instagram-progress>span{flex:1;background:#e6e9ef}
.instagram-progress>.is-complete{background:linear-gradient(90deg,#ff8500,#ff0069)}
.instant-page.theme-instagram .instant-cards,.instant-page.theme-instagram .has-background .instant-cards{padding:0 20px 24px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.instant-page.theme-instagram .instant-card{padding:0;margin:0 0 30px;border-radius:0;box-shadow:none;background:transparent;color:inherit}
.instant-page.theme-instagram .instant-card:last-child{margin-bottom:0}
.instant-page.theme-instagram .instant-card h1{font-size:22px;line-height:1.35;font-weight:500;letter-spacing:0}
.theme-instagram .instagram-step-brand{display:block}
.theme-instagram .instagram-step-brand .instant-brand{margin:0 0 16px}
.theme-instagram .instagram-step-brand strong{display:none}
.theme-instagram .instagram-step-brand .instant-avatar{margin:0;width:72px;height:72px;border:1px solid #c9cbd0;background:#fafafa;font-size:24px}
.theme-instagram .instant-question h2{font-size:20px;line-height:1.4;font-weight:500;text-align:center;margin-bottom:20px}
.theme-instagram .question-optional{text-align:center;font-size:12px}
.theme-instagram .instant-options{gap:10px}
.theme-instagram .instant-option span{min-height:52px;padding:14px 20px;border:1px solid #cdd2db;border-radius:28px;background:#fff;font-size:16px;font-weight:400;text-align:left}
.theme-instagram .instant-option span:after{display:none}
.theme-instagram .instant-option input:checked+span{background:#edf5ff;border-color:#0095f6;color:#0874b6;padding-right:44px}
.theme-instagram .instant-option input:checked+span:after{display:flex;content:'✓';align-items:center;justify-content:center;right:16px;width:18px;height:18px;background:none;border:0;outline:0;color:#0095f6;font-size:18px}
.theme-instagram .instant-option:hover span{background:#f6f8fa}
.theme-instagram .instant-option:hover input:checked+span{background:#edf5ff}
.theme-instagram .instant-field{margin-bottom:20px}
.theme-instagram .instant-field>span{font-size:14px;color:#737986;margin-bottom:8px}
.theme-instagram .instant-field input,.theme-instagram .instant-field textarea,.theme-instagram .instant-field select{font-family:inherit;font-size:16px;line-height:1.4;min-height:52px;padding:14px 16px;border:1px solid #cdd2db;border-radius:12px;background:#fff;color:#262626;box-shadow:none}
.theme-instagram .instant-field select{padding-right:30px}
.theme-instagram .instant-field textarea{min-height:132px;resize:vertical}
/* Short answers keep the same single-line value semantics in both themes. */
.theme-instagram .instant-question[data-question-type="text"] .instant-field input{height:132px;padding-top:14px;padding-bottom:94px}
.theme-instagram .instant-field input:focus,.theme-instagram .instant-field textarea:focus,.theme-instagram .instant-field select:focus{border:1px solid #0095f6;margin-bottom:0;outline:2px solid #0095f633;outline-offset:1px}
.theme-instagram .instant-field input::placeholder,.theme-instagram .instant-field textarea::placeholder{color:#8c939e}
.theme-instagram .instant-field select:disabled{background:#fafafa;color:#8c939e}
.theme-instagram .appointment-zone,.theme-instagram .appointment-confirmation{font-size:12px;text-align:center;margin-top:12px}
.theme-instagram .contact-description{font-size:15px;line-height:1.45;margin:18px 0 26px}
.instant-page.theme-instagram .instant-actions,.theme-instagram .instagram-completion-footer{position:relative;bottom:auto;flex-shrink:0;padding:18px max(20px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));border:0;background:#fff;margin-top:auto}
.theme-instagram .instant-primary{min-height:48px;background:#087cbd;border-radius:4px;font-family:inherit;font-size:15px;font-weight:600;padding:12px 16px}
.theme-instagram .instant-primary:hover{background:#076da7}
.theme-instagram .instant-back{display:none}
.instant-page.theme-instagram .instant-center{padding:24px 20px;min-height:0;overflow:auto;align-items:flex-start;justify-content:flex-start}
.theme-instagram .instant-backdrop{display:none}
/* Welcome has its own edge-to-edge dark cover and inline advertiser identity. */
.instant-page.theme-instagram[data-form-stage="intro"] .instant-shell{background:linear-gradient(180deg,#272727 0%,#272727 72%,#1a2c35 100%);color:#fff}
.theme-instagram[data-form-stage="intro"] .instagram-toolbar,.theme-instagram[data-form-stage="success"] .instagram-toolbar{justify-content:flex-start}
.theme-instagram[data-form-stage="intro"] #instagramBack,.theme-instagram[data-form-stage="success"] #instagramBack{display:none}
.theme-instagram[data-form-stage="intro"] .has-background .instant-backdrop{display:block;inset:0;aspect-ratio:auto;height:100%;z-index:0}
.theme-instagram[data-form-stage="intro"] .has-background .instant-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(#0005,#0008 55%,#172630e6)}
.instant-page.theme-instagram .stage-intro .instant-center{padding-top:clamp(72px,16dvh,150px)}
.instant-page.theme-instagram .stage-intro .instant-message{display:flex;flex-direction:column;text-align:left;padding:0;border-radius:0;box-shadow:none}
.instant-page.theme-instagram .stage-intro h1{order:0;font-size:28px;font-weight:700;line-height:1.2;margin-bottom:12px}
.theme-instagram .stage-intro .instant-brand{order:1;flex-direction:row;gap:6px;margin:0 0 8px}
.theme-instagram .stage-intro .instant-avatar{width:20px;height:20px;margin:0;border:0;background:#fff;color:#262626;font-size:9px;border-radius:50%}
.theme-instagram .stage-intro .instant-brand strong{font-size:14px;font-weight:500;color:#fff}
.theme-instagram .stage-intro .instant-message>p{order:2;margin:0;font-size:15px;line-height:1.5;white-space:pre-line}
.theme-instagram .stage-intro .instant-actions{background:transparent;padding-top:20px}
.theme-instagram .stage-intro .instant-primary{background:#fff;color:#262626;border-radius:3px}
.theme-instagram .stage-intro .instant-primary:hover{background:#f0f0f0}
/* Success artwork stays above the copy; the action stays in its bottom footer. */
.instant-page.theme-instagram .stage-success .instant-center{padding-top:24px}
.theme-instagram .stage-success .instant-brand{display:none}
.theme-instagram .instagram-completion-illustration{display:block;width:76px;height:80px;margin:0 auto 20px;stroke:none}
.theme-instagram .completion-card{width:100%;text-align:center}
.theme-instagram .completion-heading{display:block}
.theme-instagram .completion-heading h1{font-size:22px;font-weight:500;line-height:1.3;min-width:0}
.theme-instagram .completion-card>p{margin-top:10px;font-size:15px;line-height:1.45;white-space:pre-line}
.theme-instagram .completion-card .instant-confirmation{justify-content:center;border:0;font-size:12px;margin-top:20px;padding:0;color:#8b8b8b}
.theme-instagram .instagram-completion-footer{border-top:1px solid #f1f2f4;padding-top:16px}
.theme-instagram .instagram-completion-footer .completion-button{width:100%;max-width:none;min-height:48px;padding:12px 16px;border-radius:14px;background:#5955ff;color:#fff;font-family:inherit;font-size:15px;font-weight:600;line-height:1.4}
.theme-instagram .instagram-completion-footer .completion-button:hover{background:#4844e8}
.theme-instagram .instagram-completion-footer .completion-button:disabled{background:#b7b5ff;color:#fff}
.theme-instagram .contact-help-panel{border-radius:12px 12px 0 0}
.theme-instagram .contact-help-body{font-family:inherit}
.theme-instagram .lead-dialog .contact-help-panel{max-height:min(520px,75dvh)}
.theme-instagram.is-preview .preview-notice{display:none}
.instant-page.theme-instagram.is-demo .instant-shell{height:max(0px,calc(100dvh - var(--demo-toolbar-height)));min-height:0}
@media(max-width:359px){.instant-page.theme-instagram .instant-cards{padding-left:16px;padding-right:16px}.theme-instagram .instagram-progress{margin-left:16px;margin-right:16px}.theme-instagram .instant-card h1,.theme-instagram .instant-question h2{font-size:20px}.theme-instagram .instant-field input,.theme-instagram .instant-field select{padding-left:12px;padding-right:12px}}
@media(max-height:500px){.instant-page.theme-instagram .stage-intro .instant-center{padding-top:24px}.theme-instagram .instagram-progress{margin-bottom:16px}.theme-instagram .instagram-step-brand .instant-avatar{width:48px;height:48px;font-size:18px}.instant-page.theme-instagram .stage-success .instant-center{padding-top:8px}.theme-instagram .instagram-completion-illustration{width:52px;height:56px;margin-bottom:12px}}
