:root {
    --th-speaking-blue: #003349;
    --th-speaking-harbor: #005e93;
    --th-speaking-sky: #68bfd0;
    --th-speaking-orange: #f18721;
    --th-speaking-ink: #24495a;
    --th-speaking-mist: #eef7fa;
    --th-speaking-cream: #fff8ef;
}

.th-speaking-page {
    overflow: clip;
    background: #fff;
    color: var(--th-speaking-blue);
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.th-speaking-page * {
    box-sizing: border-box;
}

.th-speaking-container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.th-speaking-hero {
    position: relative;
    padding: clamp(72px, 9vw, 126px) 0 clamp(54px, 8vw, 90px);
    background:
        linear-gradient(135deg, rgba(0, 51, 73, 0.97), rgba(0, 94, 147, 0.88)),
        url("/wp-content/uploads/2024/02/header-map-scaled.webp") left top / min(780px, 80vw) auto no-repeat;
    color: #fff;
    isolation: isolate;
}

.th-speaking-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 82%);
    z-index: -1;
}

.th-speaking-hero__grid,
.th-speaking-intro__grid,
.th-speaking-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: clamp(34px, 7vw, 86px);
    align-items: center;
}

.th-speaking-eyebrow {
    margin: 0 0 14px;
    color: var(--th-speaking-sky);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.th-speaking-hero h1,
.th-speaking-intro h2,
.th-speaking-topics h2,
.th-speaking-form__copy h2 {
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    letter-spacing: 0;
}

.th-speaking-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(50px, 7.8vw, 94px);
    line-height: 0.9;
}

.th-speaking-hero__intro {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.58;
}

.th-speaking-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 34px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--th-speaking-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(241, 135, 33, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.th-speaking-button:hover,
.th-speaking-button:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(241, 135, 33, 0.34);
}

.th-speaking-hero__media {
    position: relative;
}

.th-speaking-portrait {
    position: relative;
    z-index: 1;
    margin: 0;
    overflow: hidden;
    border: 10px solid rgba(104, 191, 208, 0.9);
    border-radius: 0 90px 0 90px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.th-speaking-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.03;
    object-fit: cover;
    object-position: center top;
}

.th-speaking-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: -38px auto 0;
    padding: 0;
    width: min(96%, 520px);
    list-style: none;
}

.th-speaking-stats li {
    min-height: 108px;
    padding: 16px 14px;
    background: #fff;
    color: var(--th-speaking-blue);
    box-shadow: 0 16px 34px rgba(0, 51, 73, 0.18);
}

.th-speaking-stats strong,
.th-speaking-stats span {
    display: block;
}

.th-speaking-stats strong {
    color: var(--th-speaking-harbor);
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1;
}

