/* ---------- RESET & BASE ---------- */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Prompt', sans-serif;
    background: #000; /* fallback */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/there-are-two-people-running-road-with-sky-background.jpg');
    background-size: cover;
    background-position: center center; /* เริ่มกลางภาพ */
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
    will-change: background-position;
}

body::before {
    background-position: center calc(var(--bg-pos, 50%));
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* ---------- MAIN CONTAINER ---------- */
.main-container,
.left-side,
.right-side,
.bank-info,
.shirt-preview,
.contact-card {
    transition: box-shadow 0.3s ease;
}

.main-container:hover,
.left-side:hover,
.right-side:hover,
.bank-info:hover,
.shirt-preview:hover,
.contact-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.main-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(230,240,255,0.95));
    border-radius: 20px;
    animation: fadeIn 1s ease-in-out;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,50,0.2);
}

.left-side {
    background: linear-gradient(160deg, #1d64b4, #3b82f6, #86efac);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.left-side img {
    width: 100px;
    margin-bottom: 10px;
}

.left-side h3 {
    font-weight: 700;
    margin: 10px 0 5px;
    text-align: center;
}

.tagline {
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 10px;
}

#countdown {
    font-size: 1.2rem;
    margin-top: 10px;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.right-side {
    padding: 30px;
}

.btn-success {
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 50px;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    border: none;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-success:hover:not(:disabled) {
    transform: scale(1.05);
}

.bank-info {
    background: linear-gradient(135deg, #174c8f, #1d64b4);
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.shirt-preview {
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.shirt-preview:hover {
    transform: scale(1.05);
}

.recaptcha-center {
    display: flex;
    justify-content: center;
}

.contact-card {
    background-color: rgba(29,100,180,0.1);
    width: 100%;
    font-size: 0.95rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-card a {
    color: #0d6efd;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .flex-md-row {
        flex-direction: column !important;
    }

    .left-side,
    .right-side {
        width: 100%;
    }
}
