/*
 * ETG Tour Inquiry, template 3: Tailor-made Collage.
 * Needs templates-base.css (loaded as a dependency). Scoped .etg-tif.etg-tif--tc.
 */

.etg-tif.etg-tif--tc .etg-tif-t3 {
    display: grid;
    /* The form gets the larger share (owner, 14 Nov: wider, easier to read). */
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.22fr);
    grid-template-areas: "left main";
    column-gap: 48px;
    row-gap: 0;
    /* The left column is as tall as the form card: no empty space beside it. */
    align-items: stretch;
    max-width: 1240px;
    margin: 0 auto;
}

.etg-tif.etg-tif--tc .etg-tif-t3-left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/*
 * Stretch only when it makes sense: in the stepper style the form height
 * changes on every step (photos would resize), and without the collage the
 * trust card alone would become a tall empty box.
 */
.etg-tif.etg-tif--tc.is-stepper .etg-tif-t3-left,
.etg-tif.etg-tif--tc.collage-off .etg-tif-t3-left {
    align-self: start;
}

.etg-tif.etg-tif--tc.is-stepper .etg-tif-tr,
.etg-tif.etg-tif--tc.collage-off .etg-tif-tr {
    flex: none;
}

.etg-tif.etg-tif--tc .etg-tif-t3-side {
    grid-area: side;
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.etg-tif.etg-tif--tc .etg-tif-t3-main {
    grid-area: main;
    min-width: 0;
}

.etg-tif.etg-tif--tc .etg-tif-t3-ca {
    grid-area: ca;
    min-width: 0;
}

/* ----- collage ----- */

.etg-tif.etg-tif--tc .etg-tif-col {
    position: relative;
    /* Grows with the form beside it (photo heights are percentages); takes the space before the trust card does. */
    flex: 10 1 auto;
    min-height: 430px;
    max-height: 760px;
    margin: 10px 0 0;
}

.etg-tif.etg-tif--tc .etg-tif-col figure {
    position: absolute;
    margin: 0;
    padding: 7px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0 0 3px var(--etg-gold-l), 0 18px 34px rgba(83, 39, 10, 0.2);
    transition: transform 0.3s;
}

.etg-tif.etg-tif--tc .etg-tif-col figure:hover {
    z-index: 4;
    transform: rotate(0) scale(1.02);
}

.etg-tif.etg-tif--tc .etg-tif-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.etg-tif.etg-tif--tc .etg-tif-col figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.94);
    font: 700 12px/1.3 var(--etg-display);
    color: var(--etg-brown);
}

.etg-tif.etg-tif--tc .etg-tif-col .etg-tif-p1 {
    left: 0;
    top: 6%;
    width: 58%;
    height: 56%;
    transform: rotate(-5deg);
}

.etg-tif.etg-tif--tc .etg-tif-col .etg-tif-p2 {
    right: 0;
    top: 0;
    width: 54%;
    height: 52%;
    transform: rotate(4deg);
}

.etg-tif.etg-tif--tc .etg-tif-col .etg-tif-p3 {
    left: 22%;
    bottom: 0;
    z-index: 2;
    width: 56%;
    height: 52%;
    transform: rotate(-1.5deg);
}

.etg-tif.etg-tif--tc .etg-tif-col .etg-tif-p1 figcaption {
    top: 16px;
    bottom: auto;
}

.etg-tif.etg-tif--tc .etg-tif-col .etg-tif-p2 figcaption {
    top: 16px;
    bottom: auto;
    left: auto;
    right: 16px;
}

.etg-tif.etg-tif--tc .etg-tif-seal {
    position: absolute;
    right: 2%;
    bottom: 26px;
    z-index: 3;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--etg-btn);
    color: #fff;
    text-align: center;
    transform: rotate(8deg);
    box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--etg-gold-l), 0 12px 26px rgba(83, 39, 10, 0.28);
}

.etg-tif.etg-tif--tc .etg-tif-seal b {
    display: block;
    font: 800 30px/1 var(--etg-display);
}

.etg-tif.etg-tif--tc .etg-tif-seal span {
    display: block;
    max-width: 80px;
    margin: 2px auto 0;
    font: 700 10.5px/1.25 var(--etg-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ----- trust lines ----- */

.etg-tif.etg-tif--tc .etg-tif-tr {
    list-style: none;
    /* Takes whatever height is left once the collage is at its tallest; items spread evenly. */
    flex: 1 0 auto;
    display: grid;
    align-content: space-evenly;
    gap: 18px;
    margin: 0;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--etg-line);
    border-radius: var(--etg-r-card);
    box-shadow: var(--etg-sh);
}

.etg-tif.etg-tif--tc .etg-tif-tr li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

/* Thin gold rules between the lines, so a stretched card still reads as one list. */
.etg-tif.etg-tif--tc .etg-tif-tr li + li {
    padding-top: 18px;
    border-top: 1px solid var(--etg-line);
}

.etg-tif.etg-tif--tc .etg-tif-tr i {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--etg-o-tint);
    color: var(--etg-o-text);
}

