/* AOFM overseas page: share the real theme; keep all content styles inside this main. */
#ao-main {
    --ao-ink: var(--theme-colour-black, #0e0d0b);
    --ao-soft: var(--theme-colour-grey-light, #f7f7f8);
    --ao-muted: #555;
    --ao-line: #dcdcdc;
    color: var(--ao-ink);
    background: #fff;
    font-family: var(--global--font-primary, 'Open Sans', sans-serif);
    font-size: 17px;
    line-height: 1.65;
}
#ao-main *, #ao-main *::before, #ao-main *::after { box-sizing: border-box; }
#ao-main h1, #ao-main h2, #ao-main h3, #ao-main p, #ao-main figure, #ao-main ul, #ao-main dl { margin: 0; padding: 0; color: inherit; }
#ao-main h1, #ao-main h2, #ao-main h3 {
    font-family: var(--global--font-heading, 'Bebas Neue', sans-serif);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
    text-transform: uppercase;
}
#ao-main h1 { font-size: clamp(58px, 5.7vw, 82px); }
#ao-main h2 { font-size: 56px; }
#ao-main h3 { font-size: 32px; }
#ao-main a { color: inherit; text-decoration: none; }
#ao-main a:hover { text-decoration: underline; text-underline-offset: 5px; }
#ao-main a:focus-visible, #ao-main input:focus-visible, #ao-main select:focus-visible, #ao-main textarea:focus-visible, #ao-main summary:focus-visible {
    outline: 3px solid #007ca8; outline-offset: 4px;
}
#ao-main img { display: block; max-width: 100%; height: auto; }
#ao-main .ao-wrap { width: calc(100% - 80px); max-width: 1220px; margin-inline: auto; }
#ao-main .ao-eyebrow {
    font-family: var(--global--font-heading-alt, 'DM Sans', sans-serif);
    font-size: 13px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px;
}
#ao-main .ao-hero { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--ao-ink); color: #fff; }
#ao-main .ao-hero-copy { width: 100%; max-width: 650px; justify-self: end; padding: 48px 55px 48px 40px; align-self: center; }
#ao-main .ao-hero-subtitle { font-size: 20px; line-height: 1.45; margin-top: 20px; }
#ao-main .ao-lead { font-size: 16px; line-height: 1.75; margin-top: 16px; color: #e1e1e1; max-width: 500px; }
#ao-main .ao-qualification { font-size: 12px; line-height: 1.7; color: #d3d3d3; margin-top: 28px; max-width: 455px; border-top: 1px solid #474644; padding-top: 18px; }
#ao-main .ao-hero-image { min-height: 560px; }
#ao-main .ao-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#ao-main .ao-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 25px; margin-top: 26px; }
#ao-main .ao-button {
    background: var(--ao-ink); color: #fff; border: 1px solid var(--ao-ink); min-height: 48px; padding: 14px 22px;
    display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
    font: 600 12px/1.5 var(--global--font-primary, 'Open Sans', sans-serif); text-transform: uppercase; letter-spacing: 1px;
    transition: background .2s, color .2s; cursor: pointer; text-decoration: none;
}
#ao-main .ao-button:hover { background: #fff; color: var(--ao-ink); text-decoration: none; }
#ao-main .ao-button-light { background: #fff; border-color: #fff; color: var(--ao-ink); }
#ao-main .ao-button-light:hover { background: transparent; color: #fff; }
#ao-main .ao-button-outline { background: transparent; color: var(--ao-ink); width: 100%; }
#ao-main .ao-button-outline:hover { background: var(--ao-ink); color: #fff; }
#ao-main .ao-button span { font-size: 18px; line-height: 1; }
#ao-main .ao-text-link { display: inline-block; padding-block: 10px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
#ao-main .ao-proof { background: var(--ao-soft); border-bottom: 1px solid var(--ao-line); }
#ao-main .ao-proof .ao-wrap { display: flex; justify-content: space-between; gap: 24px; padding-block: 23px; }
#ao-main .ao-proof span { font-size: 13px; font-weight: 500; text-align: center; flex: 1; }
#ao-main .ao-proof span + span { border-left: 1px solid #ccc; }
#ao-main .ao-section { padding-block: 75px; }
#ao-main [id] { scroll-margin-top: 180px; }
#ao-main .ao-section-heading { max-width: 730px; margin: 0 auto 42px; text-align: center; }
#ao-main .ao-section-heading h2 { margin-bottom: 20px; }
#ao-main .ao-section-heading p:last-child { color: var(--ao-muted); }
#ao-main .ao-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
#ao-main .ao-course { border: 1px solid var(--ao-line); padding: 36px; display: flex; flex-direction: column; }
#ao-main .ao-course-top { min-height: 245px; }
#ao-main .ao-course .ao-eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: 2px; }
#ao-main .ao-course h3 { font-size: 64px; margin-bottom: 20px; }
#ao-main .ao-course-name { font-family: var(--global--font-secondary, 'Montserrat', sans-serif); font-size: 19px; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; line-height: 1.45; }
#ao-main .ao-course-top > p:last-child { font-size: 15px; color: var(--ao-muted); }
#ao-main .ao-course dl { margin-block: 20px 28px; }
#ao-main .ao-course dl > div { padding-block: 18px; border-top: 1px solid var(--ao-line); display: grid; grid-template-columns: 125px 1fr; gap: 20px; }
#ao-main .ao-course dt { font-size: 12px; font-weight: 600; color: var(--ao-muted); }
#ao-main .ao-course dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
#ao-main .ao-course dd small { display: block; font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--ao-muted); margin-top: 5px; }
#ao-main .ao-course .ao-price { font-family: var(--global--font-secondary, 'Montserrat', sans-serif); font-size: 25px; }
#ao-main .ao-course > .ao-button { margin-top: auto; }
#ao-main .ao-note { font-size: 12px; color: var(--ao-muted); margin-top: 24px; line-height: 1.75; }
#ao-main .ao-note a { text-decoration: underline; }
#ao-main .ao-benefits { background: var(--ao-soft); padding-block: 75px; }
#ao-main .ao-benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
#ao-main .ao-benefit-grid figure img { width: 100%; }
#ao-main figcaption { font-size: 11px; color: var(--ao-muted); margin-top: 10px; }
#ao-main .ao-benefit-list { list-style: none; margin-block: 20px; }
#ao-main .ao-benefit-list li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--ao-line); }
#ao-main .ao-benefit-list li::before { display: none; }
#ao-main .ao-benefit-list strong { display: block; font-size: 16px; margin-bottom: 5px; }
#ao-main .ao-benefit-list span { display: block; font-size: 14px; color: var(--ao-muted); }
#ao-main .ao-planning { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; }
#ao-main .ao-steps > div { display: flex; gap: 24px; margin-bottom: 28px; }
#ao-main .ao-steps > div:last-child { margin-bottom: 0; }
#ao-main .ao-steps > div > span { font-family: var(--global--font-heading, 'Bebas Neue', sans-serif); font-size: 34px; line-height: 1.2; color: #777; }
#ao-main .ao-steps h3 { font-size: 28px; margin-bottom: 10px; }
#ao-main .ao-steps p { font-size: 15px; color: var(--ao-muted); }
#ao-main .ao-enquire { background: var(--ao-soft); padding-block: 75px; }
#ao-main .ao-enquire-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 75px; align-items: start; }
#ao-main .ao-enquire h2 { margin-bottom: 24px; }
#ao-main .ao-enquire-grid > div:first-child > p { margin-bottom: 22px; }
#ao-main .ao-contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
#ao-main .ao-contact-links a { border-bottom: 1px solid #777; padding-block: 8px; font-size: 14px; }
#ao-main .ao-contact-links span { margin-left: 25px; }
#ao-main .ao-form { background: #fff; padding: 32px; border: 1px solid var(--ao-line); }
#ao-main .ao-form .gform_wrapper { margin: 0; }
#ao-main .ao-form #gform_fields_3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px !important; list-style: none; }
#ao-main .ao-form .gfield { margin: 0 !important; padding: 0 !important; min-width: 0; grid-column: span 2; width: auto; }
#ao-main .ao-form #field_3_1, #ao-main .ao-form #field_3_6, #ao-main .ao-form #field_3_8, #ao-main .ao-form #field_3_9 { grid-column: span 1; }
#ao-main .ao-form .gfield_label {
    display: block !important; position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important;
    overflow: visible !important; white-space: normal !important; font-size: 13px !important; font-weight: 600 !important;
    color: var(--ao-ink) !important; margin: 0 0 7px !important; line-height: 1.5;
}
#ao-main .ao-form input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]), #ao-main .ao-form select, #ao-main .ao-form textarea {
    width: 100% !important; max-width: 100%; min-height: 48px; border: 1px solid #999 !important; background: #fff !important;
    border-radius: 0 !important; padding: 11px !important; font: 16px/1.4 var(--global--font-primary, 'Open Sans', sans-serif) !important;
    color: var(--ao-ink) !important; margin: 0 !important; box-shadow: none;
}
#ao-main .ao-form textarea { height: 100px; min-height: 100px; }
#ao-main .ao-form .gfield_description { font-size: 12px !important; line-height: 1.5; color: var(--ao-muted); padding-top: 7px !important; }
#ao-main .ao-form .gform_footer { margin: 22px 0 0 !important; padding: 0 !important; }
#ao-main .ao-form .gform_button { width: 100% !important; min-height: 52px; background: var(--ao-ink) !important; color: white !important; border: 1px solid var(--ao-ink) !important; font: 600 12px/1.5 var(--global--font-primary, 'Open Sans', sans-serif) !important; text-transform: uppercase; letter-spacing: 1px; padding: 16px !important; cursor: pointer; margin: 0 !important; white-space: normal; }
#ao-main .ao-form .gform_button:hover { background: #fff !important; color: var(--ao-ink) !important; }
#ao-main .ao-form .gfield_required { color: #a51f45 !important; }
#ao-main .ao-form .gform_validation_errors { padding: 18px; margin-bottom: 20px; border: 1px solid #a51f45; }
#ao-main .ao-form .gform_validation_errors h2 { font-family: var(--global--font-primary, 'Open Sans', sans-serif); font-size: 15px; line-height: 1.5; text-transform: none; }
#ao-main .ao-form .gfield_validation_message { color: #a51f45 !important; }
#ao-main .ao-form .gform_required_legend { font-size: 12px; margin-bottom: 18px; }
/* Keep accessible native selects in the enquiry form; do not affect the site's menus. */
#ao-main .ao-form .ginput_container_select > .nice-select { display: none !important; }
#ao-main .ao-form .ginput_container_select > select { display: block !important; appearance: auto !important; }
#ao-main .ao-form #input_3_9 { padding-left: 54px !important; }
#ao-main .ao-form .iti { width: 100%; }
#ao-main .ao-faq { max-width: 880px; }
#ao-main .ao-faq h2 { margin-bottom: 30px; }
#ao-main .ao-faq details { border-top: 1px solid var(--ao-line); padding-block: 20px; }
#ao-main .ao-faq details:last-child { border-bottom: 1px solid var(--ao-line); }
#ao-main .ao-faq summary { cursor: pointer; font-size: 16px; font-weight: 600; min-height: 28px; padding-right: 20px; list-style: revert; }
#ao-main .ao-faq details p { font-size: 15px; color: var(--ao-muted); padding-top: 16px; }
@media (max-width: 1100px) {
    #ao-main .ao-hero-copy { padding: 35px; }
    #ao-main .ao-hero-image { min-height: 540px; }
    #ao-main .ao-wrap { width: calc(100% - 60px); }
    #ao-main .ao-course { padding: 28px; }
    #ao-main .ao-course-top { min-height: 270px; }
    #ao-main .ao-course dl > div { grid-template-columns: 105px 1fr; gap: 16px; }
    #ao-main .ao-benefit-grid, #ao-main .ao-planning, #ao-main .ao-enquire-grid { gap: 36px; }
    #ao-main .ao-form { padding: 25px; }
}
@media (max-width: 800px) {
    #ao-main h2 { font-size: 44px; }
    #ao-main .ao-hero { grid-template-columns: minmax(0, 1fr); }
    #ao-main .ao-hero-copy { max-width: none; padding: 40px 30px; }
    #ao-main .ao-hero h1 br { display: none; }
    #ao-main .ao-hero-image { min-height: 0; max-height: 500px; overflow: hidden; }
    #ao-main .ao-hero-image img { aspect-ratio: 1.4; object-position: center 40%; }
    #ao-main .ao-course-grid { gap: 20px; }
    #ao-main .ao-course { padding: 24px; }
    #ao-main .ao-course dl > div { display: block; }
    #ao-main .ao-course dt { margin-bottom: 6px; }
    #ao-main .ao-course-top { min-height: 290px; }
    #ao-main .ao-benefit-grid, #ao-main .ao-planning, #ao-main .ao-enquire-grid { grid-template-columns: minmax(0, 1fr); }
    #ao-main .ao-benefit-grid figure { max-width: 650px; }
    #ao-main [id] { scroll-margin-top: 135px; }
}
@media (max-width: 600px) {
    #ao-main { font-size: 16px; }
    #ao-main h1 { font-size: 58px; }
    #ao-main h2 { font-size: 42px; }
    #ao-main .ao-wrap { width: calc(100% - 40px); }
    #ao-main .ao-eyebrow { font-size: 11px; letter-spacing: 2.5px; margin-bottom: 17px; }
    #ao-main .ao-hero-copy { padding: 35px 24px; }
    #ao-main .ao-hero h1 br { display: block; }
    #ao-main .ao-hero-subtitle { font-size: 18px; margin-top: 16px; }
    #ao-main .ao-lead { font-size: 15px; }
    #ao-main .ao-hero-image img { aspect-ratio: 1.2; }
    #ao-main .ao-actions { gap: 12px 20px; }
    #ao-main .ao-qualification { margin-top: 20px; }
    #ao-main .ao-proof .ao-wrap { flex-direction: column; gap: 10px; padding-block: 20px; }
    #ao-main .ao-proof span { font-size: 12px; }
    #ao-main .ao-proof span + span { border-left: 0; }
    #ao-main .ao-section, #ao-main .ao-benefits, #ao-main .ao-enquire { padding-block: 50px; }
    #ao-main .ao-section-heading { margin-bottom: 30px; }
    #ao-main .ao-course-grid { grid-template-columns: minmax(0, 1fr); }
    #ao-main .ao-course-top { min-height: 0; }
    #ao-main .ao-course h3 { font-size: 54px; }
    #ao-main .ao-course-name { font-size: 18px; }
    #ao-main .ao-course dl > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
    #ao-main .ao-course .ao-price { font-size: 22px; }
    #ao-main .ao-course .ao-button { font-size: 11px; padding-inline: 16px; gap: 15px; }
    #ao-main .ao-form { padding: 24px 20px; }
    #ao-main .ao-form #field_3_1, #ao-main .ao-form #field_3_6, #ao-main .ao-form #field_3_8, #ao-main .ao-form #field_3_9 { grid-column: span 2; }
    #ao-main .ao-faq summary { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { #ao-main * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* The shared inline reviews remain; its duplicate floating badge covers course/form text. */
body.page-id-30875 #richSnippetReviewsWidget-defaultContainer { display: none !important; }
@media (max-width: 800px) {
    #ao-main .ao-actions { justify-content: center; }
    #ao-main .ao-qualification { margin-inline: auto; }
}
/* Reserve the shared header's height so in-page links do not jump underneath it. */
body.page-id-30875 > .header { position: sticky; top: 0; }

@media (max-width: 381px) {
    /* Keep the existing 300px verification widget fully usable on 320px phones. */
    #ao-main .ao-form { margin-inline: -20px; padding-inline: 10px; border-inline: 0; }
}
@media (min-width: 1024px) and (max-width: 1400px) {
    /* Keep the inherited Courses flyouts inside medium desktop viewports. */
    body.page-id-30875 #mega-menu-item-30345 > .mega-sub-menu .mega-sub-menu { left: auto !important; right: 100% !important; }
}
/* Inline phone/WhatsApp links remain usable while the form is on screen. */
body.page-id-30875.aofm-enquiry-in-view .buttonizer-group,
body.page-id-30875.aofm-enquiry-in-view .buttonizer-group * { visibility: hidden !important; pointer-events: none !important; }
