.rc-page{
  padding: 90px 18px 60px;
  font-family: 'Poppins', sans-serif;
}

.rc-card{
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 14px 45px rgba(0,0,0,.10);
}

.rc-head h2{
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}

.rc-head p{
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.rc-alert{
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}
.rc-alert.success{ background:#e6fffa; color:#065f46; border:1px solid #99f6e4; }
.rc-alert.error{ background:#fee2e2; color:#991b1b; border:1px solid #fecaca; }
.rc-alert.info{ background:#e0f2fe; color:#075985; border:1px solid #bae6fd; }

.rc-block{
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.rc-label{
  display:block;
  font-weight: 600;
  font-size: 13px;
  color: #111827;
  margin-bottom: 8px;
}

.rc-inline{
  display:flex;
  gap:10px;
  align-items:center;
}

.rc-input{
  width:100%;
  padding: 12px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  background:#fff;
}

.rc-input:focus{
  border-color:#93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.rc-hint{
  margin-top: 8px;
  color:#6b7280;
  font-size: 12px;
}

.rc-otp-wrap{ margin-top: 12px; }

.rc-otp-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 10px;
}

.rc-timer{ font-size: 12px; color:#475569; }

.rc-link{
  border: none;
  background: transparent;
  color: #0b3b8f;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.rc-link:disabled{ opacity: .45; cursor: not-allowed; }

.rc-verified{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#065f46;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
}

.rc-tick{
  width: 26px;
  height: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-weight: 800;
}

.rc-form-title{ margin: 10px 0 12px; }

.rc-form-title h3{
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color:#0f172a;
}

.rc-form-title p{
  margin:0;
  font-size: 13px;
  color:#64748b;
}

.rc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.rc-field{ margin-bottom: 12px; }

.rc-textarea{
  width:100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
}

.rc-textarea:focus{
  border-color:#93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.rc-file{
  width:100%;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background:#fff;
}

.rc-btn{
  border:none;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  cursor:pointer;
  font-size: 13px;
  white-space: nowrap;
}
.rc-btn-primary{ background:#0b3b8f; color:#fff; }
.rc-btn-dark{ background:#111827; color:#fff; }
.rc-btn-success{ background:#16a34a; color:#fff; width:100%; padding: 14px 14px; }
.rc-btn:disabled{ opacity: .55; cursor:not-allowed; }

.rc-submit{ margin-top: 4px; }

.rc-lock-note{
  margin-top: 10px;
  font-size: 12px;
  color:#6b7280;
  text-align:center;
}

.rc-disabled{
  opacity: .65;
  pointer-events: none;
}

/* ✅ Leader panel + search */
.rc-leader-panel{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.rc-leader-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.rc-leader-search-ic{
  font-size: 14px;
  opacity: .7;
}

#rcLeaderSearch{
  width:100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
  background: #fff;
}

#rcLeaderSearch:focus{
  border-color:#93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

/* ✅ Leader list */
.rc-leader-box{
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rc-leader-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
  user-select: none;
}

.rc-leader-item:last-child{ border-bottom: none; }

.rc-leader-item:hover{
  background: #f8fafc;
}

.rc-leader-check{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: #16a34a;
}

.rc-leader-photo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 44px;
  border: 1px solid #e5e7eb;
  background: #f1f5f9;
}

.rc-leader-text{
  min-width: 0;
  line-height: 1.2;
}

.rc-leader-name{
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}

.rc-leader-meta{
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

/* ✅ Selected highlight (like screenshot) */
.rc-leader-item.selected{
  background: #0b6b2f;
}
.rc-leader-item.selected .rc-leader-name,
.rc-leader-item.selected .rc-leader-meta{
  color: #fff;
}
.rc-leader-item.selected .rc-leader-photo{
  border-color: rgba(255,255,255,.35);
}

/* Scrollbar */
.rc-leader-box::-webkit-scrollbar{ width: 8px; }
.rc-leader-box::-webkit-scrollbar-thumb{
  background: rgba(2,6,23,.18);
  border-radius: 999px;
}

.rc-leader-item.selected::after{
  content: "Selected";
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
}


@media (max-width: 720px){
  .rc-card{ padding: 18px; }
  .rc-grid{ grid-template-columns: 1fr; }
  .rc-inline{ flex-direction: column; }
  .rc-btn{ width:100%; }
  .rc-leader-box{ max-height: 210px; }
}

/* Fix global conflicts */
.rc-page *{ box-sizing: border-box; }
.rc-page .rc-field, .rc-page .rc-grid, .rc-page .rc-form{ position: relative !important; }

/* pop up modal */
/* Success Modal Overlay */
.rc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Box */
.rc-modal-box {
    background: #ffffff;
    width: 95%;
    max-width: 480px;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

/* Success Icon */
.rc-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: #22c55e;
    color: white;
    font-size: 36px;
    line-height: 70px;
    border-radius: 50%;
    font-weight: bold;
}

/* Ticket Box */
.rc-ticket-box {
    background: #f1f5f9;
    border: 2px dashed #3b82f6;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 15px 0;
    border-radius: 10px;
    color: #0b3b8f;
}

/* Email */
.rc-email {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Buttons */
.rc-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.rc-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.rc-btn-primary {
    background: #0b3b8f;
    color: #fff;
}

.rc-btn-primary:hover {
    background: #1d4ed8;
}

.rc-btn-secondary {
    background: #111827;
    color: #fff;
}

.rc-btn-secondary:hover {
    background: #000;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideUp {
    from {transform: translateY(20px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}


