/**
 * TRC USMS Verify — modal styling. Loaded by snippets/trc-usms-verify.php
 * only on the USMS Race Club Subscriptions page (147405).
 * KAAM-33693 (2.10.63) fix.
 */

.trc-usms-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 12, 12, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.trc-usms-modal-overlay[aria-hidden="false"] { display: flex; }

.trc-usms-modal-content {
    background: #ffffff;
    border: 2px solid #333333;
    border-radius: 0;
    max-width: 640px;
    width: 100%;
    padding: 0;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.trc-usms-modal-header {
    color: #333333;
    border-bottom: 1px solid #333333;
    padding: 15px 20px;
}

.trc-usms-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.trc-usms-modal-intro {
    font-size: 15px;
    color: #d72925 !important;
    margin: 10px 20px 20px;
    line-height: 1.5;
}
.trc-usms-modal-intro strong { color: #d72925; font-weight: bold; }

.trc-usms-verify-form { padding: 0 20px 20px; }

.trc-usms-verify-form { display: block; }

.trc-usms-form-row { margin-bottom: 15px; }
.trc-usms-form-row label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #181818;
    margin-bottom: 5px;
}
.trc-usms-form-row input,
.trc-usms-form-row select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}
.trc-usms-form-row select { width: auto; min-width: 60px; }

.trc-usms-submit-btn {
    background: #7ea9c3;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
}
.trc-usms-submit-btn:hover { background: #5a8ba8; }
.trc-usms-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.trc-usms-note {
    color: #888;
    font-size: 13px;
    margin: 15px 0 0;
    font-style: italic;
}

.trc-usms-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}
.trc-usms-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.trc-usms-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
.trc-usms-message a { color: inherit; text-decoration: underline; }

body.trc-usms-modal-open { overflow: hidden; }

/* --------------------------------------------------------------------
 * KAAM-33639 — USMS Race Club Subscriptions pricing cards
 * Recreates Ultimate VC Addons `.ult_design_3` (plugin dequeued on STG).
 * Values extracted verbatim from LIVE plugin CSS at
 * /wp-content/plugins/Ultimate_VC_Addons/assets/css/pricing.css
 * Do NOT round/tweak these — they must match LIVE pixel-for-pixel.
 * -------------------------------------------------------------------- */

/* Page-level pool background image (LIVE row bg).
 * LIVE puts this on the OUTER row wrapping BOTH the USMS ANNUAL SUBSCRIPTIONS
 * heading AND the pricing cards row — extends full viewport width and
 * min-height:100vh (LIVE `vc_row-o-full-height`).
 * We replicate via full-bleed breakout from the constrained .entry-content.
 */
