﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
    --primary-navy: #002C6C;
    --primary-blue: #0052CC;
    --primary-light-blue: #0A66C2;
    --accent-blue: #0070F3;
    --soft-blue-bg: #EEF4FC;
    --border-blue: #C8DCFC;
    --bg-light: #F4F7FB;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --success-green: #10B981;
    --success-light: #E6F9F0;
    --warning-orange: #F59E0B;
    --warning-light: #FEF3C7;
    --danger-red: #EF4444;
    --danger-light: #FEE2E2;
    --coral-badge: #FFF1EE;
    --coral-text: #E04826;
    --purple-badge: #8B5CF6;
    --purple-light: #F3E8FF;
    --sidebar-width: 250px;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 600;
}

/* Navbar */
.main-navbar {
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    height: 70px;
}

.gs1-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gs1-logo-text {
    border-left: 1.5px solid #CBD5E1;
    padding-left: 12px;
    font-size: 0.82rem;
    line-height: 1.25;
    color: #64748B;
}

.nav-link-custom {
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    padding: 8px 14px !important;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

    .nav-link-custom:hover, .nav-link-custom.active {
        color: var(--primary-navy);
        font-weight: 600;
    }

        .nav-link-custom.active::after {
            content: '';
            position: absolute;
            bottom: -16px;
            left: 14px;
            right: 14px;
            height: 3px;
            background: var(--primary-navy);
            border-radius: 2px;
        }

.btn-staff {
    border: 1.5px solid #002C6C;
    color: #002C6C;
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-staff:hover {
        background: #002C6C;
        color: #ffffff;
    }

/* Hero Section */
.hero-wrapper {
    position: relative;
    min-height: calc(100vh - 130px);
    background: linear-gradient(135deg, #F0F6FF 0%, #E8F1FC 40%, #FFFFFF 100%);
    overflow: hidden;
    padding: 40px 0 20px 0;
}

.hero-background-art {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.85;
    background-image: radial-gradient(circle at 75% 30%, rgba(200, 225, 255, 0.4) 0%, transparent 40%), radial-gradient(circle at 20% 80%, rgba(220, 235, 255, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-bottom-illustration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='%23E1EEFA' fill-opacity='0.4' d='M0,192L48,181.3C96,171,192,149,288,154.7C384,160,480,192,576,197.3C672,203,768,181,864,165.3C960,149,1056,139,1152,149.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    color: #64748B;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-title-th {
    color: var(--primary-navy);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

.hero-title-en {
    color: #1E3A8A;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: #475569;
    font-size: 1.15rem;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: #334155;
    font-size: 1.05rem;
    font-weight: 500;
}

.info-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EAF2FC;
    color: #0052CC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.badge-coral-pill {
    background-color: #FFEAE4;
    color: #D84227;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-seat-pill {
    background-color: transparent;
    color: #1E293B;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .badge-seat-pill .seat-num {
        color: #D84227;
        font-weight: 700;
    }

/* Pillar badges (Identify, Capture, Share, Use) */
.pillar-row {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px dashed #CBD5E1;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #64748B;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.pillar-icon {
    font-size: 1.4rem;
    color: #94A3B8;
}

/* Card Selection on Right */
.selection-card-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 12px 35px rgba(0, 44, 108, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
}

.selection-card-header {
    text-align: center;
    margin-bottom: 24px;
}

    .selection-card-header h3 {
        font-size: 1.55rem;
        color: #0F172A;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .selection-card-header p {
        color: #64748B;
        font-size: 0.95rem;
        margin: 0;
    }

.type-card-option {
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: block;
}

    .type-card-option.primary-option {
        background: #F0F6FF;
        border: 2px solid #2563EB;
    }

    .type-card-option.secondary-option {
        background: #ffffff;
        border: 1px solid #E2E8F0;
    }

        .type-card-option.secondary-option:hover {
            border-color: #CBD5E1;
            background: #F8FAFC;
        }

.type-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.type-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

    .type-avatar.blue-bg {
        background: #002C6C;
        color: #ffffff;
    }

    .type-avatar.grey-bg {
        background: #E2E8F0;
        color: #64748B;
    }

.type-info {
    flex-grow: 1;
}

.type-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.type-desc {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
}

.type-arrow {
    color: #94A3B8;
    font-size: 1.2rem;
}

.btn-type-submit {
    width: 100%;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s;
    display: block;
}

.btn-type-primary {
    background: #002C6C;
    color: #ffffff;
    border: none;
}

    .btn-type-primary:hover {
        background: #001B44;
        color: #ffffff;
    }

.btn-type-secondary {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #CBD5E1;
}

    .btn-type-secondary:hover {
        background: #F1F5F9;
        border-color: #94A3B8;
    }

.privacy-notice {
    font-size: 0.82rem;
    color: #64748B;
    text-align: center;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Bottom feature strip */
.bottom-feature-strip {
    background: #ffffff;
    border-top: 1px solid #E2E8F0;
    padding: 18px 0;
    font-size: 0.95rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1E293B;
    font-weight: 600;
}

.feature-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #EBF3FF;
    color: #0052CC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Multi-step Wizard */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 30px 0 35px 0;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 140px;
}

.wizard-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    background: #F1F5F9;
    color: #94A3B8;
    border: 2px solid #CBD5E1;
    transition: all 0.3s;
}

.wizard-step-item.completed .wizard-circle {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

.wizard-step-item.active .wizard-circle {
    background: #0052CC;
    color: #ffffff;
    border-color: #0052CC;
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.15);
}

.wizard-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748B;
}

.wizard-step-item.active .wizard-label {
    color: #002C6C;
    font-weight: 700;
}

.wizard-line {
    flex-grow: 1;
    max-width: 100px;
    height: 2px;
    border-top: 2px dashed #CBD5E1;
    position: relative;
    top: -15px;
    z-index: 1;
}

    .wizard-line.active {
        border-top: 2px dashed #0052CC;
    }

/* App Cards */
.app-card {
    background: #ffffff;
    border-radius: 16px;
    /*border: 1px solid #E2E8F0;*/
    margin-bottom: 20px;
    /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);*/
    padding: 10px;
}

@media (max-width: 767.98px) {

    .app-card {
        padding: 5px;
    }
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.app-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.btn-card-edit {
    border: 1px solid #CBD5E1;
    color: #0052CC;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-card-edit:hover {
        background: #F0F6FF;
        border-color: #0052CC;
    }

/* Attendee Row */
.attendee-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #E2E8F0;
}

.attendee-avatar-initials {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #DBEAFE;
    color: #1D4ED8;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.attendee-info {
    flex-grow: 1;
    margin-left: 16px;
}

.attendee-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0F172A;
    margin-bottom: 2px;
}

.attendee-role {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 2px;
}

.attendee-email {
    font-size: 0.82rem;
    color: #94A3B8;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-badge-green {
    background: #E8F7F0;
    color: #059669;
    border: 1px solid #B8EAD3;
}

.tag-badge-blue {
    background: #EBF3FF;
    color: #0052CC;
    border: 1px solid #C8DCFC;
}

.tag-badge-qr {
    background: #FFFFFF;
    color: #002C6C;
    border: 1px solid #CBD5E1;
    font-family: monospace;
}

/* Summary Card Right */
.summary-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    padding: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #334155;
}

