/* =========================================================
   LVS Excellency Ganesha Festival 2026
   Clean festive UI
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff8e8;
    color: #222;
}

header {
    display: block;
    background: linear-gradient(135deg, #ff6a00, #ff9800);
    color: #fff;
    text-align: center;
    padding: 22px 20px 26px;
}

header h1 {
    margin: 0 0 4px;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
}

header p {
    margin: 0;
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 500;
    opacity: 0.95;
}

main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* =========================================================
   HERO
   ========================================================= */

#hero {
    text-align: center;
    padding: 8px 0 34px;
}

.hero-tagline {
    margin: 0 0 34px;
    color: #ff9800;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
}

.hero-badge {
    width: min(220px, 42vw);
    margin: 0 auto 26px;
}

.hero-badge img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(72, 55, 25, 0.18));
}

.hero-visual-card {
    width: min(100%, 900px);
    margin: 0 auto 38px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(72, 55, 25, 0.14);
}

.hero-logo-panel,
.hero-ganesha-panel {
    min-height: 310px;
    border-radius: 28px;
    background: linear-gradient(145deg, #fffdf8, #fff1d8);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65),
        0 8px 18px rgba(75, 55, 25, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.society-logo,
.ganesha-image {
    width: 78%;
    height: 78%;
    object-fit: contain;
    display: block;
}

.society-logo {
    max-width: 390px;
    max-height: 250px;
}

.ganesha-image {
    max-width: 390px;
    max-height: 270px;
}

#hero h2 {
    margin: 4px 0 18px;
    color: #d85b00;
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.1;
    font-weight: 800;
}

#hero h3 {
    margin: 0;
    color: #20252b;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.18;
    font-weight: 800;
}

.hero-description {
    margin: 20px auto 0;
    max-width: 760px;
    color: #555;
    font-size: 18px;
    line-height: 1.6;
}

/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown-card {
    width: min(100%, 620px);
    margin: 30px auto 0;
    padding: 22px 20px 26px;
    background: linear-gradient(135deg, #ff6a00, #ff9800);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(216, 91, 0, 0.28);
}

.countdown-label {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.countdown-unit {
    min-width: 74px;
    padding: 12px 10px 10px;
    background: #fffdf8;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(72, 55, 25, 0.16);
}

.countdown-unit span {
    display: block;
    color: #d85b00;
    font-size: clamp(26px, 5vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit small {
    display: block;
    margin-top: 2px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.countdown-message {
    margin: 16px 0 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 520px) {

    .countdown-card {
        border-radius: 20px;
        padding: 18px 14px 22px;
    }

    .countdown-unit {
        min-width: 62px;
        padding: 10px 6px 8px;
    }
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */

#features {
    padding: 28px 0 20px;
}

.section-title {
    margin: 0 0 22px;
    text-align: center;
    color: #d85b00;
    font-size: 28px;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    min-height: 145px;
    padding: 22px 18px;
    border-radius: 20px;
    background: #fffdf8;
    border: 1px solid #f2dfbd;
    box-shadow: 0 8px 20px rgba(72, 55, 25, 0.08);
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(72, 55, 25, 0.13);
}

.card-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.feature-card h3 {
    margin: 5px 0 7px;
    color: #d85b00;
    font-size: 20px;
}

.feature-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* =========================================================
   CHAT
   ========================================================= */

#chat-section {
    margin-top: 34px;
    padding: 26px 0 10px;
}

.chat-cta-button {
    width: auto;
    margin: 0 auto 20px;
    display: block;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#chat-container {
    min-height: 180px;
    max-height: 620px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(72, 55, 25, 0.08);
}

.bot-message {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #ff9800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message {
    flex: 1;
    padding: 18px 20px;
    background: #fff8e8;
    border-radius: 0 18px 18px 18px;
    line-height: 1.6;
}

#chat-input-area {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

#user-input {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 16px;
    border: 2px solid #ddd;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
}

#user-input:focus {
    border-color: #ff9800;
}

#send-btn {
    min-width: 100px;
    height: 56px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: #ff9800;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#send-btn:hover {
    background: #ed8d00;
}

/* =========================================================
   MODALS
   ========================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: min(100%, 520px);
    margin: 40px auto;
    padding: 28px;
    background: #fffdf8;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-content h2 {
    margin: 0 0 22px;
    color: #d85b00;
}

.modal-content label {
    display: block;
    margin: 13px 0 6px;
    font-weight: 600;
}

.modal-content input,
.modal-content select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background: white;
}

.modal-content button {
    width: 100%;
    margin-top: 20px;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #ff9800;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.schedule-modal-body {
    max-height: 420px;
    overflow-y: auto;
    margin: 6px 0 6px;
    padding: 14px 16px;
    background: #fff8e8;
    border-radius: 14px;
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: #333;
}

.checkbox-group,
.cultural-checkbox-group {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-item,
.cultural-checkbox-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: #fff8e8;
    font-weight: 400 !important;
}

.checkbox-item input,
.cultural-checkbox-item input {
    width: auto;
    min-height: auto;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 26px 20px 40px;
    text-align: center;
    color: #777;
    font-size: 13px;
}

footer p {
    margin: 5px 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
    main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-visual-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 14px;
    }

    .hero-logo-panel,
    .hero-ganesha-panel {
        min-height: 250px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    #hero {
        padding-top: 4px;
    }

    .hero-tagline {
        margin-bottom: 22px;
        font-size: 28px;
    }

    .hero-badge {
        width: 150px;
        margin-bottom: 18px;
    }

    .hero-visual-card {
        border-radius: 22px;
    }

    .hero-logo-panel,
    .hero-ganesha-panel {
        min-height: 205px;
        border-radius: 20px;
    }

    #hero h2 {
        font-size: 32px;
    }

    #hero h3 {
        font-size: 25px;
    }

    .hero-description {
        font-size: 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    #chat-input-area {
        flex-direction: column;
    }

    #send-btn {
        width: 100%;
    }

    .bot-message {
        gap: 9px;
    }

    .avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}
/* =========================================================
   Announcements Banner
   ========================================================= */

#announcements-banner {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: #444;
    padding: 10px 0;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-right: 24px;
    padding: 4px 14px;
    border-radius: 14px;
}

/* Per-item colour based on the announcement's own type,
   instead of one colour for the whole banner. */
.ticker-item.type-info {
    background: #2e7d32;
}

.ticker-item.type-reminder {
    background: #1976d2;
}

.ticker-item.type-urgent {
    background: #d32f2f;
    animation: ticker-pulse-glow 2s ease-in-out infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* A gentle glow pulse (not a hard on/off blink - easier on
   the eyes and avoids any photosensitivity concerns) used
   only when at least one active announcement is urgent. */
@keyframes ticker-pulse-glow {
    0%, 100% {
        box-shadow: inset 0 0 0px rgba(255,255,255,0);
    }
    50% {
        box-shadow: inset 0 0 30px rgba(255,255,255,0.35);
    }
}

/* =========================================================
   Registration Thank You Popup
   ========================================================= */

.thank-you-content {
    text-align: center;
    max-width: 380px;
}

.thank-you-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.35);
}

