/* =====================================================================
   The 2026 plan cards beside a checkout form, in free-trial-form (/subscription-upgrade, /sign-up, the Practical
   Training Program page): section.tf_cards_layout, the cards column .tf_cards_col, the form column #choose_plan
   (/subscription-upgrade) or .tf_form_col (sign-up form). Loaded by free-trial-form only when the cards are on.
   Desktop: the cards and the form are one block of equal height (/subscription-upgrade, .tf_cards_fullscreen: also
   centred in the window). Tablet: cards on one row, the form centred below. Phone: everything stacked.
   ===================================================================== */
.tf_cards_layout .tf_upgrade_cards{margin-bottom:0}
.tf_cards_layout .tf_upgrade_cards .promo_disclaimer{margin-top:16px}
.tf_cards_layout .head_sub{margin-bottom:28px}
/* tablet and up: Close sits absolutely in the top-right corner (subscription-upgrade-payment.css), so the centred
   heading keeps clear of it on both sides */
@media (min-width:768px){
    .tf_cards_layout .head_sub{padding-left:130px;padding-right:130px}
}

@media (min-width:992px){
    section#common_individual_sign_up_plan.tf_cards_layout.tf_cards_fullscreen{
        min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:40px 0;
    }
    .tf_cards_layout > .container{max-width:1320px}
    .tf_cards_layout > .container > .row{align-items:stretch;row-gap:0}
    /* cards column: the two cards fill the row's height */
    .tf_cards_layout .tf_cards_col{display:flex;flex-direction:column;position:relative}
    /* the Disclaimer (renewal / expired / upgrade learners only) hangs below the cards, so the cards and the payment
       card end on one line; the section keeps room for it under the block */
    .tf_cards_layout .tf_upgrade_cards .promo_disclaimer{position:absolute;top:100%;left:calc(var(--bs-gutter-x, 1.5rem) * .5);right:calc(var(--bs-gutter-x, 1.5rem) * .5);z-index:2}
    section#common_individual_sign_up_plan.tf_cards_fullscreen:has(.promo_disclaimer){padding-bottom:96px}
    .tf_cards_layout .tf_upgrade_cards{flex:1 1 auto;display:flex;flex-direction:column}
    .tf_cards_layout .tf_upgrade_cards .pc-sec{flex:1 1 auto;display:flex}
    .tf_cards_layout .tf_upgrade_cards .pc-wrap{flex:1 1 auto;display:flex;flex-direction:column}
    .tf_cards_layout .tf_upgrade_cards .pc-grid{flex:1 1 auto}
    /* "View all features" on the bottom line of both cards */
    .tf_cards_layout .tf_upgrade_cards .pc-card .pc-toggle{margin-top:auto}
    /* payment card: as tall as the cards; its button block ends on the same line */
    .tf_cards_layout #choose_plan,.tf_cards_layout .tf_form_col{display:flex;flex-direction:column}
    .tf_cards_layout #choose_plan > .Choose_Plan,.tf_cards_layout .tf_form_col > .Choose_Plan{flex:1 1 auto;display:flex;flex-direction:column;margin-bottom:0}
    .tf_cards_layout #choose_plan > .Choose_Plan > .othercontent{margin-top:auto}
}

/* tablet: the cards keep their row, the payment card goes below them, centred */
@media (min-width:768px) and (max-width:991.98px){
    .tf_cards_layout .tf_cards_col,
    .tf_cards_layout #choose_plan,
    .tf_cards_layout .tf_form_col{flex:0 0 100%;max-width:100%}
    .tf_cards_layout #choose_plan,
    .tf_cards_layout .tf_form_col{margin-top:24px}
    .tf_cards_layout #choose_plan > .Choose_Plan,
    .tf_cards_layout .tf_form_col > .Choose_Plan{max-width:560px;margin-left:auto;margin-right:auto}
    .tf_cards_layout .tf_upgrade_cards .pc-card .pc-toggle{margin-top:auto}
}

/* phone: cards one under the other, then the payment card */
@media (max-width:767.98px){
    section#common_individual_sign_up_plan.tf_cards_layout{padding:20px 0 28px}
    /* ind-free-trial.css hides .head_sub on phones (the old phone plan list had none); the cards layout shows it */
    .tf_cards_layout .head_sub{display:block;margin-bottom:20px;text-align:center}
    .tf_cards_layout .head_sub h1,
    .tf_cards_layout .head_sub h2{font-size:24px;line-height:1.25}
    .tf_cards_layout .head_sub .Sub_Line{font-size:14px}
    .tf_cards_layout #choose_plan,
    .tf_cards_layout .tf_form_col{margin-top:20px}
    .tf_cards_layout .tf_upgrade_cards .pc-sec.pc-compact .pc-card{padding:18px 16px 14px}
}
