/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: #d9dde2;
}

body {
    margin: 0;
    padding: 18px;
}

form {
    max-width: 1320px;
    margin: 0 auto;
}


/* =========================================================
   PAPER / PAGE
   ========================================================= */

.paper {
    background: #fff;
    width: 100%;
    min-height: 960px;
    margin: 0 auto 22px;
    padding: 22px;
    border: 1px solid #aaa;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .14);
}


/* =========================================================
   TOP HEADER
   LEFT - CENTER - RIGHT
   ========================================================= */

.pdf-header {
    display: grid;

    /* Three equal header sections */
    grid-template-columns: 1fr 1fr 1fr;

    gap: 18px;

    /* All three sections start at exactly the same height */
    align-items: start;

    
}


/* Keep all three header sections aligned */

.brand-block,
.championship-block,
.right-header {
    width: 100%;
    margin: 0;
    padding: 0;
    align-self: start;
}


/* =========================================================
   LEFT HEADER
   ========================================================= */

.brand-block {
    text-align: center;
}

.senior-title {
    width: 100%;
    margin: 0;
    padding: 0;

    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: .9;
    font-weight: 700;

    color: #63ef4d;

    text-shadow: 2px 2px 2px #888;

    white-space: nowrap;
}


/* USBC New Mexico Logo */

.usbc-nm-logo {
    display: block;

    width: 260px;
    max-width: 95%;
    height: auto;

    margin: 10px auto 0 auto;
}


/* Old brand text if still used */

.brand-sub {
    margin: 10px 0 0 0;

    text-align: center;

    font-weight: 800;
    color: #1b4d91;
    font-size: .9rem;
}


/* =========================================================
   CENTER HEADER
   ========================================================= */

.championship-block {
    text-align: center;
}