.summary-icon {
    color: #0052CC;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.summary-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 18px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-label {
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-value {
    font-weight: 600;
    color: #0F172A;
}

    .summary-value.free {
        color: #059669;
        font-weight: 700;
    }

.info-alert-box {
    background: #F0F6FF;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 10px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: #1E3A8A;
    border: 1px solid #BFDBFE;
}

.btn-confirm-submit {
    background: #0052CC;
    color: #ffffff;
    font-weight: 700;
    padding: 13px;
    border-radius: 10px;
    width: 100%;
    border: none;
    font-size: 1.05rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-confirm-submit:hover {
        background: #002C6C;
        color: #ffffff;
    }

.btn-back-outline {
    background: #ffffff;
    color: #0052CC;
    border: 1.5px solid #CBD5E1;
    font-weight: 700;
    padding: 13px;
    border-radius: 10px;
    width: 100%;
    font-size: 1.05rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-back-outline:hover {
        background: #F8FAFC;
        border-color: #0052CC;
    }

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    padding-inline: clamp(16px, 2.5vw, 48px);
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 18px 20px;
    border-bottom: 1px solid #F1F5F9;
}

.sidebar-menu {
    padding: 16px 12px;
    flex-grow: 1;
}

.sidebar-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94A3B8;
    padding: 8px 12px;
    margin-top: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 4px;
    transition: all 0.2s;
}

    .sidebar-link:hover {
        background: #F1F5F9;
        color: #002C6C;
    }

    .sidebar-link.active {
        background: #0052CC;
        color: #ffffff;
        font-weight: 600;
    }

.sidebar-user-footer {
    padding: 14px 16px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAFCFF;
}

.admin-main-content {
    flex-grow: 1;
    background: #F4F7FB;
    overflow-y: auto;
    min-width: 0;
}

.admin-top-nav {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.admin-search-input {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 14px 8px 36px;
    font-size: 0.88rem;
    width: 320px;
}

/* Stat KPI Cards */
.stat-kpi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    position: relative;
    transition: transform 0.2s;
}

    .stat-kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: #0F172A;
    margin: 2px 0 4px 0;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 500;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .stat-trend.up {
        color: #10B981;
    }

    .stat-trend.down {
        color: #EF4444;
    }

.stat-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Event Creation Tabs */
.event-steps-tab {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    border: 1px solid #E2E8F0;
    margin-bottom: 24px;
}

.event-tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #64748B;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

    .event-tab-item.active {
        background: #0052CC;
        color: #ffffff;
    }

.event-tab-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.event-tab-item.active .event-tab-num {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================
   EVENT STEPS TAB - RESPONSIVE
========================================== */

/* ป้องกัน Container ล้น */
.event-steps-tab {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.event-tab-item {
    min-width: 0;
    text-align: center;
}

/* ==========================================
   TABLET (768px - 991px)
========================================== */
@media (min-width: 768px) and (max-width: 991.98px) {

    .event-steps-tab {
        gap: 5px;
        padding: 5px;
    }

    .event-tab-item {
        padding: 10px 6px;
        font-size: clamp(.75rem, 1.2vw, .875rem);
        gap: 5px;
    }

    .event-tab-num {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        font-size: .75rem;
    }
}

/* ==========================================
   MOBILE (ไม่เกิน 767px)
========================================== */
@media (max-width: 767.98px) {

    .event-steps-tab {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        margin-bottom: 16px;
        border-radius: 12px;
        overflow: hidden;
    }

    .event-tab-item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
        gap: 6px;
        padding: 11px 6px;
        font-size: clamp(.75rem, 2.8vw, .875rem);
        line-height: 1.4;
        text-align: center;
        border: 1px solid #E2E8F0;
        border-radius: 8px;
        background: #F8FAFC;
        overflow-wrap: anywhere;
    }

        .event-tab-item.active {
            background: #0052CC;
            border-color: #0052CC;
            color: #ffffff;
            box-shadow: 0 3px 8px rgba(0, 82, 204, 0.18);
        }

    .event-tab-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        font-size: .75rem;
    }

    /* เมนูที่ 5 เต็มความกว้าง */
    .event-tab-item:last-child {
        grid-column: 1 / -1;
    }
}

/* ==========================================
   SMALL MOBILE (ไม่เกิน 375px)
========================================== */
@media (max-width: 375px) {

    .event-steps-tab {
        gap: 6px;
        padding: 7px;
    }

    .event-tab-item {
        font-size: .75rem;
        padding: 10px 4px;
        gap: 4px;
    }

    .event-tab-num {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        font-size: .7rem;
    }
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #CBD5E1;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s;
}

    .upload-dropzone:hover {
        border-color: #0052CC;
        background: #F0F6FF;
    }

    .upload-dropzone i {
        font-size: 2.5rem;
        color: #94A3B8;
        /*margin-bottom: 12px;*/
    }

/* Status Radio Pill */
.status-pill-group {
    display: flex;
    gap: 10px;
    background: #F8FAFC;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

.status-pill-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    color: #64748B;
    border: none;
    background: transparent;
    transition: all 0.2s;
}

    .status-pill-btn.active {
        background: #ffffff;
        color: #002C6C;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

/* Sticky Bottom Bar */
.sticky-event-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #E2E8F0;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    z-index: 100;
}

/* Top Demo Switcher */
.demo-switcher-bar {
    background: #001B44;
    color: #ffffff;
    font-size: 0.82rem;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1100;
}

    .demo-switcher-bar a {
        color: #E2E8F0;
        text-decoration: none;
        padding: 3px 9px;
        border-radius: 5px;
        font-size: 0.78rem;
        background: rgba(255, 255, 255, 0.12);
        margin-left: 4px;
        transition: all 0.2s;
        display: inline-block;
    }

        .demo-switcher-bar a:hover, .demo-switcher-bar a.current {
            background: #0070F3;
            color: #ffffff;
            font-weight: 600;
        }

.event-preparation-card {
    padding: 20px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.event-preparation-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.event-preparation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #dbeafe;
    color: #0066cc;
    font-size: 28px;
}

.event-preparation-header h3 {
    margin: 0 0 5px;
    color: #002c6c;
    font-size: 19px;
    font-weight: 700;
}

.event-preparation-header p,
.event-preparation-list p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.event-preparation-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .event-preparation-list li {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px;
        border: 1px solid #dbeafe;
        border-radius: 14px;
        background: #fff;
    }

.event-preparation-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dbeafe;
    color: #0066cc;
    font-size: 20px;
    font-weight: 700;
}

