/**
 * Sales Ops Checklist Styles
 *
 * @package PlanDigitalNow
 * @since 2.0.0
 */

/* ==========================================================================
   Variables
   ========================================================================== */
.pdn-so-checklist {
  --pdn-primary: #0080FF;
  --pdn-primary-dark: #005BBB;
  --pdn-accent: #010C80;
  --pdn-white: #ffffff;
  --pdn-gray-50: #f9fafb;
  --pdn-gray-100: #f3f4f6;
  --pdn-gray-200: #e5e7eb;
  --pdn-gray-300: #d1d5db;
  --pdn-gray-400: #9ca3af;
  --pdn-gray-500: #6b7280;
  --pdn-gray-600: #4b5563;
  --pdn-gray-700: #374151;
  --pdn-gray-800: #1f2937;
  --pdn-gray-900: #111827;
  --pdn-success: #1E6B27;
  --pdn-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --pdn-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --pdn-radius: 12px;
  --pdn-radius-sm: 8px;
  --pdn-radius-full: 9999px;
  --pdn-transition: all 0.2s ease;
}

/* ==========================================================================
   Base Container
   ========================================================================== */
.pdn-so-checklist {
  font-family: 'Proza Libre', Georgia, serif;
  color: var(--pdn-gray-800);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pdn-so-checklist * {
  box-sizing: border-box;
}

/* ==========================================================================
   Header
   ========================================================================== */
.pdn-so-checklist__header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px;
  background: linear-gradient(135deg, #010C80 0%, #005BBB 100%);
  border-radius: var(--pdn-radius);
  color: #FFFFFF;
}

.pdn-so-checklist__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0 0 16px;
}

.pdn-so-checklist__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 8px;
}

.pdn-so-checklist__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Progress
   ========================================================================== */
.pdn-so-checklist__progress {
  background: var(--pdn-white);
  border: 1px solid var(--pdn-gray-200);
  border-radius: var(--pdn-radius);
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: var(--pdn-shadow);
}

.pdn-so-checklist__progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pdn-so-checklist__progress-label {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--pdn-gray-700);
}

.pdn-so-checklist__progress-count {
  font-size: 0.875rem;
  color: var(--pdn-gray-500);
}

.pdn-so-checklist__progress-bar {
  height: 12px;
  background: var(--pdn-gray-200);
  border-radius: var(--pdn-radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.pdn-so-checklist__progress-fill {
  height: 100%;
  background: var(--pdn-success);
  border-radius: var(--pdn-radius-full);
  transition: width 0.3s ease;
}

.pdn-so-checklist__progress-status {
  font-size: 0.875rem;
  color: var(--pdn-gray-600);
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Categories
   ========================================================================== */
.pdn-so-checklist__categories {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.pdn-so-checklist__category {
  background: var(--pdn-white);
  border: 1px solid var(--pdn-gray-200);
  border-radius: var(--pdn-radius);
  overflow: hidden;
  box-shadow: var(--pdn-shadow);
}

.pdn-so-checklist__category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--pdn-gray-50) 0%, var(--pdn-gray-100) 100%);
  border-bottom: 1px solid var(--pdn-gray-200);
}

.pdn-so-checklist__category-info {
  flex: 1;
}

.pdn-so-checklist__category-name {
  font-size: 1.063rem;
  font-weight: 700;
  color: var(--pdn-gray-900);
  margin: 0 0 4px;
}

.pdn-so-checklist__category-desc {
  font-size: 0.813rem;
  color: var(--pdn-gray-500);
  margin: 0;
}

.pdn-so-checklist__category-count {
  font-size: 0.938rem;
  font-weight: 700;
  color: var(--pdn-success);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: var(--pdn-radius-full);
}

/* ==========================================================================
   Tasks
   ========================================================================== */
.pdn-so-checklist__tasks {
  padding: 16px 20px;
}

.pdn-so-checklist__task {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--pdn-radius-sm);
  cursor: pointer;
  transition: var(--pdn-transition);
}

.pdn-so-checklist__task:hover {
  background: var(--pdn-gray-50);
}

.pdn-so-checklist__task--completed,
.pdn-so-checklist__task--checked {
  background: rgba(30, 107, 39, 0.08);
}

.pdn-so-checklist__task--completed:hover,
.pdn-so-checklist__task--checked:hover {
  background: rgba(30, 107, 39, 0.12);
}

.pdn-so-checklist__task input {
  display: none;
}

