.pac-registration {
    width: 100%;
    /* margin: 20px 0; */
}

.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;
}

.pac-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pac-registration-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.pac-registration-table thead {
    color: #fff;
    background: linear-gradient(to right, #01204e, #01306a, #014186);
}

.pac-registration-table th,
.pac-registration-table td {
    padding: 10px 12px 10px 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 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.pac-registration-table td {
    color: #01204e;
}

.pac-registration-table td b {
    font-weight: 700;
}

.pac-registration-table tbody tr:nth-child(even) {
    background: #f0f0f0;
}

/* Expired fee columns */
.pac-registration-table th.expired-fee,
.pac-registration-table td.expired-fee {
    background: #eee !important;
    color: #888 !important;
    text-decoration: line-through;
    text-decoration-color: #d62828;
    text-decoration-thickness: 2px;
}

.pac-registration-table td.expired-fee b {
    color: #888 !important;
}

/* Current fee column */
.pac-registration-table th.current-fee {
    background: #1768a8 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.pac-registration-table td.current-fee {
    background: #e3efff !important;
    color: #01204e !important;
    text-decoration: none !important;
}

.pac-registration-table td.current-fee b {
    color: #014186 !important;
    text-decoration: none !important;
}

/* Registration category */
.pac-registration-table .registration-button-row td:first-child {
    background: #01204e !important;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

/* Remove blank registration cell borders and backgrounds */
.pac-registration-table .registration-button-row td.registration-inactive {
    visibility: hidden !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Highlight active registration cell */
.pac-registration-table .registration-button-row td.registration-active {
    visibility: visible !important;
    background: linear-gradient(135deg, #01204e, #014186) !important;
    /* border: 2px solid #d9ad4a !important; */
    text-align: center;
    text-decoration: none !important;
}

/* Gold registration button */
.pac-registration-table .pac-register-btn {
    display: inline-block;
    padding: 9px 20px 9px;
    background: linear-gradient(to right, #e8bf67, #9a682b);
    color: #ffffff !important;
    border-radius: 10px;
    text-align: center;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    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;
}

.pac-registration-table .pac-register-btn:hover {
    background: #fff0c2;
    color: #01204e !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, .22);
}

.pac-registration-table .pac-register-btn[hidden] {
    display: none !important;
}

/* Blinking closed-registration message */
.registration-closed-message {
    margin-top: 24px;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(to right, #000926, #01306a, #05219c);
    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;
}

@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: #01204e;
        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: #014186;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none !important;
    }

    .pac-registration-table tbody td:first-child::before {
        content: none;
    }

    .pac-registration-table tbody td.expired-fee {
        background: #eee !important;
        color: #888 !important;
    }

    .pac-registration-table tbody td.expired-fee::before {
        color: #888 !important;
        text-decoration: line-through;
        text-decoration-color: #d62828;
    }

    .pac-registration-table tbody td.current-fee {
        background: #e3efff !important;
    }

    /* Hide inactive registration cells completely on mobile */
    .pac-registration-table .registration-button-row td.registration-inactive {
        display: none !important;
        visibility: hidden !important;
        border: 0 !important;
        background: transparent !important;
    }

    .pac-registration-table .registration-button-row td.registration-active {
        display: block !important;
        padding: 14px 12px;
        background: linear-gradient(135deg, #01204e, #014186) !important;
        text-align: left;
        visibility: visible !important;
        text-align: center;
    }

    .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;
    }
}

@media screen and (max-width: 480px) {
    .pac-registration-heading h3 {
        font-size: 21px;
    }

    .pac-registration-table tbody td {
        padding: 9px 10px;
        font-size: 13px;
    }

    .registration-closed-message h3 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .registration-closed-message h3 {
        animation: none;
    }
}