.championship-block h1 {
    margin: 0;
    padding: 0;

    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.championship-block h2 {
    margin: 4px 0 0 0;
    padding: 0;

    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.championship-block strong {
    display: block;

    margin: 5px 0 0 0;
    padding: 0;

    font-size: .9rem;
}


/* =========================================================
   RIGHT HEADER
   ========================================================= */

.right-header {
    text-align: center;
}


/* =========================================================
   OFFICE USE
   ========================================================= */

.office-use {
    width: 190px;
    max-width: 100%;

    margin: 0 auto 8px auto;
    padding: 0;

    border: 1px solid #222;

    text-align: center;

    align-self: start;
}

.office-use > strong {
    display: block;

    padding: 4px;

    background: #ddd;

    font-size: .8rem;
}

.office-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.office-grid span {
    min-height: 32px;

    border-top: 1px solid #222;
    border-right: 1px solid #222;

    padding: 4px;

    font-size: .75rem;
}

.office-grid span:nth-child(2n) {
    border-right: 0;
}


/* =========================================================
   BOWLTV LOGO
   ========================================================= */

.bowltv-logo {
    display: block;

    width: 210px;
    max-width: 90%;
    height: auto;

    margin: 8px auto 0 auto;
}

.bowltv-logo-small {
    display: block;

    width: 190px;
    max-width: 90%;
    height: auto;

    margin: 0 auto 8px auto;
}


/* =========================================================
   PAGE ONE MAIN GRID
   ========================================================= */

.page-one-grid {
    display: grid;
    grid-template-columns: 1.65fr .85fr;
    gap: 22px;
}


/* =========================================================
   CAPTAIN / CONTACT INFORMATION
   ========================================================= */

.contact-box {
    border: 2px solid #222;
    padding: 10px 12px 12px;
}

.contact-box h3 {
    margin: 0 0 9px;

    padding: 5px;

    text-align: center;

    background: #8bff5d;

    border: 2px solid #222;
}

.contact-box label,
.team-doubles-grid label {
    display: flex;
    align-items: end;

    gap: 7px;

    margin: 3px 0;

    font-weight: 500;
}

.contact-box input,
.team-doubles-grid input {
    flex: 1;

    min-width: 0;

    border: 0;
    border-bottom: 1px solid #111;
    border-radius: 0;

    padding: 4px 3px;

    font: inherit;
}

.contact-row {
    display: grid;
    gap: 12px;
}

.city-row {
    grid-template-columns: 1.5fr .55fr .75fr;
}

.phone-row {
    grid-template-columns: 1fr 1fr;
}


/* =========================================================
   BOWLER TABLE
   ========================================================= */

.bowler-section {
    margin-top: 10px;
}

.table-scroll {
    overflow-x: auto;
}

.bowler-table {
    width: 100%;

    min-width: 760px;

    border-collapse: collapse;

    table-layout: fixed;
}

.bowler-table th,
.bowler-table td {
    border: 1px solid #222;

    padding: 2px;

    text-align: center;

    height: 38px;
}

.bowler-table th {
    font-size: .68rem;
    font-weight: 500;
}

.bowler-table th:nth-child(1) {
    width: 16%;
}

.bowler-table th:nth-child(2) {
    width: 33%;
}

.bowler-table th:nth-child(3) {
    width: 10%;
}

.bowler-table th:nth-child(4) {
    width: 12%;
}

.bowler-table th:nth-child(n+5) {
    width: 7.25%;
}

.bowler-table input[type="text"],
.bowler-table input[type="date"],
.bowler-table input[type="number"] {
    width: 100%;

    border: 0;

    outline: 0;

    padding: 5px 3px;

    font: inherit;

    background: transparent;
}

.bowler-table input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

.bowler-name-cell {
    display: flex;

    align-items: center;

    text-align: left !important;
}

.bowler-name-cell span {
    padding-left: 2px;
}


/* =========================================================
   TEAM / DOUBLES
   ========================================================= */

.team-doubles-grid {
    display: grid;

    grid-template-columns: .9fr 1fr 1fr;

    gap: 16px;

    padding: 8px 10px;

    border: 1px solid #222;
    border-top: 0;
}

.team-doubles-grid fieldset {
    border: 0;

    padding: 0;

    margin: 0;
}

.team-doubles-grid legend {
    font-size: .85rem;

    font-weight: 700;
}


/* =========================================================
   PAGE ONE BOTTOM
   ========================================================= */

.page-one-bottom {
    display: grid;

    grid-template-columns: .8fr 1.6fr;

    gap: 20px;

    margin-top: 14px;
}

.entry-fees {
    border: 2px solid #222;

    padding: 10px;

    font-size: .85rem;
}

.dates-block {
    text-align: center;
}

.dates-block h2 {
    font-family: Georgia, serif;

    margin: 2px 0 12px;
}

.dates-block h3 {
    margin: 16px 0 7px;

    font-size: 1rem;
}

.dates-block p {
    margin: 7px 0;
}

.dates-block > strong {
    font-size: 1.3rem;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.right-main {
    display: flex;

    flex-direction: column;

    gap: 22px;
}


/* =========================================================
   HOST BLOCK
   ========================================================= */

.host-block {
    text-align: center;
}

.host-block h3 {
    margin-bottom: 6px;
}

.host-block p {
    line-height: 1.6;
}


/* =========================================================
   NATIONAL SENIOR BANNER
   ========================================================= */

.national-banner {
    padding: 28px 16px;

    background: #8bff5d;

    border: 4px solid #333;

    border-radius:
        45% 10% 45% 10% /
        18% 18% 18% 18%;

    box-shadow: 0 7px 0 #aaa;

    text-align: center;
}

.national-banner span {
    display: block;

    margin-top: 8px;
}


/* =========================================================
   SQUAD SECTION
   ========================================================= */

.squad-section {
    text-align: center;
}

.squad-section h3 {
    margin: 0;
}

.squad-section p {
    margin: 4px 0;
    font-size: .8rem;
}


/* BOTH SQUAD TABLES */

.squad-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: .78rem;
    table-layout: fixed;
}

.squad-table.second {
    margin-top: 8px;
}


/* TABLE CELLS */

.squad-table th,
.squad-table td {
    border: 1px solid #222;
    padding: 4px 3px;
    text-align: center;
    vertical-align: middle;
}


/* DAY COLUMN */

.squad-table th:nth-child(1),
.squad-table td:nth-child(1) {
    width: 28%;
}


/* TIME COLUMN */

.squad-table th:nth-child(2),
.squad-table td:nth-child(2) {
    width: 22%;
}


/* DATE COLUMNS */

.squad-table th:nth-child(3),
.squad-table td:nth-child(3),
.squad-table th:nth-child(4),
.squad-table td:nth-child(4) {
    width: 25%;
}


/* INPUTS */

.squad-table input {
    width: 100%;
    min-width: 0;
    padding: 3px 1px;

    text-align: center;

    border: 0;
    outline: 0;

    font-size: 1rem;
    font-weight: bold;

    text-transform: uppercase;

    background: transparent;
}


/* T D S TEXT */

.squad-table small {
    font-size: .68rem;
}


/* =========================================================
   MAIL BLOCK
   ========================================================= */

.mail-block {
    margin-top: auto;

    font-size: .82rem;
}

.mail-block p {
    line-height: 1.45;
}


/* =========================================================
   PAGE TWO - RULES
   ========================================================= */

.rules-title {
    margin: 0 0 18px;

    text-align: center;

    color: #00e517;

    font-family: Georgia, serif;

    font-size: 2.3rem;
}

.rules-columns {
    columns: 2;

    column-gap: 44px;

    padding-left: 28px;

    margin: 0;

    font-size: .82rem;

    line-height: 1.38;
}

.rule {
    break-inside: avoid;

    margin: 0 0 10px;

    padding-left: 5px;
}

.rule-red:nth-child(6) {
    color: red;
}


/* =========================================================
   RULES BOTTOM
   ========================================================= */

.rules-bottom {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;

    width: 100%;
    margin: 16px auto 10px;
}


/* THANKS BOX */

.thanks-box {
    width: 300px;

    border: 3px solid #222;
    background: #ccc;

    padding: 28px;

    text-align: center;

    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.45;
}

/* ENTRY FEE BREAKDOWN BOX */

.fee-breakdown {
    width: 300px;

    border: 1px solid #222;
    padding: 10px;
}

.fee-breakdown h3 {
    margin: 0 0 14px;

    text-align: center;
}

.fee-breakdown > div {
    display: flex;

    justify-content: space-between;

    padding: 4px 0;
}

.fee-breakdown .fee-total {
    border-top: 1px solid #222;

    font-weight: 700;
}

.fee-breakdown small {
    display: block;

    text-align: center;

    margin-top: 8px;
}



/* =========================================================
   TOTAL / PAYMENT
   ========================================================= */

.payment-line {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    margin: 12px 0;

    font-family: Georgia, serif;

    font-size: 1.25rem;
}

.payment-line > label {
    display: flex;

    align-items: center;

    gap: 7px;
}

#total-fees-due {
    width: 95px;

    border: 2px solid #333;

    padding: 6px;

    font: inherit;

    text-align: right;

    background: #ddd;
}

.payment-type {
    display: flex;

    align-items: center;

    gap: 18px;

    border: 0;

    padding: 0;

    margin: 0;
}

.payment-type legend {
    float: left;

    margin-right: 18px;
}

.payment-type label {
    font-family: Arial, sans-serif;

    font-size: 1rem;
}

.payment-type input {
    width: 20px;

    height: 20px;

    vertical-align: middle;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button-row {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin: 10px 0;
}

.form-button {
    min-width: 150px;

    padding: 8px 15px;

    background: #cce7f7;

    border: 2px solid #555;

    font-size: 1rem;

    cursor: pointer;
}

.form-button.primary {
    background: #b7d5e6;
}


/* =========================================================
   CREDIT CARD INFORMATION
   ========================================================= */

.credit-card-box {
    position: relative;

    border: 3px solid #222;

    padding: 16px 20px;

    min-height: 150px;
}

.credit-card-box h2 {
    margin: 0 0 3px;

    text-align: center;
}

.credit-card-box > p {
    margin: 3px 0;

    text-align: center;
}

.card-notice {
    margin: 12px auto !important;

    padding: 8px;

    max-width: 760px;

    background: #fff5d9;

    border: 1px solid #b99525;
}

.nonfillable-lines {
    display: grid;

    gap: 8px;

    opacity: .55;
}

.nonfillable-lines span {
    border-bottom: 1px solid #222;

    padding-bottom: 3px;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.form-error {
    display: none;

    max-width: 1320px;

    margin: 0 auto 14px;

    padding: 12px 16px;

    background: #ffe6e6;

    border: 2px solid #b00000;

    color: #7f0000;

    font-weight: 700;
}

.form-error.show {
    display: block;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.honeypot {
    position: absolute !important;

    left: -10000px !important;

    width: 1px !important;

    height: 1px !important;
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

input:focus {
    outline: 2px solid #2f6fba;

    outline-offset: 1px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .pdf-header,
    .page-one-grid {
        grid-template-columns: 1fr;
    }


    .pdf-header {
        gap: 20px;
    }


    .senior-title {
        white-space: normal;

        text-align: center;
    }


    .brand-block,
    .championship-block,
    .right-header {
        text-align: center;
    }


    .usbc-nm-logo {
        width: 240px;
    }


    .bowltv-logo {
        width: 200px;
    }


    .brand-sub,
    .office-use {
        text-align: center;
    }


    .right-main {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }


    .squad-section,
    .mail-block {
        grid-column: 1 / -1;
    }


    .rules-columns {
        columns: 1;
    }


    .rules-bottom {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 5px;
    }


    .paper {
        padding: 12px;

        min-height: 0;
    }


    .contact-row,
    .city-row,
    .phone-row,
    .team-doubles-grid,
    .page-one-bottom,
    .right-main {
        grid-template-columns: 1fr;
    }


    .payment-line,
    .payment-type {
        flex-direction: column;

        align-items: stretch;

        gap: 10px;
    }


    .payment-type legend {
        float: none;
    }


    .button-row {
        flex-direction: column;
    }


    .form-button {
        width: 100%;
    }

}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    @page {
        size: letter landscape;
        margin: 0.25in;
    }


    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;

        background: #fff;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }


    form {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }


    /* =====================================================
       EACH FORM PAGE
       ===================================================== */

    .paper {
        width: 100%;
        min-height: 0;

        margin: 0;
        padding: 10px;

        border: 0;
        box-shadow: none;

        page-break-after: always;
        break-after: page;
    }


    .page-two {
        page-break-after: auto;
        break-after: auto;
    }


    /* =====================================================
       PAGE 1 HEADER
       FORCE DESKTOP/PDF LAYOUT
       ===================================================== */

    .pdf-header {
        display: grid !important;

        grid-template-columns: 1fr 1fr 1fr !important;

        gap: 12px;

        align-items: start;

        width: 100%;
    }


    .brand-block,
    .championship-block,
    .right-header {
        width: 100%;

        margin: 0;
        padding: 0;

        align-self: start;

        text-align: center;
    }


    .senior-title {
        font-size: 32px;

        line-height: .9;

        white-space: nowrap;
    }


    .championship-block h1 {
        font-size: 18px;
    }


    .championship-block h2 {
        font-size: 13px;
    }


    .championship-block strong {
        font-size: 11px;
    }


    .usbc-nm-logo {
        width: 190px;
        max-width: 100%;
        height: auto;

        margin: 4px auto 0;
    }


    .office-use {
        width: 160px;
        margin: 0 auto 4px;
    }


    .bowltv-logo {
        width: 150px;
        max-width: 100%;
        height: auto;

        margin: 4px auto 0;
    }


    /* =====================================================
       PAGE 1 MAIN BODY
       KEEP LEFT AND RIGHT SIDES SIDE BY SIDE
       ===================================================== */

    .page-one-grid {
        display: grid !important;

        grid-template-columns: 1.65fr .85fr !important;

        gap: 14px;

        width: 100%;
    }


    .left-main {
        min-width: 0;
    }


    .right-main {
        display: flex !important;

        flex-direction: column !important;

        gap: 10px;

        min-width: 0;
    }


    /* =====================================================
       CONTACT BOX
       ===================================================== */

    .contact-box {
        padding: 6px 8px 8px;
    }


    .contact-box h3 {
        margin-bottom: 5px;
        padding: 3px;
    }


    .contact-box label {
        margin: 1px 0;
        font-size: 11px;
    }


    .contact-box input {
        padding: 2px;
    }


    /* =====================================================
       BOWLER TABLE
       ===================================================== */

    .table-scroll {
        overflow: visible !important;
    }


    .bowler-table {
        width: 100%;

        min-width: 0 !important;

        table-layout: fixed;

        font-size: 9px;
    }


    .bowler-table th,
    .bowler-table td {
        height: 26px;

        padding: 1px;
    }


    .bowler-table th {
        font-size: 8px;
    }


    .bowler-table input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }


    /* =====================================================
       TEAM / DOUBLES
       ===================================================== */

    .team-doubles-grid {
        display: grid !important;

        grid-template-columns: .9fr 1fr 1fr !important;

        gap: 8px;

        padding: 5px 7px;
    }


    .team-doubles-grid label,
    .team-doubles-grid legend {
        font-size: 10px;
    }


    /* =====================================================
       BOTTOM LEFT
       ===================================================== */

    .page-one-bottom {
        display: grid !important;

        grid-template-columns: .8fr 1.6fr !important;

        gap: 10px;

        margin-top: 7px;
    }


    .entry-fees {
        padding: 6px;

        font-size: 10px;
    }


    .dates-block {
        font-size: 10px;
    }


    .dates-block h2 {
        margin: 2px 0 6px;

        font-size: 15px;
    }


    .dates-block h3 {
        margin: 6px 0 3px;

        font-size: 11px;
    }


    .dates-block p {
        margin: 3px 0;
    }


    .dates-block > strong {
        font-size: 13px;
    }


    /* =====================================================
       RIGHT SIDE
       ===================================================== */

    .host-block {
        font-size: 10px;
    }


    .host-block h3 {
        margin: 2px 0;
    }


    .host-block p {
        margin: 2px 0;

        line-height: 1.25;
    }


    .national-banner {
        padding: 12px 8px;

        border-width: 2px;

        font-size: 10px;
    }


    /* =====================================================
       SQUAD TABLES
       ===================================================== */

    .squad-section {
        font-size: 10px;
    }


    .squad-section h3 {
        font-size: 12px;
    }


    .squad-section p {
        margin: 2px 0;

        font-size: 9px;
    }


    .squad-table {
        margin-top: 4px;

        font-size: 9px;
    }


    .squad-table.second {
        margin-top: 4px;
    }


    .squad-table th,
    .squad-table td {
        padding: 2px;
    }


    .squad-table input {
        padding: 1px;

        font-size: 10px;
    }


    .mail-block {
        margin-top: 3px;

        font-size: 9px;
    }


    .mail-block p {
        margin: 2px 0;

        line-height: 1.2;
    }


    /* =====================================================
       PAGE 2 RULES
       ===================================================== */

    .rules-title {
        margin: 0 0 8px;

        font-size: 28px;
    }


    .rules-columns {
        columns: 2 !important;

        column-gap: 25px;

        padding-left: 20px;

        font-size: 9px;

        line-height: 1.22;
    }


    .rule {
        margin-bottom: 5px;
    }


    /* =====================================================
       THANKS + FEE BREAKDOWN
       ===================================================== */

    .rules-bottom {
        display: flex !important;

        justify-content: center !important;
        align-items: stretch !important;

        gap: 20px;

        width: 100%;

        margin: 8px auto 5px;
    }


    .thanks-box {
        width: 300px;

        padding: 12px;

        font-size: 11px;
    }


    .fee-breakdown {
        width: 300px;

        padding: 7px;

        font-size: 10px;
    }


    .fee-breakdown h3 {
        margin-bottom: 6px;

        font-size: 12px;
    }


    .fee-breakdown > div {
        padding: 2px 0;
    }


    /* =====================================================
       PAYMENT / CREDIT CARD
       ===================================================== */

    .payment-line {
        margin: 5px 0;

        gap: 20px;

        font-size: 13px;
    }


    .credit-card-box {
        min-height: 0;

        padding: 8px 12px;
    }


    .credit-card-box h2 {
        font-size: 16px;
    }


    .credit-card-box p {
        font-size: 10px;
    }


    /* =====================================================
       THINGS NOT PRINTED
       ===================================================== */

    .button-row,
    .form-error,
    .card-notice,
    .honeypot {
        display: none !important;
    }


    /* =====================================================
       FORM FIELDS
       ===================================================== */

    input,
    textarea,
    select {
        color: #000 !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }


    input {
        background: transparent;
    }


    /* Prevent sections from splitting unnecessarily */

    .contact-box,
    .bowler-section,
    .team-doubles-grid,
    .page-one-bottom,
    .squad-section,
    .rules-bottom,
    .credit-card-box {
        break-inside: avoid;
        page-break-inside: avoid;
    }

}

/* =========================================================
   FINAL TWO-PAGE PRINT FIT
   ========================================================= */

@media print {

    @page {
        size: letter landscape;
        margin: 0.15in;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    form {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    /* =====================================================
       BOTH PRINTED PAGES
       ===================================================== */

    .paper {
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;

        min-height: 0 !important;

        padding: 8px !important;

        overflow: visible !important;
    }


    /* =====================================================
       PAGE 1
       COMPRESS ENOUGH TO STAY ON ONE SHEET
       ===================================================== */

    .page-one {
        /* zoom: 0.75; */

        page-break-after: always !important;
        break-after: page !important;
    }


    /* Keep page-one layout side-by-side */

    .page-one-grid {
        display: grid !important;
        grid-template-columns: 1.65fr .85fr !important;
        gap: 12px !important;
    }

    .right-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;
    }


    /* Reduce vertical spacing */

    .pdf-header {
        margin-bottom: 5px !important;
        gap: 8px !important;
    }

    .contact-box {
        padding: 5px 7px !important;
    }

    .contact-box h3 {
        margin-bottom: 4px !important;
        padding: 2px !important;
    }

    .bowler-section {
        margin-top: 4px !important;
    }

    .bowler-table th,
    .bowler-table td {
        height: 24px !important;
        padding: 1px !important;
    }

    .team-doubles-grid {
        padding: 4px 6px !important;
        gap: 6px !important;
    }

    .page-one-bottom {
        margin-top: 5px !important;
        gap: 8px !important;
    }

    .entry-fees {
        padding: 5px !important;
    }

    .dates-block h2 {
        margin: 1px 0 4px !important;
    }

    .dates-block h3 {
        margin: 4px 0 2px !important;
    }

    .dates-block p {
        margin: 2px 0 !important;
    }

    .host-block h3,
    .host-block p {
        margin: 1px 0 !important;
    }

    .national-banner {
        padding: 8px 6px !important;
    }

    .squad-section p {
        margin: 1px 0 !important;
    }

    .squad-table {
        margin-top: 2px !important;
    }

    .squad-table.second {
        margin-top: 3px !important;
    }

    .squad-table th,
    .squad-table td {
        padding: 1px 2px !important;
    }

    .mail-block {
        margin-top: 2px !important;
    }

    .mail-block p {
        margin: 1px 0 !important;
        line-height: 1.15 !important;
    }


    /* =====================================================
       PAGE 2
       ===================================================== */

    .page-two {
        /* zoom: 0.75; */

        page-break-after: auto !important;
        break-after: auto !important;
    }


    .rules-title {
        margin-bottom: 6px !important;
    }

    .rules-columns {
        columns: 2 !important;
        column-gap: 24px !important;

        font-size: 9px !important;
        line-height: 1.16 !important;
    }

    .rule {
        margin-bottom: 3px !important;
    }

    .rules-bottom {
        margin: 5px auto 3px !important;
        gap: 16px !important;
    }

    .thanks-box {
        padding: 8px !important;
    }

    .fee-breakdown {
        padding: 6px !important;
    }

    .fee-breakdown h3 {
        margin-bottom: 4px !important;
    }

    .fee-breakdown > div {
        padding: 1px 0 !important;
    }

    .payment-line {
        margin: 3px 0 !important;
    }

    .credit-card-box {
        min-height: 0 !important;
        padding: 6px 10px !important;
    }


    /* =====================================================
       DO NOT PRINT BUTTONS / WEB-ONLY MESSAGES
       ===================================================== */

    .button-row,
    .form-error,
    .card-notice,
    .honeypot {
        display: none !important;
    }


    /* KEEP SECTIONS TOGETHER */

    .contact-box,
    .bowler-section,
    .team-doubles-grid,
    .page-one-bottom,
    .host-block,
    .national-banner,
    .squad-section,
    .mail-block,
    .rules-bottom,
    .credit-card-box {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

}


/* =========================================================
   SUCCESS PAGE
   ========================================================= */

.success-card {
    max-width: 720px;

    margin: 80px auto;

    padding: 40px;

    background: #fff;

    border: 1px solid #aaa;

    box-shadow: 0 3px 14px rgba(0, 0, 0, .14);

    text-align: center;
}

.success-link {
    display: inline-block;

    text-decoration: none;

    color: #111;
}
