/* ===== Reset & Base ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f9fafb;
  margin: 0;
  padding: 0;
}

/* ===== Wrapper & Headings ===== */
.mvp-checklist-wrapper {
  width: 100%;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
}

.mvp-checklist-wrapper h2,
.checklist_heading {
  color: #002f87;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mvp-checklist-wrapper p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #002f87;
  text-align: center;
}

/* ===== Form Layout ===== */
#mvp-checklist-form {
  width: 50%;
  margin: 0 auto;
}

.mvp-checklist-group {
  margin-bottom: 20px;
}

.mvp-checklist-group label {
  display: block;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}

.mvp-checklist-group label:hover {
  background: #e2e8f0;
}

.mvp-checklist-group input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

/* ===== Buttons ===== */
#mvp-checklist-submit,
#download-pdf {
  background-color: #002f87;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 10px;
}

#mvp-checklist-submit:hover,
#download-pdf:hover {
  background-color: #0140b8;
}

/* ===== Modal Styles ===== */
.mvp-checklist-modal {
  display: none;
  position: fixed;
  z-index: 2999 !important;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(31, 41, 55, 0.8);
}

.mvp-checklist-content {
  background-color: #fff;
  margin: auto;
  padding: 20px 30px;
  border: 1px solid #ccc;
  width: 35%;
  max-width: 600px;
  border-radius: 16px;
  position: relative;
  animation: fadeInScale 0.3s ease forwards;
}

.mvp-checklist-content h3 {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #002f87;
  border-bottom: 2px solid #002f87;
  padding-bottom: 8px;
  text-align: center;
}

.mvp-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
}

.mvp-close:hover,
.mvp-close:focus {
  color: #111;
}

/* ===== Table Styles ===== */
table#mvp-checklist-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0 12px;
  background-color: #fafafa;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  min-width: 450px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

#mvp-checklist-table thead tr {
  background-color: #002f87;
  color: white;
  font-weight: 600;
  text-align: left;
}
.mvp-checklist-content table thead tr {
  background-color: #002f87;
  color: white;
  font-weight: 600;
  text-align: left;
}

table#mvp-checklist-table th tr {
  background-color: #002f87;
  color: white;
  font-weight: 600;
  text-align: left
}

#mvp-checklist-table th {
  background-color: #002f87;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  color: white;
}
#mvp-checklist-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

#mvp-checklist-table tbody tr:hover {
  font-weight: 700;
  background-color: #e6f4ea;
  border-top: 2px solid #002f87;
}

#mvp-checklist-table tr:nth-child(even) {
  background-color: #f9fafb;
}

/* ===== Checkboxes Inline (if used) ===== */
.checkbox-wrapper label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 15px;
  font-size: 16px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
}

/* ===== Animation ===== */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Responsive Fixes ===== */
@media (max-width: 768px) {
  #mvp-checklist-form {
    width: 100%;
  }

  .mvp-checklist-content {
    width: 90%;
    padding: 20px;
  }

  .mvp-checklist-wrapper {
    padding: 20px;
  }

  .mvp-checklist-content h3 {
    font-size: 1.4rem;
  }

  #mvp-checklist-submit,
  #download-pdf {
    width: 100%;
    padding: 12px;
  }

  table#mvp-checklist-table {
    display: block;
    overflow-x: auto;
    font-size: 0.9rem;
    min-width: unset;
  }
  .checkbox-wrapper span{
    width: 100% !important;
  }
  .checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
    font-size: 16px;
    width: 100% !important;
  }
  .checkbox-wrapper input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    border: 2px solid #002f87;
    border-radius: 0;
    background-color: #fff;
    cursor: pointer;
    position: relative;
  }
}

@media (max-width: 480px) {
  .mvp-checklist-wrapper {
    padding: 16px;
  }

  .mvp-checklist-content h3 {
    font-size: 1.2rem;
  }

  .mvp-checklist-content {
    padding: 16px;
  }

  #mvp-checklist-submit,
  #download-pdf {
    font-size: 15px;
  }
}
@media only screen and (max-width: 768px) and (orientation: landscape) {
  #mvp-checklist-form {
    width: 85% !important;
    margin: 0 auto !important;
  }
}