/* Global Announcement Bar */
.rslgm-global-event-bar {
    background: linear-gradient(90deg, #14532d 0%, #166534 50%, #047857 100%);
    color: #ffffff;
    padding: 10px 15px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    position: relative;
    z-index: 9999;
}
.event-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}
.event-bar-tag {
    background: #f59e0b;
    color: #0f172a;
    font-weight: 800;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.event-bar-text {
    color: #f0fdf4;
}
.event-bar-link {
    background: #ffffff;
    color: #166534 !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}
.event-bar-link:hover {
    transform: scale(1.05);
}

.rslgm-event-container {
    max-width: 980px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1e293b;
}

/* Event Hero Card */
.rslgm-event-hero {
    background: linear-gradient(135deg, #166534 0%, #15803d 50%, #047857 100%);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(22, 101, 52, 0.25);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rslgm-event-hero::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.25;
    color: #ffffff;
}
.hero-desc {
    font-size: 15px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 20px auto;
    color: #ecfdf5;
}
.hero-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
}

/* Step Headings */
.rslgm-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #166534;
    color: #ffffff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(22, 101, 52, 0.3);
}
.rslgm-step-heading h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    color: #0f172a;
    font-weight: 800;
}
.rslgm-step-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Category Grid */
.rslgm-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.rslgm-cat-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
}
.rslgm-cat-card:hover:not(.cat-disabled) {
    border-color: #166534;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(22, 101, 52, 0.15);
}
.rslgm-cat-card.cat-selected {
    border-color: #166534;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.2);
}
.rslgm-cat-card.cat-disabled {
    opacity: 0.65;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.cat-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.cat-icon {
    font-size: 32px;
    line-height: 1;
}
.cat-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.cat-session {
    font-size: 12px;
    color: #166534;
    font-weight: 600;
}
.cat-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Quota Progress */
.cat-quota-box {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #f1f5f9;
}
.cat-quota-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}
.cat-quota-labels strong {
    color: #0f172a;
}
.rslgm-prog-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.rslgm-prog-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}
.prog-success { background: #10b981; }
.prog-warning { background: #f59e0b; }
.prog-danger  { background: #ef4444; }

/* Card Footer */
.cat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cat-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.badge-ready { background: #dcfce7; color: #15803d; }
.badge-full  { background: #fee2e2; color: #b91c1c; }

.btn-select-cat {
    background: #166534;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-select-cat:hover {
    background: #14532d;
}

/* Form Box */
.rslgm-form-box {
    background: #ffffff;
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(22, 101, 52, 0.08);
}
.selected-cat-info {
    background: #f0fdf4;
    color: #166534;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.rslgm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}
.rslgm-field.full-width {
    grid-column: 1 / -1;
}
.rslgm-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.rslgm-field .req {
    color: #ef4444;
}
.rslgm-field input,
.rslgm-field select,
.rslgm-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.rslgm-field input:focus,
.rslgm-field select:focus,
.rslgm-field textarea:focus {
    border-color: #166534;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}
.rslgm-field small {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.rslgm-terms-check {
    margin: 20px 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}
.rslgm-terms-check input {
    margin-right: 8px;
    accent-color: #166534;
}

.rslgm-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.rslgm-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.btn-submit {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
    transition: all 0.2s;
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.4);
}

/* ============================================================
   E-Tiket Card Design
   ============================================================ */
.rslgm-eticket-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin: 25px 0;
    position: relative;
}
.ticket-header {
    background: #0f172a;
    color: #ffffff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.ticket-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ticket-logo-mark {
    font-size: 30px;
}
.ticket-brand h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}
.ticket-brand small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
}

.ticket-status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.ticket-status-pill.badge-registered { background: #fef3c7; color: #92400e; }
.ticket-status-pill.badge-verified   { background: #dcfce7; color: #166534; }
.ticket-status-pill.badge-attended   { background: #ede9fe; color: #5b21b6; }
.ticket-status-pill.badge-cancelled  { background: #fee2e2; color: #991b1b; }

/* Progress Tracker */
.ticket-progress-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: #f8fafc;
    border-bottom: 1px dashed #cbd5e1;
}
.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    flex: 1;
}
.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.tracker-step.step-active {
    color: #166534;
}
.tracker-step.step-active .step-circle {
    background: #166534;
    color: #ffffff;
}
.tracker-line {
    height: 3px;
    background: #e2e8f0;
    flex: 1;
    margin: 0 10px 20px 10px;
}
.tracker-line.line-active {
    background: #166534;
}

/* Ticket Body */
.ticket-body {
    display: flex;
    flex-wrap: wrap;
    padding: 25px;
    gap: 25px;
}
.ticket-main-info {
    flex: 2;
    min-width: 280px;
}
.ticket-meta-item label,
.ticket-grid-meta label,
.ticket-code-stub label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.ticket-meta-item h3 {
    margin: 0 0 18px 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 800;
}
.ticket-grid-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 16px;
}
.ticket-grid-meta strong {
    font-size: 15px;
    color: #1e293b;
}
.ticket-terms-note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #92400e;
    margin-top: 15px;
}

/* Ticket Code Stub */
.ticket-code-stub {
    flex: 1;
    min-width: 220px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ticket-code-box {
    font-size: 22px;
    font-weight: 800;
    font-family: monospace;
    letter-spacing: 1px;
    color: #166534;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 8px 0 14px 0;
}
.barcode-visual {
    width: 100%;
}
.barcode-lines {
    height: 45px;
    background: repeating-linear-gradient(90deg, #0f172a, #0f172a 3px, transparent 3px, transparent 6px, #0f172a 6px, #0f172a 10px, transparent 10px, transparent 13px);
    margin-bottom: 8px;
    border-radius: 4px;
}
.barcode-visual small {
    font-size: 11px;
    color: #64748b;
    display: block;
}

/* Ticket Footer */
.ticket-footer {
    background: #f1f5f9;
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-print-ticket {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.btn-wa-confirm {
    background: #15803d;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

/* Tracking Page */
.rslgm-tracking-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
.rslgm-tracking-hero h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.rslgm-tracking-hero p {
    color: #64748b;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 25px auto;
}
.rslgm-tracking-form {
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    gap: 10px;
}
.rslgm-tracking-form input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
}
.rslgm-tracking-form input:focus {
    border-color: #166534;
    outline: none;
}
.btn-track {
    background: #166534;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .rslgm-eticket-card,
    .rslgm-eticket-card * {
        visibility: visible;
    }
    .rslgm-eticket-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 2px solid #000;
        box-shadow: none;
    }
    .no-print {
        display: none !important;
    }
}