.etg-tif.etg-tif--tc .etg-tif-tr svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.etg-tif.etg-tif--tc .etg-tif-tr b {
    display: block;
    font: 700 15px/1.3 var(--etg-display);
    color: var(--etg-brown);
}

.etg-tif.etg-tif--tc .etg-tif-tr span {
    font-size: 14px;
    color: var(--etg-ink-2);
}

/* ----- form card with the orange ticket header ----- */

/*
 * No overflow clip on the card: it cut the Tom Select list and the country
 * list of the phone field. The corners are rounded on the children instead
 * (header on top, the phone Back / Next row at the bottom), and the header clips its own
 * notches. Not clipping also keeps the sticky step bar working on phones.
 */
.etg-tif.etg-tif--tc .etg-tif-card {
    background: #fff;
    border: 1px solid var(--etg-line);
    border-radius: var(--etg-r-card);
    box-shadow: 0 1px 2px rgba(83, 39, 10, 0.05), 0 22px 48px -12px rgba(83, 39, 10, 0.18);
}

.etg-tif.etg-tif--tc .etg-tif-tkh {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    /* Rounded to the inside of the card border; clips the two punched notches below. */
    overflow: hidden;
    border-radius: calc(var(--etg-r-card) - 1px) calc(var(--etg-r-card) - 1px) 0 0;
    /* Soft light top-left, a faint guilloche-like line pattern, brand orange underneath. */
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 9px),
        linear-gradient(120deg, var(--etg-btn) 0%, var(--etg-btn-h) 100%);
    color: #fff;
}

.etg-tif.etg-tif--tc .etg-tif-tkh-m {
    padding: 24px 30px 26px;
}

.etg-tif.etg-tif--tc .etg-tif-tkh-k {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    font: 800 10.5px/1 var(--etg-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--etg-brown);
}

.etg-tif.etg-tif--tc .etg-tif-tkh-k::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--etg-brown);
}

.etg-tif.etg-tif--tc .etg-tif-tkh h3 {
    margin-top: 14px;
    font-size: 30px;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 1px 0 rgba(83, 39, 10, 0.18);
}

.etg-tif.etg-tif--tc .etg-tif-tkh p {
    max-width: 440px;
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
}

.etg-tif.etg-tif--tc .etg-tif-tkh-s {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 18px 10px;
    border-left: 2px dashed rgba(255, 255, 255, 0.7);
    background: rgba(83, 39, 10, 0.07);
    text-align: center;
}

/* The plane sits in a white seal, like a stamp on the stub. */
.etg-tif.etg-tif--tc .etg-tif-tkh-s svg {
    width: 40px;
    height: 40px;
    padding: 9px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    fill: var(--etg-btn-d);
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.etg-tif.etg-tif--tc .etg-tif-tkh-s b {
    font: 800 22px/1 var(--etg-display);
    letter-spacing: 0.06em;
}

.etg-tif.etg-tif--tc .etg-tif-tkh-s small {
    font: 800 10px/1.2 var(--etg-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--etg-brown);
}

.etg-tif.etg-tif--tc .etg-tif-tkh-s i {
    width: 78px;
    height: 20px;
    margin-top: 2px;
    opacity: 0.85;
    background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px);
}

.etg-tif.etg-tif--tc .etg-tif-tkh::before,
.etg-tif.etg-tif--tc .etg-tif-tkh::after {
    content: "";
    position: absolute;
    left: calc(100% - 128px - 11px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--etg-page);
}

.etg-tif.etg-tif--tc .etg-tif-tkh::before {
    top: -11px;
}

.etg-tif.etg-tif--tc .etg-tif-tkh::after {
    bottom: -11px;
    background: #fff;
}

.etg-tif.etg-tif--tc .etg-tif-tkh-cut {
    position: relative;
    height: 0;
    margin: 0 22px;
    border-top: 2px dotted var(--etg-gold-l);
    /* The side notches may overhang the dashed line, but not the card: clip at the card's inner edges (the 22px margin). */
    clip-path: inset(-20px -22px -20px -22px);
}

.etg-tif.etg-tif--tc .etg-tif-tkh-cut::before,
.etg-tif.etg-tif--tc .etg-tif-tkh-cut::after {
    content: "";
    position: absolute;
    top: -13px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--etg-page);
    box-shadow: inset 0 1px 2px rgba(83, 39, 10, 0.12);
}

