/* =========================================================
   AI MARKETING FOR LAWYERS — /free/
   Complete responsive stylesheet
   ========================================================= */

.aml-free-page {
    --aml-navy: #09233f;
    --aml-navy-dark: #06182d;
    --aml-navy-light: #153a5e;
    --aml-gold: #d8ae54;
    --aml-gold-dark: #a77b27;
    --aml-cream: #f8f6f1;
    --aml-white: #ffffff;
    --aml-text: #354253;
    --aml-muted: #667386;
    --aml-border: #e3e7ed;

    width: 100%;
    margin: 0 auto;
    color: var(--aml-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    overflow: hidden;
}

.aml-free-page *,
.aml-free-page *::before,
.aml-free-page *::after {
    box-sizing: border-box;
}

.aml-free-page h1,
.aml-free-page h2,
.aml-free-page h3,
.aml-free-page p {
    margin-top: 0;
}

.aml-free-page h1,
.aml-free-page h2,
.aml-free-page h3 {
    line-height: 1.3;
}

.aml-container {
    width: 100%;
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

/* =========================================================
   HERO — MAIN BANNER
   ========================================================= */

.aml-hero {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--aml-navy);
    text-align: center;
    line-height: 0;
}

.aml-hero-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
}

/* =========================================================
   EVENT DETAILS
   ========================================================= */