.th-speaking-stats span {
    margin-top: 8px;
    color: var(--th-speaking-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.th-speaking-intro,
.th-speaking-topics,
.th-speaking-form-section {
    padding: clamp(64px, 9vw, 112px) 0;
}

.th-speaking-intro h2,
.th-speaking-topics h2,
.th-speaking-form__copy h2 {
    margin: 0;
    color: var(--th-speaking-blue);
    font-size: clamp(36px, 5vw, 62px);
    line-height: 0.94;
}

.th-speaking-copy p,
.th-speaking-form__copy p {
    margin: 0 0 18px;
    color: var(--th-speaking-ink);
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.7;
}

.th-speaking-topics {
    background: linear-gradient(180deg, var(--th-speaking-mist), #fff);
}

.th-speaking-topics h2 {
    max-width: 760px;
    margin-bottom: 30px;
}

.th-speaking-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.th-speaking-topic {
    padding: clamp(24px, 3vw, 34px);
    background: #fff;
    border-top: 7px solid var(--th-speaking-sky);
    box-shadow: 0 16px 34px rgba(0, 51, 73, 0.09);
}

.th-speaking-topic:nth-child(2) {
    border-top-color: var(--th-speaking-orange);
}

.th-speaking-topic:nth-child(3) {
    border-top-color: var(--th-speaking-harbor);
}

.th-speaking-topic h3 {
    margin: 0 0 12px;
    color: var(--th-speaking-blue);
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 0.98;
}

.th-speaking-topic p {
    margin: 0;
    color: var(--th-speaking-ink);
    font-size: 17px;
    line-height: 1.58;
}

.th-speaking-form-section {
    background: linear-gradient(135deg, var(--th-speaking-blue), #005e93);
}

.th-speaking-form__grid {
    align-items: start;
}

.th-speaking-form__copy {
    position: sticky;
    top: 120px;
    padding-top: 18px;
}

.th-speaking-form__copy h2,
.th-speaking-form__copy p {
    color: #fff;
}

.th-speaking-form__copy p {
    color: rgba(255, 255, 255, 0.86);
}

.th-speaking-form-card {
    padding: clamp(22px, 4vw, 42px);
    background: #fff;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.th-speaking-form-card .gform_wrapper.gform-theme {
    --gf-ctrl-radius: 6px;
    --gf-ctrl-border-color: rgba(0, 51, 73, 0.42);
    --gf-ctrl-bg-color: #fbfdfe;
    --gf-ctrl-shadow: none;
    --gf-form-gap-y: 22px;
    --gf-field-gap-y: 8px;
}

.th-speaking-form-card .gform_wrapper.gform-theme .gform_description {
    margin: 0 0 22px;
    color: var(--th-speaking-blue);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.25;
}

.th-speaking-form-card .gform_wrapper.gform-theme .gform_fields {
    row-gap: 22px;
}

.th-speaking-form-card .gform_wrapper.gform-theme .gfield {
    margin: 0;
}

.th-speaking-form-card .gform_wrapper.gform-theme .gfield_label {
    color: var(--th-speaking-blue);
    font-weight: 800;
    line-height: 1.25;
}

.th-speaking-form-card .gform_wrapper.gform-theme .gfield_required,
.th-speaking-form-card .gform_wrapper.gform-theme .gfield_required .gfield_required_text {
    color: #d8492f;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.th-speaking-form-card .gform_wrapper.gform-theme .gfield_description,
.th-speaking-form-card .gform_wrapper.gform-theme .gform-field-label--type-sub {
    color: #687684;
    font-size: 14px;
    line-height: 1.45;
}

.th-speaking-form-card .gform_wrapper.gform-theme input[type="color"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="date"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="datetime-local"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="datetime"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="email"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="month"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="number"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="password"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="search"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="tel"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="text"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="time"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="url"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="week"],
.th-speaking-form-card .gform_wrapper.gform-theme select,
.th-speaking-form-card .gform_wrapper.gform-theme textarea {
    width: 100%;
    border: 1.5px solid rgba(0, 51, 73, 0.38) !important;
    border-radius: 6px !important;
    background: #fbfdfe !important;
    color: var(--th-speaking-blue) !important;
    font-size: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 1px 2px rgba(0, 51, 73, 0.06) !important;
}

.th-speaking-form-card .gform_wrapper.gform-theme input[type="color"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="date"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="datetime-local"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="datetime"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="email"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="month"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="number"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="password"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="search"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="tel"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="text"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="time"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="url"],
.th-speaking-form-card .gform_wrapper.gform-theme input[type="week"],
.th-speaking-form-card .gform_wrapper.gform-theme select {
    min-height: 52px !important;
    padding: 12px 15px !important;
}

.th-speaking-form-card .gform_wrapper.gform-theme textarea {
    min-height: 132px !important;
    max-height: 180px !important;
    padding: 14px 15px !important;
    resize: vertical;
}

.th-speaking-form-card .gform_wrapper.gform-theme .ginput_complex {
    gap: 12px;
}

.th-speaking-form-card .gform_wrapper.gform-theme .ginput_complex span {
    min-width: min(180px, 100%);
    margin-bottom: 0;
}

.th-speaking-form-card .gform_wrapper.gform-theme input:focus,
.th-speaking-form-card .gform_wrapper.gform-theme select:focus,
.th-speaking-form-card .gform_wrapper.gform-theme textarea:focus {
    border-color: var(--th-speaking-harbor) !important;
    box-shadow: 0 0 0 3px rgba(104, 191, 208, 0.22) !important;
    outline: none;
}

.th-speaking-form-card .gform_wrapper.gform-theme .gform_button {
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--th-speaking-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.th-speaking-form-card .gform_wrapper.gform-theme .gform_footer {
    margin-top: 24px;
    padding-top: 0;
}

.th-speaking-form-note {
    margin: 24px 0 0;
    color: var(--th-speaking-ink);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 980px) {
    .th-speaking-hero__grid,
    .th-speaking-intro__grid,
    .th-speaking-form__grid,
    .th-speaking-topic-grid {
        grid-template-columns: 1fr;
    }

    .th-speaking-hero__media {
        width: min(520px, 100%);
        justify-self: center;
    }

    .th-speaking-form__copy {
        position: static;
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .th-speaking-hero h1 {
        font-size: clamp(44px, 14vw, 66px);
    }

    .th-speaking-button {
        width: 100%;
    }

    .th-speaking-stats {
        grid-template-columns: 1fr;
        margin-top: 14px;
        width: 100%;
    }

    .th-speaking-stats li {
        min-height: 0;
    }

    .th-speaking-portrait {
        border-width: 7px;
        border-radius: 0 58px 0 58px;
    }
}
