/* CPC Employee Handouts Accordion Styles */
:root {
  --cpc-blue: #1a4e8a;
  --cpc-light-blue: #e6f0fa;
  --cpc-gray: #f7f7f7;
  --cpc-border: #e5e5e5;
  --cpc-table-row: #fafbfc;
  --cpc-table-row-alt: #f5f5f5;
  --cpc-modal-bg: #f6f6f6;
}

.cpc-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

.cpc-header-logo {
  display: flex;
  align-items: center;
  min-width: 260px;
}

.cpc-header-logo img {
  height: 32px;
  margin-right: 10px;
}

.cpc-header-phone {
  color: var(--cpc-blue);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  flex: 1;
}

.cpc-header-links {
  display: flex;
  gap: 24px;
  min-width: 260px;
  justify-content: flex-end;
  font-size: 1rem;
}

.cpc-header-links a {
  color: var(--cpc-blue);
  text-decoration: none;
  font-weight: 400;
  transition: text-decoration 0.2s;
}

.cpc-header-links a:hover {
  text-decoration: underline;
}

.cpc-divider {
  border: none;
  border-top: 1px solid var(--cpc-border);
  margin: 24px 0 0 0;
}

.cpc-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.cpc-title {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 2.5rem;
  color: var(--cpc-blue);
  font-weight: 700;
  margin: 40px 0 0 0;
  letter-spacing: 0.5px;
}

.cpc-desc {
  font-size: 1.15rem;
  margin: 12px 0 32px 0;
  color: #222;
}

.cpc-accordion-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: none;
  margin-bottom: 60px;
  border-radius: 0;
  overflow: hidden;
}

.cpc-accordion-row {
  cursor: pointer;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cpc-blue);
  border-bottom: 1px solid var(--cpc-border);
  transition: background 0.2s;
  padding: 0;
}

.cpc-accordion-row:not(:first-child) td {
  border-top: 1px solid #ccc;
}

.cpc-accordion-row.open {
  background: var(--cpc-light-blue);
  color: var(--cpc-blue);
}

.cpc-state-label-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.cpc-state-label {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cpc-blue);
  padding: 18px 24px;
  flex: 1 1 auto;
  display: block;
}

.cpc-caret {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 24px;
  vertical-align: middle;
  border: solid var(--cpc-blue);
  border-width: 0 3px 3px 0;
  padding: 3px;
  transition: transform 0.2s cubic-bezier(.4,1.4,.6,1);
  transform: rotate(-45deg); /* Right arrow by default */
}

.cpc-accordion-row.open .cpc-caret {
  transform: rotate(45deg); /* Down arrow when open */
}

.cpc-accordion-panel {
  display: none;
  background: #fff;
  padding: 0 0 0 0;
}

.cpc-accordion-panel.open {
  display: table-row;
}

.cpc-accordion-panel-content {
  padding: 18px 36px 18px 36px;
  background: var(--cpc-light-blue);
  font-size: 1.08rem;
  color: #222;
}

.cpc-accordion-panel-content ul {
  margin: 0;
  padding-left: 1.2em;
}

.cpc-accordion-panel-content li {
  margin-bottom: 0.5em;
  font-weight: 400;
  font-size: 1.08rem;
}

.cpc-accordion-panel-content a {
  color: var(--cpc-blue);
  text-decoration: underline;
  font-weight: 700;
}

/* Paywall Modal */
.paywall-modal-bg {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(246, 246, 246, 0.00) 0%, rgba(246, 246, 246, 0.98) 40%, rgba(246, 246, 246, 0.98) 100%);
  justify-content: center;
  align-items: flex-end;
  transition: opacity 0.35s cubic-bezier(.4, 1.4, .6, 1);
  opacity: 0;
}

.paywall-modal-bg.active {
  display: flex;
  opacity: 1;
}

.paywall-modal-bg.fading-out {
  opacity: 0;
  pointer-events: none;
}