.etg-tif.etg-tif--tc .etg-tif-tkh-cut::before {
    left: -34px;
}

.etg-tif.etg-tif--tc .etg-tif-tkh-cut::after {
    right: -34px;
}

.etg-tif.etg-tif--tc .etg-tif-card-body {
    /* The form area is its own container (etg-form): counters and date fields stack when it is narrow. */
    container-type: inline-size;
    container-name: etg-form;
    padding: 28px 32px 32px;
}

.etg-tif.etg-tif--tc .etg-tif-card-body .etg-tif-pane {
    gap: 20px;
}

/* ----- left column variant left="steps" (1.3.2): Home's collage + How it works ----- */

/*
 * Same three-photo collage as Home, and the How it works card in place of the
 * trust card. The card keeps its own height (flex: none); the collage takes the
 * free height beside the form (its photo heights are percentages, 430-760px),
 * so the column ends level with the form without an empty stretched box.
 */
.etg-tif.etg-tif--tc .etg-tif-t3-steps {
    grid-area: steps;
    flex: none;
    min-width: 0;
}

/*
 * The collage stops at 760px (+10px top margin). Cap its wrapper at the same
 * height so a very tall form (above ~1160px) cannot grow the wrapper past the
 * photos and open an empty gap between them and the How it works card; any
 * extra height stays under the card instead.
 */
.etg-tif.etg-tif--tc.left-steps .etg-tif-t3-side {
    max-height: 770px;
}

.etg-tif.etg-tif--tc .etg-tif-hiw {
    position: relative;
    overflow: hidden;
    padding: 30px 30px 14px;
    background: #fff;
    border: 1px solid var(--etg-line);
    border-radius: var(--etg-r-card);
    box-shadow: var(--etg-sh);
}

/* Same orange as the ticket header, as a thin strip on top. */
.etg-tif.etg-tif--tc .etg-tif-hiw::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(120deg, var(--etg-btn) 0%, var(--etg-btn-h) 100%);
}

.etg-tif.etg-tif--tc .etg-tif-hiw-h {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--etg-brown);
}

/* Short gold rule under the title. */
.etg-tif.etg-tif--tc .etg-tif-hiw-h::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--etg-gold);
}

.etg-tif.etg-tif--tc .etg-tif-hiw-l {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.etg-tif.etg-tif--tc .etg-tif-hiw-l li {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    margin: 0;
    padding: 0 0 22px;
}

/* Dotted gold line from one number to the next, like the ticket's tear line. */
.etg-tif.etg-tif--tc .etg-tif-hiw-l li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 50px;
    bottom: 6px;
    border-left: 2px dotted var(--etg-gold-l);
}

.etg-tif.etg-tif--tc .etg-tif-hiw-n {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--etg-btn);
    box-shadow: 0 0 0 4px var(--etg-o-tint);
    font: 800 19px/1 var(--etg-display);
    color: var(--etg-brown);
}

.etg-tif.etg-tif--tc .etg-tif-hiw-l li > div {
    padding-top: 2px;
}

.etg-tif.etg-tif--tc .etg-tif-hiw-l li > div b {
    display: block;
    font: 700 16px/1.3 var(--etg-display);
    color: var(--etg-brown);
}

.etg-tif.etg-tif--tc .etg-tif-hiw-l li > div span {
    display: block;
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--etg-ink-2);
}

/* ----- contact card ----- */

.etg-tif.etg-tif--tc.ca-below > .etg-ca {
    max-width: 1240px;
    margin-top: 32px;
}

/* ----- narrow containers (width of the column the shortcode sits in, not the screen) ----- */