.thank-you-content h2 {
    margin-bottom: 10px;
}

.thank-you-message {
    font-size: 16px;
    color: #444;
    margin: 0 0 14px;
}

.thank-you-blessing {
    font-size: 17px;
    font-weight: bold;
    color: #d85b00;
    margin: 0 0 6px;
}

/* =========================================================
   Floating WhatsApp Share Button
   ========================================================= */

#top-icon-row {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

#top-icon-row button,
#top-icon-row a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#top-icon-row button:hover,
#top-icon-row a:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#top-icon-row svg {
    width: 20px;
    height: 20px;
    display: block;
}

#whatsapp-share-btn {
    background: #25D366;
}

#bell-notifications-btn {
    background: #ff9800;
}

#bell-notifications-btn.alerts-enabled {
    background: #4CAF50;
}

#install-app-btn {
    background: #616161;
}

#install-app-btn.app-installed {
    display: none;
}

@media (max-width: 480px) {
    #top-icon-row {
        top: 12px;
        right: 12px;
        gap: 8px;
    }
    #top-icon-row button,
    #top-icon-row a {
        width: 34px;
        height: 34px;
    }
    #top-icon-row svg {
        width: 17px;
        height: 17px;
    }
}

/* =========================================================
   Opening Mantra Tap Prompt
   ========================================================= */

#mantra-tap-prompt {
    position: fixed;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 997;
    animation: mantra-fade-in 0.4s ease;
}

#mantra-tap-btn {
    background: #d85b00;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

@keyframes mantra-fade-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}