.pdn-so-checklist__task-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--pdn-gray-300);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--pdn-transition);
  margin-top: 2px;
}

.pdn-so-checklist__task-checkbox svg {
  opacity: 0;
  transform: scale(0.5);
  transition: var(--pdn-transition);
  color: var(--pdn-white);
}

.pdn-so-checklist__task--completed .pdn-so-checklist__task-checkbox,
.pdn-so-checklist__task--checked .pdn-so-checklist__task-checkbox {
  background: var(--pdn-success);
  border-color: var(--pdn-success);
}

.pdn-so-checklist__task--completed .pdn-so-checklist__task-checkbox svg,
.pdn-so-checklist__task--checked .pdn-so-checklist__task-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.pdn-so-checklist__task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdn-so-checklist__task-title {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--pdn-gray-800);
  transition: var(--pdn-transition);
}

.pdn-so-checklist__task--completed .pdn-so-checklist__task-title,
.pdn-so-checklist__task--checked .pdn-so-checklist__task-title,
.pdn-so-checklist__task--checked .pdn-so-checklist__task-text {
  color: var(--pdn-gray-500);
  text-decoration: line-through;
}

.pdn-so-checklist__task-text {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--pdn-gray-800);
  transition: var(--pdn-transition);
}

.pdn-so-checklist__task-desc {
  font-size: 0.813rem;
  color: var(--pdn-gray-500);
}

/* ==========================================================================
   Actions
   ========================================================================== */
.pdn-so-checklist__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.pdn-so-checklist__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.938rem;
  font-weight: 600;
  border: none;
  border-radius: var(--pdn-radius-sm);
  cursor: pointer;
  transition: var(--pdn-transition);
  text-decoration: none;
}

.pdn-so-checklist__btn--primary {
  background: var(--pdn-primary);
  color: var(--pdn-white);
}

.pdn-so-checklist__btn--primary:hover {
  background: #0066cc;
  color: var(--pdn-white);
}

.pdn-so-checklist__btn--secondary {
  background: var(--pdn-white);
  color: var(--pdn-gray-700);
  border: 1px solid var(--pdn-gray-300);
}

.pdn-so-checklist__btn--secondary:hover {
  background: var(--pdn-gray-50);
  border-color: var(--pdn-gray-400);
}

.pdn-so-checklist__btn--text {
  background: transparent;
  color: var(--pdn-gray-500);
  padding: 10px 16px;
}

.pdn-so-checklist__btn--text:hover {
  color: var(--pdn-gray-700);
}

.pdn-so-checklist__btn--cta {
  display: inline-block;
  background: #FFFFFF;
  color: #005BBB;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: var(--pdn-radius-sm);
  text-decoration: none !important;
}

.pdn-so-checklist__btn--cta:hover {
  background: #f0f4f8;
  color: #005BBB;
  transform: translateY(-2px);
  box-shadow: var(--pdn-shadow-lg);
  text-decoration: none !important;
}

/* ==========================================================================
   Form Section
   ========================================================================== */
.pdn-so-checklist__form-section {
  background: var(--pdn-white);
  border-radius: var(--pdn-radius);
  overflow: hidden;
  margin-bottom: 40px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--pdn-shadow-lg);
}

.pdn-so-checklist__form-header {
  text-align: center;
  padding: 32px 32px 24px;
  background: linear-gradient(135deg, #010C80 0%, #005BBB 100%);
  color: #FFFFFF;
}

.pdn-so-checklist__form-header svg {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.pdn-so-checklist__form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0 0 12px;
}

.pdn-so-checklist__form-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.pdn-so-checklist__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.pdn-so-checklist__form-group {
  position: relative;
}

.pdn-so-checklist__input,
.pdn-so-checklist__select {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--pdn-gray-200);
  border-radius: var(--pdn-radius-sm);
  background: var(--pdn-white);
  color: var(--pdn-gray-800);
  transition: var(--pdn-transition);
}

.pdn-so-checklist__input:focus,
.pdn-so-checklist__select:focus {
  outline: none;
  border-color: var(--pdn-primary);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.1);
}

.pdn-so-checklist__input::placeholder {
  color: var(--pdn-gray-400);
}

.pdn-so-checklist__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.pdn-so-checklist__error {
  display: none;
  font-size: 0.813rem;
  color: #ef4444;
  margin-top: 8px;
}

/* Checkbox Group */
.pdn-so-checklist__form-group--checkbox {
  margin-top: 8px;
}

