/* =========================================================
   VISITING CARD – OVERLAY & PANEL SHELL ONLY
   ========================================================= */

.vc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

.vc-panel {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}

.vc-panel.open {
  right: 0;
}

/* Large screens */
@media (min-width: 1600px) {
  .vc-panel {
    width: 460px;
  }
}

/* =========================================================
   RESPONSIVE VC PANEL WIDTHS
   ========================================================= */

/* =========================================
   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;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .vc-panel {
    width: 85%;
    right: -85%;
  }
}

@media (min-width: 1600px) {
  .vc-panel {
    width: 460px;
  }
}

/* =========================================================
   VC FORM ELEMENTS (INPUTS, LABELS)
   ========================================================= */

.vc-body label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: #333;
}

.vc-body input[type="text"],
.vc-body input[type="tel"],
.vc-body input[type="email"],
.vc-body input[type="date"],
.vc-body input[type="time"],
.vc-body input[type="number"],
.vc-body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vc-body input:focus,
.vc-body textarea:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* =========================================================
   VC ERROR MESSAGES
   ========================================================= */
.vc-body input.error-input {
  border-color: #d93025;
}

/* =========================================================
   VC RADIO GROUP
   ========================================================= */

.vc-radio {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.vc-radio label {
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

/* =========================================================
   VC COPIES COUNTER
   ========================================================= */

.vc-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.vc-counter button {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.vc-counter input {
  width: 70px;
  text-align: center;
}

@media (max-width: 640px) {
  .vc-body {
    padding: 16px;
  }

  .vc-body label {
    font-size: 13px;
  }
}

/* Hide errors by default */
.vc-body .error {
  display: none;
  font-size: 12px;
  color: #d93025;
  margin-top: 4px;
}

/* FORCE HIDE VC ERRORS INITIALLY */
/* ERROR TEXT */
.vc-step .error {
  display: none;
  color: #d93025;
  font-size: 12px;
  margin-top: 4px;
}

/* SHOW ERROR */
.vc-step .error.show {
  display: block;
}

/* Hide all steps by default */
.vc-step {
  display: none;
}

/* Show only active step */
.vc-step.active {
  display: block;
}

.vc-step {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===============================
   VISITING CARD STEP CONTROL
================================= */

.vc-step {
  display: none;
  padding: 20px 16px 100px; /* bottom spacing for footer */
}

.vc-step.active {
  display: block;
}

/* ===============================
   VC HEADER
================================= */

.vc-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vc-close {
  font-size: 26px;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===============================
   VC BODY
================================= */

.vc-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* ===============================
   VC FOOTER (CRITICAL FIX)
================================= */

.vc-footer {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.vc-footer button {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.vc-next {
  background: #2563eb;
  color: #fff;
}

.vc-back {
  background: #f1f5f9;
}

/* ===============================
   VC BILL CARD
================================= */

.vc-bill {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.vc-bill div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vc-bill .total {
  font-weight: 700;
  font-size: 18px;
}

/* ===============================
   VC MODERN RADIO PILLS
================================= */

.vc-pill-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.vc-pill {
  cursor: pointer;
}

.vc-pill input {
  display: none;
}

.vc-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;
}

/* Selected state */
.vc-pill input:checked + span {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

/* Hover */
.vc-pill span:hover {
  border-color: #2563eb;
}

.vc-pill span {
  transition: all 0.2s ease-in-out;
}

/* ===============================
   VC MODERN TOGGLE BUTTONS
================================= */

.vc-toggle-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.vc-toggle {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vc-toggle:hover {
  border-color: #2563eb;
}

.vc-toggle.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}
