:root {
    --bg: #120c07;
    --gold: #d6a64a;
    --gold-hi: #f6d98f;
    --gold-deep: #8a5a1c;
    --gold-line: rgba(214, 166, 74, 0.45);
    --ink: #f2e6d0;
    --ink-2: #d4c3a6;
    --muted: #a8936f;
    --grad-gold: linear-gradient(180deg, #fbe7b0 0%, #e2b35c 48%, #a8702a 100%);
    --grad-gold-text: linear-gradient(180deg, #fff3cc 0%, #f1c872 50%, #b9802f 100%);
    --font-body: "IBM Plex Sans Thai", "Prompt", system-ui, sans-serif;
    --font-head: "Prompt", "IBM Plex Sans Thai", sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image:
        linear-gradient(180deg, rgba(8, 5, 3, 0.78) 0%, rgba(18, 12, 7, 0.62) 42%, rgba(8, 5, 3, 0.84) 100%),
        url("../../official/assets/img/bg-hero.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
}

.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page-wrapper > .footer-custom {
    margin-top: auto;
    flex-shrink: 0;
}

.page-main {
    display: flex;
    align-items: center;
    padding: 2.5rem 1rem 3rem;
}

.thank-you-card {
    position: relative;
    max-width: 780px;
    padding: 2.75rem 2.25rem 2.5rem;
    background:
        linear-gradient(180deg, rgba(36, 24, 14, 0.78), rgba(12, 8, 4, 0.9));
    border: 1px solid var(--gold-line);
    border-radius: 6px;
    box-shadow:
        inset 0 0 0 1px rgba(246, 217, 143, 0.08),
        0 22px 56px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.thank-you-card::before,
.thank-you-card::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    border-color: var(--gold-hi);
    border-style: solid;
}

.thank-you-card::before {
    top: 10px;
    left: 10px;
    border-width: 1px 0 0 1px;
}

.thank-you-card::after {
    right: 10px;
    bottom: 10px;
    border-width: 0 1px 1px 0;
}

.status-logo {
    width: min(100%, 340px);
    height: auto;
}

.thank-you-icon {
    font-size: 3.5rem;
    line-height: 1;
    background: var(--grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 16px rgba(214, 166, 74, 0.28));
}

.thank-you-title {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 3.4vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
    background: var(--grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.thank-you-body {
    color: var(--ink-2);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.75;
}

.thank-you-body p + p {
    margin-top: 1rem;
}

.thank-you-closing {
    color: var(--gold-hi);
    font-weight: 500;
}

.thank-you-actions .btn {
    min-width: 240px;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.thank-you-actions .btn:hover {
    transform: translateY(-2px);
}

.btn-download {
    color: #2a1706;
    background: var(--grad-gold);
    border: 1px solid #fbe3a3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 18px rgba(214, 166, 74, 0.28);
}

.btn-download:hover,
.btn-download:focus {
    color: #2a1706;
    filter: brightness(1.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 18px rgba(246, 201, 110, 0.45);
}

.btn-official {
    color: var(--ink);
    background: rgba(10, 6, 3, 0.35);
    border: 1px solid var(--gold-line);
}

.btn-official:hover,
.btn-official:focus {
    color: var(--gold-hi);
    border-color: var(--gold);
    background: rgba(214, 166, 74, 0.1);
}

.footer-custom {
    padding: 1.6rem 1rem 1.8rem;
    background: rgba(12, 8, 4, 0.82);
    border-top: 1px solid rgba(214, 166, 74, 0.3);
}

.footer-logos-img {
    width: min(420px, 100%);
    margin-bottom: 0.75rem;
}

.footer-copy {
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: var(--muted);
}

@media (max-width: 575.98px) {
    .thank-you-card {
        padding: 2rem 1.25rem 1.75rem;
    }

    .status-logo {
        width: min(100%, 260px);
    }

    .thank-you-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