.pdn-so-checklist__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--pdn-gray-600);
  line-height: 1.5;
}

.pdn-so-checklist__checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--pdn-primary);
  cursor: pointer;
}

.pdn-so-checklist__btn--submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px 24px;
  font-size: 1.063rem;
  background: linear-gradient(135deg, #010C80, #005BBB);
  border: none;
  color: #FFFFFF;
}

.pdn-so-checklist__btn--submit:hover {
  background: linear-gradient(135deg, #000a66, #004c99);
  transform: translateY(-1px);
}

.pdn-so-checklist__btn--cancel {
  width: 100%;
}

.pdn-so-checklist__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.813rem;
  color: var(--pdn-gray-500);
  margin: 8px 0 0;
  text-align: center;
}

.pdn-so-checklist__privacy svg {
  color: var(--pdn-success);
  flex-shrink: 0;
}

.pdn-so-checklist__btn--back {
  margin-top: 4px;
}

/* ==========================================================================
   Results Page (after form submission)
   ========================================================================== */
.pdn-so-checklist__results {
  max-width: 600px;
  margin: 0 auto;
}

/* Result Card */
.pdn-so-checklist__result-card {
  background: var(--pdn-white);
  border-radius: var(--pdn-radius);
  border: 3px solid var(--pdn-primary);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--pdn-shadow-lg);
}

.pdn-so-checklist__result-score {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.pdn-so-checklist__result-percent {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pdn-gray-500);
  margin-bottom: 24px;
}

.pdn-so-checklist__result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pdn-gray-900);
  margin: 0 0 12px;
}

.pdn-so-checklist__result-desc {
  font-size: 1rem;
  color: var(--pdn-gray-600);
  margin: 0;
  line-height: 1.6;
}

/* Download Section */
.pdn-so-checklist__download-section {
  text-align: center;
  margin-bottom: 32px;
}

.pdn-so-checklist__btn--download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #010C80, #005BBB);
  border: none;
  border-radius: var(--pdn-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: var(--pdn-transition);
}

.pdn-so-checklist__btn--download-pdf:hover {
  background: linear-gradient(135deg, #000a66, #004c99);
  transform: translateY(-2px);
  box-shadow: var(--pdn-shadow-lg);
}

.pdn-so-checklist__btn--download-pdf svg {
  flex-shrink: 0;
}

/* Results Page Responsive */
@media (max-width: 500px) {
  .pdn-so-checklist__result-card {
    padding: 32px 24px;
  }

  .pdn-so-checklist__result-score {
    font-size: 3rem;
  }

  .pdn-so-checklist__result-percent {
    font-size: 1.25rem;
  }

  .pdn-so-checklist__result-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.pdn-so-checklist__cta {
  background: linear-gradient(135deg, #010C80, #005BBB);
  border-radius: var(--pdn-radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--pdn-white);
  margin-top: 48px;
}

.pdn-so-checklist__cta-headline {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #FFFFFF !important;
}

.pdn-so-checklist__cta-subtext {
  font-size: 1.125rem;
  opacity: 0.95;
  margin: 0 0 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pdn-so-checklist__cta-note {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 16px;
}

.pdn-so-checklist__cta-trust {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.pdn-so-checklist__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.pdn-so-checklist__modal-content {
  background: var(--pdn-white);
  border-radius: var(--pdn-radius);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.pdn-so-checklist__modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--pdn-gray-100);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--pdn-gray-500);
  cursor: pointer;
}

.pdn-so-checklist__modal-close:hover {
  background: var(--pdn-gray-200);
}

.pdn-so-checklist__modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--pdn-gray-800);
}

.pdn-so-checklist__share-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdn-so-checklist__share-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--pdn-gray-200);
  border-radius: var(--pdn-radius-sm);
  background: var(--pdn-white);
  font-size: 1rem;
  color: var(--pdn-gray-700);
  cursor: pointer;
  transition: var(--pdn-transition);
}

.pdn-so-checklist__share-btn:hover {
  border-color: var(--pdn-primary);
  background: rgba(0, 128, 255, 0.02);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .pdn-so-checklist__title {
    font-size: 1.5rem;
  }

  .pdn-so-checklist__category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pdn-so-checklist__actions {
    flex-direction: column;
  }

  .pdn-so-checklist__actions .pdn-so-checklist__btn {
    width: 100%;
  }

  .pdn-so-checklist__cta {
    padding: 24px 20px;
  }
}