@container etg-tif (max-width: 1060px) {
    .etg-tif.etg-tif--tc .etg-tif-t3 {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "side" "main" "ca";
        grid-template-rows: auto;
        row-gap: 28px;
    }

    /* Stacked: the left column dissolves so the contact card goes under the form. */
    .etg-tif.etg-tif--tc .etg-tif-t3-left {
        display: contents;
    }

    .etg-tif.etg-tif--tc .etg-tif-t3-side,
    .etg-tif.etg-tif--tc.left-steps .etg-tif-t3-side {
        flex: none;
        max-height: none;
    }

    .etg-tif.etg-tif--tc .etg-tif-col {
        flex: none;
        height: 430px;
        min-height: 0;
        max-height: none;
    }

    /* left="steps": collage above the form (as on Home), How it works below it. */
    .etg-tif.etg-tif--tc.left-steps .etg-tif-t3 {
        grid-template-areas: "side" "main" "steps" "ca";
    }

    .etg-tif.etg-tif--tc .etg-tif-t3-side,
    .etg-tif.etg-tif--tc .etg-tif-t3-steps,
    .etg-tif.etg-tif--tc .etg-tif-t3-ca {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

    .etg-tif.etg-tif--tc .etg-tif-tr {
        margin-bottom: 0;
    }
}

@container etg-tif (max-width: 640px) {
    .etg-tif.etg-tif--tc .etg-tif-head,
    .etg-tif.etg-tif--tc .form-notice {
        margin-left: 16px;
        margin-right: 16px;
    }

    .etg-tif.etg-tif--tc .etg-tif-t3 {
        row-gap: 22px;
    }

    /* Collage becomes a compact photo strip. */
    .etg-tif.etg-tif--tc .etg-tif-col {
        height: 270px;
        margin: 0 16px 22px;
    }

    .etg-tif.etg-tif--tc .etg-tif-col .etg-tif-p1 {
        top: 16px;
        height: 160px;
    }

    .etg-tif.etg-tif--tc .etg-tif-col .etg-tif-p2,
    .etg-tif.etg-tif--tc .etg-tif-col .etg-tif-p3 {
        height: 150px;
    }

    .etg-tif.etg-tif--tc .etg-tif-seal {
        bottom: 10px;
        width: 84px;
        height: 84px;
    }

    .etg-tif.etg-tif--tc .etg-tif-seal b {
        font-size: 22px;
    }

    .etg-tif.etg-tif--tc .etg-tif-seal span {
        font-size: 8.5px;
    }

    .etg-tif.etg-tif--tc .etg-tif-col figcaption {
        left: 12px;
        bottom: 12px;
        font-size: 11px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tr {
        margin: 0 12px;
        padding: 18px 16px;
    }

    .etg-tif.etg-tif--tc .etg-tif-t3-side {
        gap: 0;
    }

    .etg-tif.etg-tif--tc .etg-tif-t3-main,
    .etg-tif.etg-tif--tc .etg-tif-t3-steps,
    .etg-tif.etg-tif--tc .etg-tif-t3-ca {
        padding: 0 12px;
    }

    /* left="steps" on a phone: a compact How it works card under the form. */
    .etg-tif.etg-tif--tc .etg-tif-hiw {
        padding: 22px 18px 6px;
    }

    .etg-tif.etg-tif--tc .etg-tif-hiw-h {
        font-size: 20px;
    }

    .etg-tif.etg-tif--tc .etg-tif-hiw-h::after {
        margin-top: 9px;
    }

    .etg-tif.etg-tif--tc .etg-tif-hiw-l {
        margin-top: 16px;
    }

    .etg-tif.etg-tif--tc .etg-tif-hiw-l li {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 14px;
        padding-bottom: 16px;
    }

    .etg-tif.etg-tif--tc .etg-tif-hiw-l li:not(:last-child)::before {
        left: 18px;
        top: 44px;
        bottom: 4px;
    }

    .etg-tif.etg-tif--tc .etg-tif-hiw-n {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .etg-tif.etg-tif--tc .etg-tif-hiw-l li > div b {
        font-size: 15px;
    }

    .etg-tif.etg-tif--tc .etg-tif-hiw-l li > div span {
        font-size: 14px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh {
        grid-template-columns: minmax(0, 1fr) 92px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh-k2 {
        display: none;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh-m {
        padding: 18px 16px 20px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh h3 {
        font-size: 22px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh p {
        font-size: 14px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh-s b {
        font-size: 17px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh-s i {
        width: 56px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh-s svg {
        width: 32px;
        height: 32px;
        padding: 7px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh::before,
    .etg-tif.etg-tif--tc .etg-tif-tkh::after {
        left: calc(100% - 92px - 11px);
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh-cut {
        margin: 0 14px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh-cut::before {
        left: -26px;
    }

    .etg-tif.etg-tif--tc .etg-tif-tkh-cut::after {
        right: -26px;
    }

    .etg-tif.etg-tif--tc .etg-tif-card-body {
        padding: 22px 16px 24px;
    }

    .etg-tif.etg-tif--tc.is-stepper .etg-tif-card-body {
        padding-top: 0;
    }

    .etg-tif.etg-tif--tc:is(.etg-tif-js, .etg-tif-js-pending) .etg-tif-nav {
        margin-bottom: -24px;
        border-radius: 0 0 calc(var(--etg-r-card) - 1px) calc(var(--etg-r-card) - 1px);
    }

    .etg-tif.etg-tif--tc.ca-below > .etg-ca {
        margin: 22px 12px 0;
        width: auto;
    }
}

/* The wrapper's own padding cannot answer to its own container, so it follows the phone screen. */
@media (max-width: 640px) {
    .etg-tif.etg-tif--tc {
        padding: 28px 0 40px;
    }
}
