/* Thanksgiving Holiday Popup Modal - Logan Airport Car Theme */
.tg-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(13, 65, 98, 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0.38s ease;
    font-family: "Outfit", sans-serif;
}

.tg-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.tg-popup-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 24px 64px rgba(13, 65, 98, 0.35), 0 0 0 1px rgba(6, 94, 153, 0.2);
    transform: translateY(24px) scale(0.95);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    font-family: "Outfit", sans-serif;
}

.tg-popup-overlay.is-visible .tg-popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Top 3-color accent bar (Brand Blue + Thanksgiving Gold/Amber) */
.tg-top-bar {
    display: flex;
    height: 5px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.tg-top-bar span {
    flex: 1;
    display: block;
    position: relative;
    overflow: hidden;
}

.tg-top-bar span:nth-child(1) { background: #065E99; }
.tg-top-bar span:nth-child(2) { background: #d97218; }
.tg-top-bar span:nth-child(3) { background: #c59b38; }

.tg-top-bar span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-100%);
    animation: tgBarShimmer 3.2s infinite ease-in-out;
}

.tg-top-bar span:nth-child(2)::after { animation-delay: 0.4s; }
.tg-top-bar span:nth-child(3)::after { animation-delay: 0.8s; }

/* Hero / Brand Navy-Blue Top Section */
.tg-hero {
    position: relative;
    background: linear-gradient(180deg, #065E99 0%, #0D4162 100%);
    padding: 18px 22px 24px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

/* Controls (Pause & Close) */
.tg-controls {
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -10px;
}

.tg-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.tg-pause-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
}

.tg-pause-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.06);
}

.tg-close-btn {
    background: rgba(13, 65, 98, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.tg-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: scale(1.06) rotate(90deg);
}

/* Floating Autumn Leaves & Stars */
.tg-ambient-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.tg-particle {
    position: absolute;
    opacity: 0.85;
    will-change: transform, opacity;
}

.tg-leaf-1 {
    top: 18%;
    left: 14%;
    animation: tgFloatLeaf 5.5s ease-in-out infinite;
}

.tg-leaf-2 {
    top: 32%;
    right: 13%;
    animation: tgFloatLeafAlt 6.2s ease-in-out infinite 0.7s;
}

.tg-star-1 {
    top: 8%;
    left: 33%;
    animation: tgTwinkle 3.4s ease-in-out infinite;
}

.tg-star-2 {
    top: 10%;
    right: 26%;
    animation: tgTwinkle 4s ease-in-out infinite 1.2s;
}

.tg-leaf-3 {
    top: 48%;
    left: 8%;
    opacity: 0.6;
    animation: tgFloatLeaf 7s ease-in-out infinite 1.5s;
}

/* Turkey Illustration Stage */
.tg-illustration-wrap {
    position: relative;
    z-index: 3;
    margin: 0 auto 12px;
    max-width: 300px;
}

.tg-turkey-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.tg-turkey-body {
    transform-origin: 150px 92px;
    animation: tgTurkeyBob 3.2s ease-in-out infinite;
}

.tg-feather-fan {
    transform-origin: 150px 85px;
    animation: tgFeatherSway 4s ease-in-out infinite;
}

.tg-wheat-left {
    transform-origin: 96px 104px;
    animation: tgWheatLeft 4.2s ease-in-out infinite;
}

.tg-wheat-right {
    transform-origin: 204px 104px;
    animation: tgWheatRight 4.2s ease-in-out infinite;
}

/* Hero Badge & Headings */
.tg-badge {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(13, 65, 98, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #f3d285;
    font-family: "Outfit", sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.tg-title {
    position: relative;
    z-index: 4;
    font-family: "Outfit", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.tg-subtitle {
    position: relative;
    z-index: 4;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #EDEDFF;
    margin: 0;
}

/* Bottom Light Section */
.tg-body {
    padding: 20px 22px 18px;
    background: #f8f9fa;
    text-align: center;
    font-family: "Outfit", sans-serif;
}

.tg-offer-card {
    background: #ffffff;
    border: 1px solid #E6E6E6;
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 4px 20px rgba(13, 65, 98, 0.06);
    margin-bottom: 16px;
}

.tg-eyebrow {
    font-family: "Outfit", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #065E99;
    margin: 0 0 8px;
}

.tg-card-title {
    font-family: "Outfit", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #333333;
    margin: 0 0 10px;
}

.tg-card-text {
    font-family: "Outfit", sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    color: #555555;
    margin: 0;
}

.tg-card-text strong {
    color: #0D4162;
    font-weight: 600;
}

/* Action Buttons (matching .main-btn gradient) */
.tg-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    line-height: 1.25;
}

.tg-btn-primary {
    background: linear-gradient(0deg, #0D4162 1.23%, #065E99 100.13%);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(6, 94, 153, 0.28);
}

.tg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(6, 94, 153, 0.36);
    opacity: 0.95;
}

.tg-btn-primary .tg-arrow {
    transition: transform 0.25s ease;
    display: inline-block;
}

.tg-btn-primary:hover .tg-arrow {
    transform: translateX(3px);
}

.tg-btn-secondary {
    background: #ffffff;
    color: #0D4162 !important;
    border: 1.5px solid #0D4162;
    box-shadow: 0 4px 12px rgba(13, 65, 98, 0.08);
}

.tg-btn-secondary:hover {
    background: #0D4162;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(13, 65, 98, 0.24);
}

.tg-btn-secondary svg {
    color: currentColor;
    flex-shrink: 0;
}

/* Continue link */
.tg-continue-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    color: #555555;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tg-continue-btn:hover {
    color: #0D4162;
}

/* Paused state */
.tg-popup-card.is-paused *,
.tg-popup-card.is-paused *::before,
.tg-popup-card.is-paused *::after {
    animation-play-state: paused !important;
}

/* Keyframes */
@keyframes tgBarShimmer {
    0% { transform: translateX(-120%); }
    50%, 100% { transform: translateX(120%); }
}

@keyframes tgFloatLeaf {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(6px, 10px) rotate(14deg); }
}

@keyframes tgFloatLeafAlt {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-7px, 9px) rotate(-16deg); }
}

@keyframes tgTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
    50% { opacity: 0.95; transform: scale(1.15) rotate(15deg); }
}

@keyframes tgTurkeyBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes tgFeatherSway {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.03) rotate(1.2deg); }
}

@keyframes tgWheatLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-3.5deg); }
}

@keyframes tgWheatRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3.5deg); }
}

@media (max-width: 480px) {
    .tg-title { font-size: 22px; }
    .tg-card-title { font-size: 17px; }
    .tg-actions { grid-template-columns: 1fr; }
    .tg-hero { padding: 14px 16px 20px; }
    .tg-body { padding: 16px 16px 14px; }
}
