
.pac-registration {
    width: 100%;
}

.pac-registration-heading {
    margin-bottom: 18px;
}

.pac-registration-label,
.closed-message-label {
    display: inline-block;
    color: #014186;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.pac-registration-heading h3 {
    margin: 0 0 8px;
    color: #01204e;
    font-size: 26px;
    font-weight: 700;
}

.pac-registration-heading p {
    margin: 0;
    color: #014186;
    font-size: 14px;
}

/* Table wrapper */
.pac-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main table */
.pac-registration-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.pac-registration-table thead {
    color: #fff;
    background: #802a8f;
}

.pac-registration-table th,
.pac-registration-table td {
    padding: 5px 12px 5px 15px;
    text-align: left;
    border: 1px solid #e4e4e4;
    font-size: 14px;
    font-weight: 400;
    vertical-align: top;
    overflow-wrap: break-word;
}

.pac-registration-table th {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.pac-registration-table td {
    color: #000;
}

.pac-registration-table td b {
    font-weight: 700;
}

.pac-registration-table tbody tr:nth-child(even) {
    background: #f0f0f0;
}

/* Hide expired pricing columns completely */
.pac-registration-table th.expired-fee,
.pac-registration-table td.expired-fee {
    display: none !important;
}

/* Current pricing column */
.pac-registration-table th.current-fee {
    background: #f26f21 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.pac-registration-table td.current-fee {
    background: #f26f212b !important;
    color: #000 !important;
    text-decoration: none !important;
}

.pac-registration-table td.current-fee b {
    color: #000 !important;
    text-decoration: none !important;
}

/* Registration category cell */
.pac-registration-table .registration-button-row td:first-child {
    background: #802a8f !important;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

/* Inactive registration cells */
.pac-registration-table .registration-button-row td.registration-inactive {
    display: table-cell !important;
    visibility: hidden !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Active registration cell */
.pac-registration-table .registration-button-row td.registration-active {
    display: table-cell !important;
    visibility: visible !important;
    background: #f26f212b !important;
    text-align: center !important;
    text-decoration: none !important;
}

/* Registration button */
.pac-registration-table .pac-register-btn {
    display: inline-block;
    background: linear-gradient(
        to right,
        #2f4b9f 0%,
        #802a8f 50%,
        #f26f21 100%
    );
    color: #fff !important;
        border-radius: 50px;
    padding: 5px 15px;
    text-align: center;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
    transition: background .25s ease, transform .25s ease,
        box-shadow .25s ease;
        text-transform: uppercase;
}

.pac-registration-table .pac-register-btn:hover {
    background: #2f4b9f;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, .22);
}

.pac-registration-table .pac-register-btn[hidden] {
    display: none !important;
}

/* Closed registration message */
.registration-closed-message {
    margin-top: 24px;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(to right, #2f4b9f 0%, #802a8f 50%, #f26f21 100%);
    box-shadow: 0 8px 25px rgba(1, 32, 78, .18);
}

.registration-closed-message[hidden] {
    display: none !important;
}

.registration-closed-message .closed-message-label {
    color: #f5dfa0;
}

.registration-closed-message h3 {
    margin: 4px 0 12px;
    color: #fff;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    animation: registrationClosedBlink 1.2s ease-in-out infinite;
}

.registration-closed-message p {
    margin: 0;
    color: #f5dfa0;
    font-size: 15px;
    font-weight: 500;
}

/* Blinking animation */
@keyframes registrationClosedBlink {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 0 rgba(245, 223, 160, 0);
        transform: scale(1);
    }

    50% {
        opacity: .35;
        text-shadow: 0 0 14px rgba(245, 223, 160, .9);
        transform: scale(1.015);
    }
}

/* Tablet and mobile */
@media screen and (max-width: 767px) {

    .pac-registration-heading h3 {
        font-size: 23px;
    }

    .pac-table-wrapper {
        overflow: visible;
    }

    .pac-registration-table {
        border: 0;
        table-layout: auto;
    }

    .pac-registration-table thead {
        display: none;
    }

    .pac-registration-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e4e4e4;
        border-radius: 5px;
        overflow: hidden;
        background: #fff;
    }

    .pac-registration-table tbody td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        text-align: left;
        border: 0;
        border-bottom: 1px solid #e4e4e4;
        font-size: 14px;
    }

    .pac-registration-table tbody td:first-child {
        background: #802a8f;
        color: #fff;
        font-weight: 700;
        text-decoration: none !important;
    }

    .pac-registration-table tbody td:not(:first-child)::before {
        content: attr(data-label);
        display: inline;
        margin-right: 6px;
        color: #802a8f;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none !important;
    }

    .pac-registration-table tbody td:first-child::before {
        content: none;
    }

    /* Hide expired cells on mobile too */
    .pac-registration-table th.expired-fee,
    .pac-registration-table td.expired-fee {
        display: none !important;
    }

    .pac-registration-table tbody td.current-fee {
        background: #f26f212b !important;
    }

    /* Hide inactive registration cells on mobile */
    .pac-registration-table .registration-button-row td.registration-inactive {
        display: none !important;
        visibility: hidden !important;
        border: 0 !important;
        background: transparent !important;
    }

    /* Active registration button cell on mobile */
    .pac-registration-table .registration-button-row td.registration-active {
        display: block !important;
        padding: 14px 12px;
        background: #f26f212b!important;
        text-align: center !important;
        visibility: visible !important;
    }

    .pac-registration-table .registration-button-row td:first-child {
        text-align: center;
    }

    .pac-registration-table .registration-button-row td.registration-active::before {
        color: #fff !important;
        text-decoration: none !important;
    }

    .pac-registration-table .registration-button-row .pac-register-btn {
        padding: 9px 13px;
        font-size: 12px;
    }

    .registration-closed-message {
        margin-top: 18px;
        padding: 25px 15px;
    }

    .registration-closed-message h3 {
        font-size: 25px;
    }

    .registration-closed-message p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Small mobile */
@media screen and (max-width: 480px) {

    .pac-registration-heading h3 {
        font-size: 21px;
    }

    .pac-registration-table tbody td {
        padding: 9px 10px;
        font-size: 14px;
        line-height: normal;
    }

    .registration-closed-message h3 {
        font-size: 22px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .registration-closed-message h3 {
        animation: none;
    }

    .pac-registration-table .pac-register-btn {
        transition: none;
    }
}
