/* ================================
   Brand Color Variables
================================ */
:root {
    --brand-purple: #4B007D;
    --brand-saffron: #F5A623;
    --brand-dark: #2A2A2A;
    --brand-light: #FFFFFF;
}

/* ================================
   Global Styles
================================ */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.Salsa {
    font-family: Salsa;
}

.Kanit {
    font-family: Kanit;
}

.font {
    font-size: 1.5rem;
}

.welcome-message {
    color: var(--brand-purple);
}

/* ================================
   Header
================================ */
.bg-primary {
    background-color: var(--brand-purple) !important;
}

header a {
    color: var(--brand-light);
    text-decoration: none;
}

header a:hover {
    color: var(--brand-saffron);
}

/* ================================
   Buttons
================================ */
.btn-primary {
    background-color: var(--brand-purple) !important;
    border-color: var(--brand-purple) !important;
}

.btn-primary:hover {
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.4);
}

/* ================================
   Animations
================================ */
.fade-up {
    animation: fadeUp 0.8s ease-in-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================================
   Flash Message (Brand Themed)
================================ */
.flash-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(135deg, #f7f0ff, #fff6e5);
    padding: 15px;
}

.flash-msg {
    font-size: 2rem;
    font-weight: bold;
    color: var(--brand-purple);
    padding: 22px;
    border-radius: 16px;
    background: #fffaf0;
    border: 3px solid var(--brand-purple);
    animation: brandGlow 1.6s infinite ease-in-out;
}

/* Brand glow animation */
@keyframes brandGlow {
    0% {
        box-shadow:
            0 0 8px rgba(75, 0, 125, 0.4),
            0 0 14px rgba(245, 166, 35, 0.3);
        border-color: var(--brand-purple);
    }
    50% {
        box-shadow:
            0 0 22px rgba(75, 0, 125, 0.8),
            0 0 38px rgba(245, 166, 35, 0.7);
        border-color: var(--brand-saffron);
    }
    100% {
        box-shadow:
            0 0 8px rgba(75, 0, 125, 0.4),
            0 0 14px rgba(245, 166, 35, 0.3);
        border-color: var(--brand-purple);
    }
}

.msg-image {
    margin-top: 30px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


/* Mobile adjustment */
@media (max-width: 576px) {
    .flash-msg {
        font-size: 1.4rem;
        padding: 16px;
    }
}

/* ================================
   Footer
================================ */
footer {
    background-color: var(--brand-purple) !important;
    color: var(--brand-light);
}

footer h5,
footer h4 {
    color: var(--brand-saffron);
}

footer a {
    color: var(--brand-light);
    text-decoration: none;
}

footer a:hover {
    color: var(--brand-saffron);
    text-decoration: underline;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ================================
   Contact Us Page
================================ */
.contact-card {
    border: 10px solid #7a7a7a;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-section h6 {
    color: var(--brand-purple);
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-section p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.contact-section a {
    color: var(--brand-purple);
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* ================================
   Utility
================================ */
.nav-link-custom-padding {
    padding-left: 30px !important;
}

/* ================================
   Language Toggle UX
================================ */
.btn-outline-primary {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
}

.btn-outline-primary:hover {
    background-color: var(--brand-purple);
    color: #ffffff;
    border-color: var(--brand-purple);
}

/* ================================
   Agreement Focus Area
================================ */
.agree-wrapper {
    border: 2px dashed var(--brand-saffron);
    border-radius: 14px;
    padding: 20px;
    background: #fffdf7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.agree-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-size: 1.35rem; /* H4 feel */
    font-weight: 600;
    color: var(--brand-purple);
}

.agree-checkbox {
    width: 26px;
    height: 26px;
    accent-color: var(--brand-purple);
    cursor: pointer;
}

.agree-error {
    display: none;
    margin-top: 12px;
    color: #b71c1c;
    font-weight: 600;
}
