.tv-screen {
    position: relative;
    width: 100vw;
    height: max(720px, 100vh);
    background-color: #111;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    animation: powerOn 0.5s ease-out forwards;
}
/* The TV Turns Off Animation */
/* .tv-screen.power-off {
  animation: powerOff 0.6s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
} */
/* .tv-screen.power-off .content-container {
  animation: fadeOut 0.2s ease-out forwards;
} */
/* Static Glitch Overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 10px), repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
    opacity: 0;
    pointer-events: none;
}
.tv-screen.power-off .glitch-overlay {
    animation: staticNoise 0.2s infinite steps(10);
    opacity: 0.8;
}
.content-container {
    z-index: 2;
    transition: opacity 0.3s ease;
}
.error-code {
    font-size: 8rem;
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 0 15px rgb(200 162 77 / 50%);
    margin-bottom: 16px;
    color: #fff;
}
.error-msg {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: red;
}
.sub-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #888;
}
/* .home-link {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
{
  background-color: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px var(--primary-color);
} */
[class*="rj-btn-"].home-link:hover {
    box-shadow: 0 0 15px var(--primary-color);
    animation: none;
}
/* TV Animations */
@keyframes powerOn {
    0% {
        transform: scale(0, 0.005);
        filter: brightness(30);
    }
    30% {
        transform: scale(1, 0.005);
        filter: brightness(15);
    }
    100% {
        transform: scale(1, 1);
        filter: brightness(1);
    }
}
@keyframes powerOff {
    0% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(1, 0.005);
        filter: brightness(15);
    }
    80% {
        transform: scale(0, 0.005);
        filter: brightness(30);
    }
    100% {
        transform: scale(0, 0);
        background-color: var(--white-color);
    }
}
@keyframes fadeOut {
    to {
        opacity: 0;
    }
}
@keyframes staticNoise {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}
/* Thank You */
.thank-you {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 720px;
    padding: 110px 0;
    background:
        linear-gradient(rgba(22, 40, 75, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 40, 75, 0.035) 1px, transparent 1px),
        linear-gradient(135deg, #f8f5ee 0%, #f2f5f9 48%, #eef2f7 100%);
    background-size: 42px 42px, 42px 42px, auto;
    text-align: center;
}

.thank-you__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
    opacity: 0.75;
}

.thank-you__glow--one {
    top: -210px;
    left: -150px;
    background: radial-gradient(circle, rgba(200, 162, 77, 0.28), rgba(200, 162, 77, 0));
}

.thank-you__glow--two {
    right: -170px;
    bottom: -230px;
    background: radial-gradient(circle, rgba(22, 40, 75, 0.2), rgba(22, 40, 75, 0));
}

.thank-you .container {
    position: relative;
    z-index: 1;
}

.thank-you__card {
    position: relative;
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 78px 80px 72px;
    overflow: hidden;
    border: 1px solid rgba(22, 40, 75, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(22, 40, 75, 0.14);
}

.thank-you__card::before,
.thank-you__card::after {
    content: "";
    position: absolute;
    top: 0;
    height: 6px;
}

.thank-you__card::before {
    left: 0;
    width: 70%;
    background: #16284b;
}

.thank-you__card::after {
    right: 0;
    width: 30%;
    background: #c8a24d;
}

.thank-you__mark {
    display: grid;
    width: 96px;
    height: 96px;
    margin: 0 auto 30px;
    place-items: center;
    border: 7px solid #f2ead7;
    border-radius: 50%;
    color: #ffffff;
    background: #16284b;
    box-shadow: 0 14px 34px rgba(22, 40, 75, 0.2);
}

.thank-you__mark i {
    font-size: 38px;
    line-height: 1;
}

.thank-you__eyebrow {
    margin: 0 0 12px;
    color: #aa8430;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.thank-you__heading {
    max-width: 680px;
    margin: 0 auto 22px;
    color: #16284b;
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.12;
}

.thank-you__message {
    max-width: 650px;
    margin: 0 auto;
    color: #586174;
    font-size: 18px;
    line-height: 1.8;
}

.thank-you__message p {
    margin: 0 0 10px;
}

.thank-you__message p:last-child {
    margin-bottom: 0;
}

.thank-you__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

.thank-you__button {
    display: inline-flex;
    min-height: 54px;
    padding: 14px 25px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid #16284b;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.thank-you__button--primary {
    color: #ffffff;
    background: #16284b;
}

.thank-you__button--secondary {
    color: #16284b;
    background: transparent;
}

.thank-you__button:hover,
.thank-you__button:focus-visible {
    color: #16284b;
    border-color: #c8a24d;
    background: #c8a24d;
    box-shadow: 0 12px 24px rgba(200, 162, 77, 0.22);
    transform: translateY(-2px);
}

.thank-you__button:focus-visible {
    outline: 3px solid rgba(200, 162, 77, 0.35);
    outline-offset: 3px;
}

@media only screen and (max-width: 1399px) {
    .error-code {
        font-size: 7rem;
    }
    .error-msg {
        font-size: 1.75rem;
    }
}

@media only screen and (max-width: 767px) {
    .error-code {
        font-size: 6rem;
    }
    .error-msg{
        font-size: 1.5rem;
    }
    .sub-text {
        font-size: 1.1rem;
    }

    .thank-you {
        min-height: 620px;
        padding: 72px 0;
    }

    .thank-you__card {
        padding: 58px 28px 52px;
    }

    .thank-you__mark {
        width: 82px;
        height: 82px;
        margin-bottom: 25px;
    }

    .thank-you__mark i {
        font-size: 32px;
    }

    .thank-you__message {
        font-size: 16px;
    }
}

@media only screen and (max-width: 479px) {
    .error-code {
        font-size: 5rem;
    }
    .error-msg {
        font-size: 1.35rem;
        letter-spacing: 0.25rem;
    }
    .sub-text {
        font-size: 1rem;
    }

    .thank-you {
        padding: 54px 0;
    }

    .thank-you__card {
        padding: 50px 20px 44px;
    }

    .thank-you__heading {
        font-size: 38px;
    }

    .thank-you__actions,
    .thank-you__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thank-you__button {
        transition: none;
    }
}
