.account-opening{padding-bottom:40px;color:#334b5e;text-align:left}.account-opening [hidden]{display:none!important}.account-opening h2{font-size:21px;line-height:1.45;color:var(--ao-primary,#20547b);margin:0 0 18px}.account-opening h3{font-size:17px;line-height:1.5}.ao-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:26px 0}.ao-card{border:1px solid #dbe4ec;border-radius:8px;background:#fff;padding:24px;margin-bottom:22px;min-width:0}.ao-card-heading{display:flex;gap:14px;align-items:center;padding-bottom:14px;border-bottom:1px solid #e4ebf1;margin-bottom:18px}.ao-card-heading h2{margin:0}.ao-card-heading>i{padding:12px;background:#e7f1f8;color:#28678f;border-radius:8px;font-size:24px}.ao-entry-grid .ao-card{display:flex;flex-direction:column;align-items:flex-start}.ao-entry-grid ul{padding-left:20px;margin-bottom:25px;flex:1}.ao-entry-grid li{margin:8px 0}.ao-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:start}.ao-info-pane{position:sticky;top:110px;min-width:0}.ao-field{margin-bottom:18px;min-width:0}.ao-field label{display:block;font-size:14px;font-weight:600;margin-bottom:7px;line-height:1.5}.account-opening .form-control{min-height:45px;width:100%;box-sizing:border-box}.account-opening:not(.ao-authenticated) .btn{min-height:43px;padding:10px 17px;white-space:normal}.account-opening :focus-visible{outline:3px solid #79aace;outline-offset:3px}.ao-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.ao-intro{padding:23px;background:#f1f7fc;border:1px solid #d4e4f1;border-left:4px solid var(--ao-primary,#2875a8);border-radius:8px;margin-bottom:25px}.ao-intro p{margin-bottom:10px}.ao-access{max-width:650px}.account-opening legend{font-size:17px;font-weight:600;margin-bottom:14px}.account-opening fieldset{min-width:0;border:0;padding:0;margin:0}.account-opening legend{float:none;width:auto;max-width:100%}.ao-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:20px}.ao-toolbar strong{font-size:19px;overflow-wrap:anywhere}.ao-toolbar p{margin:6px 0}.ao-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.ao-tabs a{padding:9px 12px;border:1px solid #cbdce8;border-radius:5px;line-height:1.5;color:var(--ao-primary,#255c83)}.ao-tabs a[aria-current=true]{background:var(--ao-primary,#205c86);color:white}.ao-person{border:1px solid #dce5ec;padding:18px;margin:15px 0;border-radius:6px;background:#fafcfe}.ao-save{display:flex;gap:15px;align-items:center;background:#f1f6fa;padding:15px;margin-bottom:22px;border-radius:6px}.ao-declaration{display:block;line-height:1.7;margin:20px 0}.ao-declaration input{margin-right:8px}.ao-terms{white-space:normal;padding:15px;border:1px solid #dde6ec;max-height:320px;overflow-y:auto}.ao-document{padding:18px 0;border-top:1px solid #e4ebf1}.ao-document form{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-top:12px}.ao-document form>label{flex:1;min-width:160px}.ao-document-category>summary{font-size:17px;font-weight:600;cursor:pointer;padding:15px 8px;background:#eef5fa}.ao-product-list{list-style:none;padding:0}.ao-product-list li{display:flex;align-items:baseline;gap:9px;line-height:1.65;margin:9px 0;overflow-wrap:anywhere}.ao-product-list li>i{color:#367e61;flex-shrink:0}.ao-product-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.ao-product-facts div{background:#f4f8fb;border-radius:5px;padding:12px}.ao-product-facts dt{font-size:13px;font-weight:500;margin-bottom:5px}.ao-product-facts dd{font-size:16px;font-weight:600;margin:0;overflow-wrap:anywhere}.ao-info-pane p{white-space:pre-line;overflow-wrap:anywhere}.ao-info-pane h3{margin-top:23px}.ao-visit{line-height:1.8}.ao-map-tools{padding-top:15px}.ao-map-tools a{margin:12px;display:inline-block}#ao-location-map{height:280px;max-width:100%;margin-top:15px}.ao-section{scroll-margin-top:20px}@media(max-width:991px){.ao-layout{grid-template-columns:1fr}.ao-info-pane{position:static}.ao-fields{grid-template-columns:1fr 1fr}}@media(max-width:575px){.ao-entry-grid,.ao-fields{grid-template-columns:1fr}.ao-card{padding:19px 15px}.ao-toolbar,.ao-save{flex-direction:column}.ao-product-facts{grid-template-columns:1fr 1fr}.account-opening h1{font-size:26px}.ao-intro{padding:18px}.ao-document form .btn{width:100%}}@media(prefers-reduced-motion:reduce){.account-opening *{scroll-behavior:auto!important}}

/* Match the Loan entry cards and Porto form sections, scoped to this module. */
.ao-entry-grid{align-items:stretch}
.ao-entry-grid .ao-entry-card{padding:28px;border-top:4px solid var(--ao-primary,#2875a8);background:#f7fbff;border-radius:10px}
.ao-entry-card .ao-card-heading{align-items:flex-start;gap:16px;border:0;padding:0;margin-bottom:12px;width:100%}
.ao-entry-card .ao-card-heading>i{display:flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;padding:0;border-radius:12px;background:#e1effb;color:#1c628f;font-size:24px}
.ao-entry-card .ao-card-heading>div{min-width:0}
.ao-entry-card .ao-card-heading h2{font-size:22px;line-height:1.35;font-weight:600;margin:0 0 8px}
.ao-entry-card .ao-card-heading p{font-size:15px;line-height:1.6;margin:0;color:#3f5365}
.ao-entry-grid .ao-entry-card ul{margin:8px 0 20px;padding-left:20px}
.ao-entry-card li{font-size:15px;line-height:1.7;color:#3f5365}
.ao-entry-card .btn{margin-top:auto;font-weight:600;padding:12px 20px;background:#196697;border-color:#196697;color:#fff}
.ao-entry-grid .ao-entry-existing{border-top-color:#227665;background:#f5faf8}
.ao-entry-existing .ao-card-heading h2{color:#205e53}
.ao-entry-existing .ao-card-heading>i{color:#226b5c;background:#e0f0e9}
.ao-entry-existing .btn{background:#226b5c;border-color:#226b5c}
.ao-entry-card .btn:hover{background:#124e75;border-color:#124e75;color:#fff}
.ao-entry-existing .btn:hover{background:#185143;border-color:#185143}
.ao-intro{display:flex;justify-content:space-between;align-items:center;gap:26px;margin-bottom:26px}
.ao-intro-summary{display:flex;gap:15px;align-items:flex-start;min-width:0}
.ao-intro-summary>div{min-width:0}
.ao-intro-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:11px;background:#dfedf9;color:#1d638f;font-size:23px}
.ao-intro h2{font-size:21px;font-weight:600;margin:0 0 8px}
.ao-intro p{font-size:15px;line-height:1.7;margin:0}
.ao-intro>.btn{flex:0 0 auto;max-width:100%;background:#fff;color:var(--ao-primary,#1b5f8b);border:1px solid #6f9dbd;font-weight:600}
.ao-intro-login{background:#f2f8f6;border-color:#d5e7e1;border-left-color:#287767}
.ao-intro-login .ao-intro-icon{background:#deeee8;color:#236c5d}
.ao-intro-login h2{color:#245f54}
.account-opening .ao-start-section{border:1px solid #dce4ec;border-radius:8px;padding:20px 18px 4px;margin:0 0 22px;background:#fff}
.ao-start-section legend{font-size:16px;line-height:1.5;font-weight:600;color:var(--ao-primary,#244c70);padding:0 8px;margin-bottom:6px;border:0}
.ao-start-section legend i{color:var(--ao-primary,#2875a8);margin-right:5px}
.account-opening .ao-verification{background:#f7fafc}
.ao-start-actions{display:flex;justify-content:flex-end;border-top:1px solid #e1e7ed;padding-top:18px}
.ao-start-actions .btn{min-height:46px;padding:11px 24px}
.ao-captcha{max-width:100%;overflow-x:auto;margin-bottom:18px}
.ao-form-pane{min-width:0}
.ao-card h2{font-weight:600}
.ao-info-pane .ao-card{border:1px solid #dbe4ec;border-radius:4px;background:#fff}
.ao-info-pane h2{font-size:20px}
.ao-info-pane .ao-product-facts div{background:#eaf2f8}
.ao-tabs a{background:#f7fafc;font-size:14px;font-weight:600;text-decoration:none}
.ao-tabs a:hover{background:#e7f1f8}
.ao-tabs a[aria-current=true]{background:var(--ao-primary,#205c86);color:#fff}
.account-opening .ao-field .form-label{display:block;font-weight:600;line-height:1.5}
.account-opening select.form-control{padding-right:30px}
.account-opening textarea.form-control{min-height:100px}
.ao-product-list,.ao-document,.ao-summary,.ao-visit{overflow-wrap:anywhere}
@media(max-width:991px){.ao-intro{flex-direction:column;align-items:stretch;gap:18px}.ao-intro>.btn{align-self:flex-start}.ao-layout{gap:20px}}
@media(max-width:767px){.ao-entry-grid{grid-template-columns:minmax(0,1fr);gap:18px}.ao-entry-grid .ao-entry-card{padding:22px;margin-bottom:0}.ao-entry-card .btn{width:100%}.ao-entry-card .ao-card-heading{gap:12px}.ao-entry-card .ao-card-heading>i{width:44px;height:44px;flex-basis:44px;font-size:21px}.ao-entry-card .ao-card-heading h2{font-size:20px}}
@media(max-width:575px){.ao-intro{padding:18px 14px}.ao-intro-summary{gap:12px}.ao-intro-icon{width:40px;height:40px;flex-basis:40px;font-size:20px}.ao-intro h2{font-size:19px}.account-opening .ao-start-section{padding:16px 12px 0;margin-bottom:18px}.ao-start-actions .btn,.ao-intro>.btn{width:100%}.ao-product-facts{grid-template-columns:1fr}.ao-tabs a{flex:1 1 auto;text-align:center}}

/* Porto-style product headings and readable, grouped document requirements. */
.ao-info-pane .ao-card>h2{font-size:23px;line-height:1.4;color:var(--ao-primary,#244c70);margin-bottom:12px;padding-bottom:16px;border-bottom:1px solid #e4ebf1}
.ao-product-heading{position:relative;border:0;margin:22px 0 14px;padding-bottom:9px}
.ao-product-heading:after{content:"";position:absolute;bottom:-1px;left:0;width:42px;height:3px;background:var(--primary,#2875a8)}
.ao-info-pane .ao-product-heading h3{font-size:18px;font-weight:600;line-height:1.5;margin:0;padding:0;border:0}
.ao-checklist-help,.ao-requirement-help,.ao-document-instruction{font-size:14px;line-height:1.65;color:#536a7c}
.ao-preview-category{border:1px solid #dce5ec;border-radius:5px;margin:12px 0;overflow:hidden}
.ao-preview-category>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:14px 16px;background:#f5f8fb;color:var(--ao-primary,#294c67);font-size:15px;font-weight:600;line-height:1.5}
.ao-preview-category>summary::-webkit-details-marker{display:none}
.ao-preview-category>summary:after{content:"+";margin-left:auto;font-size:21px;line-height:1;font-weight:400}
.ao-preview-category[open]>summary:after{content:"−"}
.ao-preview-category[open]>summary{border-bottom:1px solid #dce5ec}
.ao-preview-category>summary:hover{background:#eaf2f8}
.ao-preview-category>summary>i{color:#36739d}
.ao-preview-body{padding:0 16px}
.ao-preview-document{padding:16px 0;border-bottom:1px solid #e6edf2}
.ao-preview-document:last-child{border-bottom:0}
.ao-preview-document-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.ao-preview-document h4{font-size:15px;line-height:1.6;font-weight:600;color:var(--ao-primary,#294c67);text-transform:none;letter-spacing:normal;margin:0 0 6px}
.ao-preview-document-heading h4{flex:1;min-width:160px;margin:0}
.ao-preview-document p{margin:6px 0 0}
.ao-requirement-badge{font-size:12px;line-height:1.5;padding:3px 9px;border-radius:4px;background:#edf2f6;color:#526579;white-space:nowrap}
.ao-requirement-required{background:#e7f2ec;color:#256245}
.ao-requirement-conditional{background:#edf3fa;color:#305e86}
.ao-identity-list{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:1.6;color:#3f5365}
.ao-identity-list li{padding-left:3px;margin:7px 0}
.ao-identity-list .ao-document-instruction{margin-top:3px}
@media(max-width:575px){.ao-preview-category>summary{padding:12px}.ao-preview-body{padding:0 12px}.ao-preview-document-heading{align-items:flex-start}.ao-preview-document-heading h4{min-width:0;flex-basis:100%}}

/* Shared button geometry; distinct colours follow the two Loan entry cards. */
.ao-entry-card .btn{border-style:solid!important;border-width:1px!important;border-radius:5px!important;box-shadow:none!important}
.ao-required-help{font-size:13px;color:#536579}
.account-opening .text-danger{color:#b52b3d!important}
.account-opening .ao-field-help{font-size:13px;line-height:1.65;color:#315d7d!important;background:#eff5fa;border-left:3px solid #7c9fba;border-radius:0 4px 4px 0;padding:9px 12px;margin:10px 0 16px}
.ao-link-divider{padding:0 9px;color:#9aa8b3}
.ao-visit-notice{background:#fff3f4;border:1px solid #ebc8ce;border-left:4px solid #a52c45;border-radius:5px;padding:16px 20px;margin:18px 0 26px;color:#743144;font-size:14px;line-height:1.7}
.ao-visit-notice strong{display:block;color:#91263e;font-size:15px;margin-bottom:4px}
.ao-visit-notice p{margin:0;color:inherit}
.ao-info-pane .ao-card{padding:20px;font-size:13px;line-height:1.6}
.ao-info-pane .ao-card>h2{font-size:20px;margin-bottom:10px;padding-bottom:12px}
.ao-info-pane .ao-product-heading h3{font-size:16px}
.ao-info-pane .ao-product-list li{font-size:13px;line-height:1.65;margin:6px 0}
.ao-info-pane .ao-product-facts{gap:10px;margin:16px 0}
.ao-info-pane .ao-product-facts div{padding:10px}
.ao-info-pane .ao-product-facts dt{font-size:12px}
.ao-info-pane .ao-product-facts dd{font-size:14px}
.ao-info-pane .ao-checklist-help,.ao-info-pane .ao-requirement-help,.ao-info-pane .ao-document-instruction,.ao-info-pane .ao-identity-list{font-size:12px;line-height:1.65}
.ao-info-pane .ao-preview-category>summary{font-size:13px;padding:11px 13px}
.ao-info-pane .ao-preview-document{padding:12px 0}
.ao-info-pane .ao-preview-document h4{font-size:13px}
.ao-info-pane .ao-requirement-badge{font-size:11px}
@media(max-width:575px){.ao-info-pane .ao-card{padding:18px 15px}.ao-visit-notice{padding:14px 16px}.ao-otp-actions .btn{flex:1 1 auto}}

/* Keep each filled CTA's border and background identical through Porto states. */
.account-opening .ao-entry-card .btn,.account-opening .ao-start-actions .btn-primary{--ao-button-color:var(--primary,#196697);background-color:var(--ao-button-color)!important;border-color:var(--ao-button-color)!important;color:#fff!important}
.account-opening .ao-entry-card .btn:hover,.account-opening .ao-entry-card .btn:focus,.account-opening .ao-entry-card .btn:active,.account-opening .ao-start-actions .btn-primary:hover,.account-opening .ao-start-actions .btn-primary:focus,.account-opening .ao-start-actions .btn-primary:active{--ao-button-color:var(--primary-100,#124e75)}
.account-opening .ao-entry-existing .btn{--ao-button-color:#226b5c}
.account-opening .ao-entry-existing .btn:hover,.account-opening .ao-entry-existing .btn:focus,.account-opening .ao-entry-existing .btn:active{--ao-button-color:#185143}

/* Account form design tokens. Institution colour overrides belong here. */
.account-opening{--ao-primary:var(--primary,#205c86);--ao-primary-soft:#eff5fa;--ao-border:#dbe4ec;--ao-text:#334b5e;--ao-muted:#536a7c;--ao-success:#226b5c;--ao-danger:#a52c45;--ao-radius:6px}
.ao-workspace>.ao-form-pane{display:grid;grid-template-columns:minmax(210px,25%) minmax(0,1fr);gap:26px;align-items:start}
.ao-workspace>.ao-form-pane>p{grid-column:1/-1;margin-bottom:0}
.ao-section-content{min-width:0}
.ao-workspace .ao-tabs{display:flex;flex-direction:column;gap:0;border:1px solid var(--ao-border);border-radius:var(--ao-radius);overflow:hidden;position:sticky;top:110px;background:#fff;margin:0}
.ao-workspace .ao-tabs a{border:0;border-bottom:1px solid var(--ao-border);border-radius:0;padding:13px 16px;background:#fff;color:var(--ao-text);text-align:left;line-height:1.5}
.ao-workspace .ao-tabs a:last-child{border-bottom:0}
.ao-workspace .ao-tabs a:hover{background:var(--ao-primary-soft)}
.ao-workspace .ao-tabs a[aria-current=true]{background:var(--ao-primary-soft);color:var(--ao-primary);box-shadow:inset 4px 0 var(--ao-primary)}
.ao-workspace .ao-tabs small{display:block;font-size:12px;font-weight:400;color:var(--ao-muted);margin-top:3px}
.ao-workspace .ao-card{border-color:var(--ao-border);border-radius:var(--ao-radius)}
.ao-workspace .ao-section h2{color:var(--ao-primary);font-size:20px;padding-bottom:12px;border-bottom:1px solid var(--ao-border)}
.ao-toolbar{padding:18px 20px;background:var(--ao-primary-soft);border:1px solid var(--ao-border);border-radius:var(--ao-radius)}
.ao-progress{background:#fff;padding:20px 24px;border-color:var(--ao-border);border-radius:var(--ao-radius)}
.ao-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.ao-progress-heading h2{font-size:18px;margin:0 0 5px;color:var(--ao-primary)}
.ao-progress-heading p,.ao-progress-footer{font-size:13px;line-height:1.6;color:var(--ao-muted);margin:0}
.ao-progress-percent{font-size:27px;color:var(--ao-primary);white-space:nowrap}
.ao-progress progress{appearance:none;display:block;width:100%;height:10px;border:0;border-radius:20px;overflow:hidden;margin:16px 0 10px;background:var(--ao-primary-soft);color:var(--ao-primary)}
.ao-progress progress::-webkit-progress-bar{background:var(--ao-primary-soft);border-radius:20px}
.ao-progress progress::-webkit-progress-value{background:var(--ao-primary);border-radius:20px}
.ao-progress progress::-moz-progress-bar{background:var(--ao-primary);border-radius:20px}
.ao-progress-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px}
.ao-progress-footer .ao-unsaved{color:var(--ao-danger);font-weight:600}
.ao-section-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:25px}
.ao-section-actions span{font-size:13px;color:var(--ao-muted)}
.ao-workspace .btn-primary{background:var(--ao-primary)!important;border-color:var(--ao-primary)!important;color:#fff!important}
.ao-workspace .btn-outline-secondary{background:#fff;color:var(--ao-primary);border:1px solid var(--ao-primary)}
.ao-workspace .btn-outline-secondary:hover{background:var(--ao-primary-soft)}
.ao-visit-notice{border-left-color:var(--ao-danger)}
@media(max-width:991px){.ao-workspace>.ao-form-pane{grid-template-columns:220px minmax(0,1fr);gap:18px}.ao-workspace .ao-tabs{position:static}.ao-workspace .ao-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){.ao-workspace>.ao-form-pane{display:block}.ao-workspace .ao-tabs{margin:16px 0 22px;max-height:300px;overflow-y:auto}.ao-workspace .ao-tabs a{padding:10px 14px}.ao-workspace .ao-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ao-progress{padding:18px}.ao-toolbar{padding:16px}.ao-toolbar form{margin:0}}
@media(max-width:575px){.ao-workspace .ao-fields{grid-template-columns:minmax(0,1fr)}.ao-progress-percent{font-size:23px}.ao-section-actions span{order:-1;flex-basis:100%;text-align:center}.ao-section-actions .btn{flex:1}}
.ao-tabs a[aria-current=step]{background:var(--ao-primary-soft);color:var(--ao-primary);box-shadow:inset 4px 0 var(--ao-primary)}
.ao-address-heading,.ao-same-address{grid-column:1/-1}
.ao-address-heading{font-size:16px;color:var(--ao-primary);margin:10px 0 16px;padding-top:12px;border-top:1px solid var(--ao-border)}
.ao-same-address{padding:0 0 18px;font-size:14px}.ao-same-address label{cursor:pointer}.ao-same-address input{margin-right:7px}
.ao-map-tools{border-top:1px solid var(--ao-border);margin-top:10px;padding-top:20px}
.ao-map-tools h3{font-size:16px;color:var(--ao-primary)}
#ao-location-map{height:320px;border:1px solid var(--ao-border);border-radius:var(--ao-radius);background:var(--ao-primary-soft)}
.ao-map-marker{background:transparent;border:0}
.ao-map-pin{display:block;width:24px;height:24px;background:var(--ao-danger);border:3px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 2px 6px #334b5e66}
@media(max-width:575px){.ao-session-actions{width:100%;justify-content:flex-start!important;margin-left:0!important}#ao-location-map{height:270px}}
.ao-recent-draft{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center;border-top:1px solid var(--ao-border);margin-top:18px;padding-top:18px}
.ao-recent-draft p{font-size:13px}
.ao-workspace .ao-tabs .ao-tab-state{display:table;padding:2px 8px;border-radius:12px;background:var(--ao-primary-soft);font-size:11px;line-height:1.6;margin-top:6px}
.ao-workspace .ao-tabs .ao-tab-complete{color:var(--ao-success);background:#e9f5ec}
.ao-tabs i{width:17px;text-align:center}
