/* ================= PAN WIZARD ================= */

.pan-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

/* ===== PAN PANEL ===== */
.pan-panel{
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 420px;
  max-width: 100%;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right .35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pan-panel.open{ right: 0; }

/* ===== HEADER ===== */
.pan-header{
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.pan-close{
  font-size: 26px;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===== BODY ===== */
.pan-body{
  flex: 1;
  padding: 20px;
}

/* ===== STEPS ===== */
.pan-step{ display: none; padding: 20px 16px 90px; }
.pan-step.active{ display: block; }

.pan-step h3{
  font-size: 18px;
  margin-bottom: 10px;
}

/* ===== FORM ===== */
.pan-step-section label{
  display: block;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 6px;
}

.pan-step-section input,
.pan-step-section textarea,
.pan-step-section select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.pan-step-section textarea{
  resize: vertical;
}

.pan-step-section input[type="file"]{
  padding: 8px;
  background: #f9fafb;
  border: 1px dashed #cbd5f5;
  border-radius: 8px;
  font-size: 13px;
}

/* ===== CHECKBOX GRID ===== */
.pan-checkbox{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-top: 8px;
}

.pan-checkbox label{
  font-weight: 500;
  font-size: 14px;
}

/* ===== FOOTER ===== */
.pan-footer{
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pan-footer button{
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.pan-next{ background:#2563eb; color:#fff; }
.pan-back{ background:#f1f5f9; }

/* ===== BILL ===== */
.pan-bill div{
  display:flex;
  justify-content:space-between;
  margin-bottom:8px;
}

.pan-bill .total{
  font-weight:700;
  font-size:18px;
}

/* ===== ERROR ===== */
.error{
  display: block;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

/* ===== MOBILE ===== */
/* =========================================
   UNIVERSAL MOBILE PANEL SYSTEM
========================================= */

@media (max-width: 640px){

  .logo-panel,
  .flex-panel,
  .gst-panel,
  .web-panel,
  .ts-panel,
  .company-panel,
  .lam-panel,
  .mc-panel,
  .pan-panel,
  .print-panel,
  .vc-panel,
  .voter-panel {
    width: 100% !important;
    max-width: 100% !important;
    right: -100% !important;
    border-radius: 0 !important;
  }

  .logo-panel.open,
  .flex-panel.open,
  .gst-panel.open,
  .web-panel.open,
  .ts-panel.open,
  .company-panel.open,
  .lam-panel.open,
  .mc-panel.open,
  .pan-panel.open,
  .print-panel.open,
  .vc-panel.open,
  .voter-panel.open {
    right: 0 !important;
  }
}

.pan-service-options{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:20px;
}

.pan-service-card{
  border:1px solid #e5e7eb;
  padding:14px;
  border-radius:12px;
  text-align:center;
  cursor:pointer;
  font-weight:600;
  background:#f9fafb;
}

.pan-service-card input{
  display:none;
}

.pan-service-card:has(input:checked){
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}

.pan-card{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:18px;
  margin-bottom:20px;
}

/* ===== PAN BILL CARD ===== */

.pan-bill-card{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:18px;
}

.pan-bill-card .bill-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:15px;
  margin-bottom:10px;
  color:#374151;
}

.pan-bill-card hr{
  border:none;
  border-top:1px dashed #d1d5db;
  margin:14px 0;
}

.pan-bill-card .total{
  font-size:20px;
  font-weight:700;
  color:#111827;
}

/* ===== MODERN UPLOAD CARDS ===== */

.pan-upload-card{
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:16px;
  margin-bottom:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  background:#ffffff;

  display: revert;
  padding: 14px;
  background: #f9fafb;
}

.upload-info{
  display:flex;
  flex-direction:column;
}

.upload-info strong{
  font-size:15px;
  color:#111827;
}

.upload-info span{
  font-size:12px;
  color:#6b7280;
  margin-top:4px;
}

.upload-btn{
  background:#2563eb;
  color:#ffffff;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}

.upload-btn:hover{
  background:#1d4ed8;
}

.file-name {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #2563eb;
  word-break: break-all;
}

/*.pan-upload-card {
  display: revert;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: #f9fafb;
}*/

.upload-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

/* ===== MODERN CHECKBOX PILLS ===== */

.modern-checkbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.check-pill {
  position: relative;
  cursor: pointer;
}

.check-pill input {
  display: none;
}

.check-pill span {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  background: #ffffff;
  color: #374151;
  transition: all 0.25s ease;
}

/* Checked state */
.check-pill input:checked + span {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

/* Hover */
.check-pill span:hover {
  border-color: #2563eb;
}

/* Special styling for "All" */
.check-pill.highlight span {
  border-style: dashed;
}

.pan-next.disabled,
.pan-next:disabled {
  background: #cbd5f5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.5;
}