body.page-id-147405 .trc-usms-pricing-outer {
    background-image: url('/wp-content/uploads/2017/07/join-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* LIVE renders at ~817px content-driven height at d1920. Removed
       min-height:100vh which caused +263 to +666px overshoot vs LIVE. */
    min-height: 750px;
    /* Full viewport width breakout while keeping inner content container-width */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 60px;
    padding-bottom: 60px;
    box-sizing: border-box;
}
/* Ensure the entry-content overflow:clip sitewide rule doesn't clip us */
body.page-id-147405 .entry-content { overflow-x: visible !important; }

/* Inner column (holds heading + pricing row) — restore container width */
body.page-id-147405 .trc-usms-pricing-outer > .wp-block-column {
    flex-basis: 100% !important;
    max-width: 1170px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
}
/* Kill Gutenberg group constrained-layout max-width so heading + cards use full container */
body.page-id-147405 .trc-usms-pricing-outer .wp-block-group.vc_column-inner,
body.page-id-147405 .trc-usms-pricing-outer .wp-block-group__inner-container {
    max-width: none !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Heading — LIVE uses ultimate_heading with data-responsive-json-new='{"font-size":"desktop:48px;"}' */
body.page-id-147405 .trc-usms-pricing-outer h2.wp-block-heading {
    color: #195096 !important;
    font-weight: 300 !important;
    text-align: left !important;
    font-size: 48px !important;
    line-height: 1.1;
    margin: 0 0 12px;
    padding: 0;
}
/* Separator on LIVE is border-bottom only (no bg fill), 1px solid #195096, 100% width */
body.page-id-147405 .trc-usms-pricing-outer hr.wp-block-separator {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    border-bottom: 1px solid #195096 !important;
    height: 1px !important;
    width: 100% !important;
    margin: 0 0 32px !important;
    opacity: 1 !important;
}
/* Card column width — LIVE Bootstrap 3 uses 15px gutter each side */
body.page-id-147405 .trc-usms-pricing-outer .wp-block-columns.vc_row-fluid {
    margin-left: -15px;
    margin-right: -15px;
    gap: 0;
}
body.page-id-147405 .trc-usms-pricing-outer .wp-block-column.vc_col-sm-3 {
    flex-basis: 25%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
/* Ensure cards themselves fill the column */
body.page-id-147405 .trc-usms-pricing-outer .ult_pricing_table_wrap {
    width: 100%;
    min-width: 0;
}

/* -------------------------------------------------------------------
 * Recreate LIVE's ult_pricing_table_wrap.ult_design_3.ult-cs-custom
 * (Ultimate VC Addons plugin dequeued). Global — used on:
 *   /membership/usms-raceclub-subscriptions/ (page 147405) — KAAM-33639
 *   /membership/raceclub-subscriptions/       (page 798)    — KAAM-33700
 * Values verbatim from LIVE plugin
 *   /wp-content/plugins/Ultimate_VC_Addons/assets/css/pricing.css
 * ------------------------------------------------------------------- */
.ult_pricing_table_wrap {
    min-width: 100%;
    box-sizing: border-box;
    margin-bottom: 35px;
}
.ult_pricing_table_wrap * { box-sizing: border-box; }
.ult_pricing_table_wrap .ult_pricing_table {
    list-style-type: none;
    font-size: 13px;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 610px;
}
.ult_design_3 .ult_pricing_table {
    background: linear-gradient(#262626, #000);
    color: #FFFFFF;
}
.ult_design_3 .ult_pricing_table a { color: inherit; }
.ult_design_3 .ult_price_body_block {
    background: #353535;
    margin: 0;
}
.ult_pricing_table .ult_pricing_heading {
    padding: 20px 0;
    margin: 0;
}
.ult_pricing_table .ult_pricing_heading .price-heading {
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: inherit;
    line-height: 1.2;
}
.ult_pricing_table .ult_pricing_heading .price-subheading {
    padding: 0;
    margin: 4px 20px 15px;
    font-size: 12px;
    font-weight: normal;
    color: inherit;
    line-height: 1.4;
}
.ult_design_3 .ult_pricing_table .ult_price_body {
    display: table;
    margin: 25px auto;
    font-size: 40px;
}
.ult_price_body .ult_price {
    display: block;
    text-align: center;
}
.ult_price_body .ult_price .ult_price_figure {
    display: block;
    font-size: 1em;
    line-height: 1.3em;
    font-weight: normal;
}
.ult_price_body .ult_price .ult_price_term {
    display: block;
    font-size: 11px;
    font-weight: normal;
}
.ult_pricing_table .ult_price_features {
    padding: 15px 15px 0 15px;
    margin: 0;
    font-weight: normal;
    color: inherit;
}
.ult_pricing_table .ult_price_features p {
    margin: 0;
    padding: 0;
    color: inherit;
    font-weight: inherit;
    line-height: 1.5;
}
/* UL/LI features (LIVE ult_design_3 uses plain text, no bullets, centered) */
.ult_pricing_table .ult_price_features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: inherit;
}
.ult_pricing_table .ult_price_features ul li {
    list-style: none;
    padding: 5px 0;
    margin: 0;
    color: inherit;
    font-weight: inherit;
    line-height: 1.5;
    border: 0;
}
.ult_pricing_table .ult_price_link {
    padding: 15px 0;
    margin: 0;
}
.ult_pricing_table .ult_price_link .ult_price_action_button {
    display: inline-block;
    text-decoration: none;
    font-weight: normal;
    color: #FFFFFF;
    background: linear-gradient(#666, #333);
    border-radius: 3px;
    padding: 10px 20px;
}
.ult_pricing_table .ult_price_link .ult_price_action_button:hover {
    background: linear-gradient(#777, #444);
    color: #FFFFFF;
}
.ult_clr { clear: both; }

/* -------------------------------------------------------------------
 * Page 798 /membership/raceclub-subscriptions/ — sticky right column
 * with video popup + Lane 1 FREE card, and Monthly + Annual pricing
 * sections. LIVE doesn't have pool bg on this page (just white bg).
 * KAAM-33700 pricing-cards rebuild.
 * ------------------------------------------------------------------- */
body.page-id-798 .ult_pricing_table_wrap { margin-bottom: 35px; }
body.page-id-798 .wp-block-columns.vc_row-fluid.wpb_row { gap: 0; margin-left: -15px; margin-right: -15px; }
/* 4-column Bootstrap row: LANE 2, 3, 4 PRO, 4 ELITE */
body.page-id-798 .wp-block-column.vc_col-sm-3 { flex-basis: 25%; padding: 0 15px; box-sizing: border-box; }
body.page-id-798 .wp-block-column.vc_col-sm-4 { flex-basis: 33.33%; padding: 0 15px; box-sizing: border-box; }
/* Kill Gutenberg constrained-layout inner padding so cards fill columns */
body.page-id-798 .wp-block-group.vc_column-inner,
body.page-id-798 .wp-block-group__inner-container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Mobile — LIVE stacks cards */
@media (max-width: 767px) {
    .ult_pricing_table_wrap { margin-bottom: 20px; }
    .ult_pricing_table { min-height: auto; padding-bottom: 30px; }
    body.page-id-798 .wp-block-column.vc_col-sm-3,
    body.page-id-798 .wp-block-column.vc_col-sm-4 { flex-basis: 100%; padding: 0; }
}