.paywall-modal {
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(26, 78, 138, 0.13), 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  width: 80vw;
  min-width: 0;
  min-height: 50vh;
  max-height: 90vh;
  padding: 32px 32px 24px 32px;
  text-align: center;
  border: 1.5px solid var(--cpc-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.35s cubic-bezier(.4, 1.4, .6, 1), opacity 0.25s;
  transform: translateY(100%);
  opacity: 0;
}

.paywall-modal.open {
  transform: translateY(0);
  opacity: 1;
}

.paywall-modal.closing {
  transform: translateY(100%);
  opacity: 0;
}

.paywall-modal .close-sheet {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #888;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s, background 0.2s;
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paywall-modal .close-sheet:hover,
.paywall-modal .close-sheet:focus {
  color: var(--cpc-blue);
  background: #f7fafd;
  outline: none;
}

.paywall-modal h2 {
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  margin-bottom: 24px;
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--cpc-blue);
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-top: 12px;
}

.paywall-modal form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.paywall-modal input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1.08rem;
  border: 1.5px solid #bfc9d1;
  border-radius: 6px;
  margin-bottom: 0;
  font-family: 'Lato', Arial, sans-serif;
  transition: border 0.2s, box-shadow 0.2s;
  background: #f7fafd;
  box-sizing: border-box;
}

.paywall-modal input[type="email"]:focus {
  border: 1.5px solid var(--cpc-blue);
  outline: none;
  box-shadow: 0 0 0 2px #e6f0fa;
  background: #fff;
}

.paywall-modal button[type="submit"] {
  background: var(--cpc-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
  width: 100%;
  font-family: 'Oswald', Arial, sans-serif;
  letter-spacing: 0.5px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(26, 78, 138, 0.08);
  margin-top: 0;
}

.paywall-modal button[type="submit"]:hover,
.paywall-modal button[type="submit"]:focus {
  background: #17406e;
  box-shadow: 0 4px 16px rgba(26, 78, 138, 0.13);
  outline: none;
}

.paywall-modal .privacy {
  font-size: 1.04em;
  color: #4a4a4a;
  text-align: left;
  margin-top: 10px;
  line-height: 1.7;
  background: #f7fafd;
  border-radius: 6px;
  padding: 14px 12px 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {

  .cpc-header,
  .cpc-main {
    max-width: 100%;
  }

  .cpc-header {
    flex-direction: column;
    gap: 8px;
  }

  .cpc-header-logo,
  .cpc-header-links {
    min-width: 0;
  }

  .cpc-header-links {
    gap: 12px;
  }

  .cpc-title {
    font-size: 1.5rem;
  }

  .paywall-modal {
    max-width: 98vw;
    width: 98vw;
    padding: 16px 4px 8px 4px;
  }

  .paywall-modal .close-sheet {
    top: 8px;
    right: 8px;
    font-size: 2rem;
    width: 38px;
    height: 38px;
    line-height: 38px;
  }

  .paywall-modal .privacy {
    max-height: 255px;
    overflow: scroll;
  }
}

@media (max-width: 600px) {
  .cpc-caret {
    height: 12px;
    width: 12px;
    margin-right: 18px;
  }

  .cpc-title {
    font-size: 1.1rem;
  }

  .cpc-state-label {
    padding: 0;
  }

  .cpc-accordion-panel-content {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .paywall-modal {
    padding: 16px 4px 8px 4px;
    min-height: 60vh;
    max-height: 90vh;
    overflow-y: auto;
  }

  .paywall-modal h2 {
    font-size: 1.05rem;
  }

  .paywall-modal .privacy {
    font-size: 0.95em;
    padding: 10px 4px 8px 4px;
  }

  .paywall-modal button[type="submit"] {
    font-size: 0.95rem;
  }

  .paywall-modal input[type="email"] {
    font-size: 0.95rem;
  }
}