.aml-event-details {
    padding: 24px 22px;
    background: var(--aml-navy);
    color: var(--aml-white);
    border-top: 3px solid var(--aml-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.aml-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.aml-event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 14px;
    text-align: center;
}

.aml-detail-label {
    display: block;
    margin-bottom: 3px;
    color: var(--aml-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.aml-event-item strong {
    display: block;
    color: var(--aml-white);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
}

.aml-event-item > span:not(.aml-detail-label) {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.aml-section {
    padding: 48px 24px;
}

.aml-attendance-section {
    background: var(--aml-white);
}

.aml-discover-section {
    background: var(--aml-cream);
}

.aml-section-heading {
    max-width: 850px;
    margin: 0 auto 26px;
    text-align: center;
}

.aml-eyebrow {
    margin-bottom: 9px;
    color: var(--aml-gold-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 2px;
    line-height: 1.6;
}

.aml-section-heading h2 {
    margin-bottom: 12px;
    color: var(--aml-navy);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
}

.aml-section-heading > p:not(.aml-eyebrow) {
    max-width: 760px;
    margin: 0 auto;
    color: var(--aml-text);
    font-size: 16px;
    line-height: 1.8;
}

/* =========================================================
   CLIENT IMAGE
   ========================================================= */

.aml-client-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 24px;
    padding: 0;
    text-align: center;
}

.aml-client-image {
    display: block;
    width: 50%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
    border: none;
    border-radius: 6px;
    object-fit: contain;
}

/* =========================================================
   ATTENDANCE OPTIONS
   ========================================================= */

.aml-attendance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.aml-attendance-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    border: 1px solid var(--aml-border);
    border-top: 4px solid var(--aml-gold);
    border-radius: 7px;
    background: var(--aml-white);
    box-shadow: 0 8px 24px rgba(9, 35, 63, 0.06);
}

.aml-option-label {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    background: var(--aml-cream);
    color: var(--aml-gold-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1px;
}

.aml-attendance-card h3 {
    margin-bottom: 12px;
    color: var(--aml-navy);
    font-size: 24px;
    font-weight: 800;
}

.aml-attendance-card > p {
    margin-bottom: 18px;
    color: var(--aml-text);
    font-size: 15px;
    line-height: 1.8;
}

.aml-venue {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding: 16px 18px;
    border-left: 3px solid var(--aml-gold);
    background: var(--aml-cream);
    color: var(--aml-text);
    font-size: 14px;
    line-height: 1.7;
}

.aml-venue strong {
    margin-bottom: 4px;
    color: var(--aml-navy);
    font-size: 15px;
    font-weight: 800;
}

/* =========================================================
   WHAT YOU'LL DISCOVER
   ========================================================= */

.aml-discover-section .aml-section-heading {
    margin-bottom: 26px;
}

.aml-discover-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.aml-discover-card {
    padding: 24px 22px;
    border: 1px solid #e7e2d8;
    border-radius: 7px;
    border-top: 3px solid var(--aml-gold);
    background: var(--aml-white);
    box-shadow: 0 6px 20px rgba(9, 35, 63, 0.04);
}

.aml-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--aml-navy);
    color: var(--aml-gold);
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
}

.aml-discover-card h3 {
    margin-bottom: 10px;
    color: var(--aml-navy);
    font-size: 19px;
    font-weight: 800;
}

.aml-discover-card p {
    margin-bottom: 0;
    color: var(--aml-text);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   COMPLIMENTARY REGISTRATION INTRO
   ========================================================= */

.aml-registration-intro {
    padding: 46px 24px;
    background: var(--aml-navy);
    color: var(--aml-white);
    text-align: center;
}

.aml-registration-intro .aml-container {
    max-width: 900px;
}

.aml-registration-intro .aml-eyebrow {
    color: var(--aml-gold);
}

.aml-registration-intro h2 {
    margin-bottom: 14px;
    color: var(--aml-white);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 850;
}

.aml-registration-intro .aml-container > p:not(.aml-eyebrow) {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
}

.aml-registration-intro .aml-registration-note {
    margin-top: 16px;
    margin-bottom: 0;
    padding: 14px 18px;
    border: 1px solid rgba(216, 174, 84, 0.55);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px !important;
    line-height: 1.75;
}

.aml-registration-intro--compact {
    padding-top: 34px;
    padding-bottom: 32px;
}

.aml-registration-intro--compact h2 {
    margin-bottom: 10px;
}

.aml-registration-intro--compact .aml-registration-note {
    margin-top: 12px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .aml-section {
        padding: 40px 22px;
    }

    .aml-event-grid {
        gap: 12px;
    }

    .aml-event-item {
        padding: 8px 10px;
    }

    .aml-event-item strong {
        font-size: 15px;
    }

    .aml-discover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .aml-client-image {
        width: 50%;
        max-width: 320px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .aml-free-page {
        font-size: 15px;
    }

    .aml-event-details {
        padding: 18px 16px;
    }

    .aml-event-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .aml-event-item {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .aml-event-item:last-child {
        border-bottom: none;
    }

    .aml-event-item strong {
        font-size: 15px;
    }

    .aml-section {
        padding: 32px 16px;
    }

    .aml-section-heading {
        margin-bottom: 20px;
    }

    .aml-section-heading h2 {
        font-size: clamp(26px, 7vw, 33px);
    }

    .aml-section-heading > p:not(.aml-eyebrow) {
        font-size: 15px;
    }

    .aml-client-image-wrap {
        margin-bottom: 18px;
    }

    .aml-client-image {
        width: 70%;
        max-width: 280px;
    }

    .aml-attendance-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .aml-attendance-card {
        padding: 22px 18px;
    }

    .aml-attendance-card h3 {
        font-size: 22px;
    }

    .aml-venue {
        padding: 14px;
        font-size: 14px;
    }

    .aml-discover-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .aml-discover-card {
        padding: 20px 18px;
    }

    .aml-discover-card h3 {
        font-size: 18px;
    }

    .aml-registration-intro {
        padding: 32px 18px;
    }

    .aml-registration-intro--compact {
        padding-top: 28px;
        padding-bottom: 26px;
    }

    .aml-registration-intro h2 {
        font-size: clamp(26px, 7vw, 33px);
    }

    .aml-registration-intro .aml-container > p:not(.aml-eyebrow) {
        font-size: 15px;
    }

    .aml-registration-intro .aml-registration-note {
        padding: 12px 14px;
        font-size: 13px !important;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {
    .aml-section {
        padding-right: 13px;
        padding-left: 13px;
    }

    .aml-client-image {
        width: 80%;
        max-width: 260px;
    }

    .aml-attendance-card {
        padding: 19px 15px;
    }

    .aml-discover-card {
        padding: 18px 15px;
    }
}

/* =========================================================
   ELEMENTOR FORM INTRODUCTION
   Applies even when the form is outside .aml-free-page
   ========================================================= */

.aml-form-intro {
    display: block !important;
    width: 100% !important;
    max-width: 1100px;
    margin: 0 auto 12px !important;
    padding: 18px 20px 10px !important;
    background: #ffffff !important;
    color: #354253 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.aml-form-intro .aml-form-eyebrow {
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #354253 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-align: center !important;
}

.aml-form-intro h2 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #354253 !important;
    font-size: clamp(28px, 4vw, 40px) !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.aml-form-intro p:not(.aml-form-eyebrow) {
    margin: 0 auto 20px !important;
    padding: 0 !important;
    color: #354253 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    text-align: center !important;
}

.aml-form-intro p:last-child {
    margin-bottom: 0 !important;
}

/* Reduce Elementor HTML field wrapper spacing */

.elementor-form .elementor-field-type-html {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.elementor-form .elementor-field-type-html > .aml-form-intro {
    margin-top: 0 !important;
}

/* Mobile form introduction */

@media (max-width: 767px) {
    .aml-form-intro {
        margin-bottom: 8px !important;
        padding: 14px 14px 8px !important;
    }

    .aml-form-intro .aml-form-eyebrow {
        font-size: 13px !important;
    }

    .aml-form-intro h2 {
        margin-bottom: 10px !important;
        font-size: 27px !important;
    }

    .aml-form-intro p:not(.aml-form-eyebrow) {
        margin-bottom: 14px !important;
        font-size: 14px !important;
    }

    .elementor-form .elementor-field-type-html {
        margin-bottom: 6px !important;
    }
}

/* Client name below the image */

.aml-client-image-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 24px;
    text-align: center;
}

.aml-client-image-name {
    margin: 10px 0 0;
    padding: 0;
    color: #09233f;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 767px) {
    .aml-client-image-name {
        margin-top: 8px;
        font-size: 18px;
    }
}

.aml-attendance-section h3 {
    text-align: center;
}