.event-preparation-step-icon {
    flex-shrink: 0;
    color: #087cff;
    font-size: 26px;
}

.event-preparation-list strong {
    display: block;
    margin-bottom: 3px;
    color: #002c6c;
    font-size: 15px;
}



/* Discovery Channel */
#DiscoveryChannelOtherWrapper {
    padding: 14px 16px;
    background: #f8fbff;
    border: 1px solid #dce8f5;
    border-left: 3px solid #0052CC;
    border-radius: 10px;
    animation: discoveryFadeIn 0.2s ease;
}

    #DiscoveryChannelOtherWrapper .form-label {
        color: #003b71;
        font-size: clamp(.8125rem, 1.2vw, .9375rem);
        font-weight: 600;
    }

#DiscoveryChannelOther {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
}

    #DiscoveryChannelOther:focus {
        border-color: #0052CC;
        box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
    }

@keyframes discoveryFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 767.98px) {

    #DiscoveryChannel,
    #DiscoveryChannelOther {
        width: 100%;
        font-size: 16px;
        min-height: 46px;
    }

    #DiscoveryChannelOtherWrapper {
        padding: 12px;
        margin-top: 10px;
    }
}


.event-title {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Desktop ≥ 992px */
@media (min-width: 992px) {
    .event-title {
        font-size: 2rem;
    }
}

/* จอใหญ่ ≥ 1200px */
@media (min-width: 1200px) {
    .event-title {
        font-size: 2.5rem;
    }
}