/* ==========================================
   1. LANDING PAGE (PREMIUM DESIGN)
========================================== */
.ramwebinar-container {
    display: flex; flex-wrap: wrap; gap: 50px; max-width: 1200px; margin: 40px auto; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #1e293b;
}
.ramwebinar-content { flex: 1.2; min-width: 300px; }
.ramwebinar-content h2 { color: #2563eb; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.ramwebinar-content h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin: 0 0 20px; color: #0f172a; }
.ramwebinar-content p { font-size: 18px; color: #475569; line-height: 1.6; }
.ramwebinar-benefits { list-style: none; padding: 0; margin-top: 30px; }
.ramwebinar-benefits li { margin-bottom: 15px; font-size: 18px; display: flex; align-items: center; gap: 10px; color: #334155; }
.ramwebinar-benefits li::before { content: '✅'; font-size: 20px; }

.ramwebinar-form-box {
    flex: 1; min-width: 320px; background: #ffffff; padding: 40px; border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; position: relative; overflow: hidden;
}
.ramwebinar-form-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, #2563eb, #3b82f6); }
.ramwebinar-form-box h3 { margin: 0 0 10px; font-size: 26px; font-weight: 800; text-align: center; color: #0f172a; }
.ramwebinar-form-box > p { text-align: center; color: #64748b; margin-bottom: 30px; font-size: 15px; }

.rw-form-group { margin-bottom: 20px; }
.rw-form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #334155; }
.rw-form-group input, .rw-form-group select {
    width: 100%; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; transition: all 0.3s; background: #f8fafc;
}
.rw-form-group input:focus, .rw-form-group select:focus { border-color: #2563eb; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.rw-form-row { display: flex; gap: 15px; }
.rw-form-row .rw-form-group { flex: 1; }

#rw-submit-btn {
    width: 100%; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: none; padding: 16px; font-size: 18px; font-weight: 800;
    border-radius: 8px; cursor: pointer; transition: all 0.3s; box-shadow: 0 10px 20px rgba(37,99,235,0.2); display: flex; align-items: center; justify-content: center; gap: 10px;
}
#rw-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(37,99,235,0.3); }
#rw-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

#rw-form-message { margin-bottom: 20px; padding: 15px; border-radius: 8px; font-weight: 600; text-align: center; font-size: 15px; }
.rw-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.rw-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.rw-spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: rw-spin 1s ease-in-out infinite; }
@keyframes rw-spin { to { transform: rotate(360deg); } }

/* ==========================================
   2. WEBINAR ROOM (PREMIUM DARK MODE)
========================================== */
.rw-room-container {
    background: #020617; color: #f8fafc; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    height: 85vh; min-height: 650px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: 1px solid #1e293b;
}
.rw-room-header {
    background: #0f172a; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1e293b;
}
.rw-logo { color: #f8fafc; font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.rw-live-dot { width: 12px; height: 12px; background: #ef4444; border-radius: 50%; animation: rw-pulse 1.5s infinite; box-shadow: 0 0 10px #ef4444; }
.rw-header-right { display: flex; align-items: center; gap: 20px; }
.rw-live-badge { background: rgba(239,68,68,0.1); color: #ef4444; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 800; border: 1px solid rgba(239,68,68,0.3); letter-spacing: 1px; }
.rw-attendees { color: #94a3b8; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.rw-room-body { display: flex; flex: 1; overflow: hidden; }
.rw-video-area { flex: 1; background: #000; position: relative; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rw-video-wrapper { width: 100%; max-width: 1000px; aspect-ratio: 16/9; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,0.8); border: 1px solid #334155; }
.rw-video-wrapper iframe { width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none; }
.rw-video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; cursor: default; background: transparent; }

.rw-chat-sidebar { width: 350px; background: #0f172a; border-left: 1px solid #1e293b; display: flex; flex-direction: column; }
.rw-chat-header { padding: 20px; border-bottom: 1px solid #1e293b; font-weight: 700; font-size: 16px; color: #f8fafc; background: #020617; }
.rw-chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.rw-chat-notice { text-align: center; color: #64748b; font-size: 12px; background: #1e293b; padding: 8px; border-radius: 20px; margin-bottom: 10px; }
.rw-chat-bubble { background: #1e293b; padding: 12px 16px; border-radius: 12px; border-top-left-radius: 2px; animation: rw-fade-in 0.3s ease-out; }
.rw-chat-name { color: #3b82f6; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.rw-chat-text { color: #e2e8f0; font-size: 14px; line-height: 1.5; }
.rw-chat-input-area { padding: 20px; border-top: 1px solid #1e293b; background: #020617; position: relative; }
.rw-chat-input-area input { width: 100%; background: #1e293b; border: 1px solid #334155; color: #94a3b8; padding: 14px 45px 14px 16px; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.rw-chat-input-area button { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #475569; font-weight: bold; }

/* Premium Popup Styles */
.rw-popup-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2,6,23,0.8); z-index: 50; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.rw-popup-content { background: #ffffff; color: #0f172a; padding: 50px 40px; border-radius: 20px; max-width: 450px; text-align: center; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.5); transform: scale(0.95); animation: rw-pop 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.rw-close-popup { position: absolute; top: 15px; right: 20px; background: #f1f5f9; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer; color: #64748b; transition: 0.3s; }
.rw-close-popup:hover { background: #e2e8f0; color: #0f172a; }
.rw-popup-content h3 { font-size: 28px; font-weight: 800; margin: 0 0 15px; color: #0f172a; }
.rw-popup-content p { font-size: 16px; color: #475569; margin-bottom: 30px; line-height: 1.6; }
.rw-offer-btn { display: inline-block; width: 100%; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; padding: 18px; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 18px; box-shadow: 0 10px 20px rgba(239,68,68,0.3); transition: 0.3s; box-sizing: border-box; }
.rw-offer-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(239,68,68,0.4); color: #fff; }

@keyframes rw-pulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); } 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
@keyframes rw-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rw-pop { to { transform: scale(1); } }

@media (max-width: 900px) {
    .rw-room-container { height: auto; min-height: 100vh; }
    .rw-room-body { flex-direction: column; }
    .rw-chat-sidebar { width: 100%; height: 400px; border-left: none; border-top: 1px solid #1e293b; }
}