.npe_listings {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.npe_listing {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.npe_listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.npe_listing h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.npe_listing p {
    margin: 0.25rem 0;
    color: #555;
    line-height: 1.4;
}

.npe_listing p strong {
    color: #000;
    font-weight: 600;
}


.npe-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 400px;
}

.npe-form-heading h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111;
    padding-bottom: 0.5rem;
    font-family: var(--npe-font-family), sans-serif !important;

    border-bottom: 2px solid var(--npe-primary-color); /* dark blue or your accent color */
}


.npe-form-container.wide {
    width: 100%;
    max-width: 980px;
    box-sizing: border-box;
    margin: 0 auto; /* Center the container */
}

.npe-form-container h2 {
    /* text-align: center;*/
    margin-bottom: 1.5rem;
    font-family: var(--npe-font-family), sans-serif !important;

}

.npe-form-container h3 {
    margin-bottom: 1rem;
    margin-top: 1rem;

}

.npe-form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.npe-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #333;
    font-size: 1rem;
}

.npe-text-red {
    color: #ff0000;
}

.npe-form-group input, .npe-form-group select {
    /*
        padding: 0.5rem !important;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1rem;
        max-height: 36px;*/
}

.npe-form-group input:focus {
    /*
    border-color: #007bff;
    outline: none;*/
}

.npe_btn, .npe-btn, .npe-button {
    width: 100%;
    min-width: 100px;
    padding: 0.75rem;
    background-color: var(--npe-primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-family: var(--npe-font-family), sans-serif !important;

}

.npe-btn.red {
    background-color: #c9302c;

}

.npe-btn.red:hover {
    background-color: #d9534f;

}

.npe-btn.disabled {
    opacity: .7;
    cursor: not-allowed;
}

.npe-button.wide {
    width: 100%;
    display: inline-block;
    max-width: 350px;
}

.npe_btn:hover, .npe-btn:hover, .npe-button:hover {
    background-color: var(--npe-secondary-color);
}

.npe_btn.loading, .npe-btn.loading {
    pointer-events: none;
    opacity: .7;
    position: relative;
}

.npe_btn.loading::after, .npe-btn.loading::after {
    content: '';
    display: inline-block;
    position: absolute;
    right: 10px;
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}


.npe-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    width: 800px;
    max-width: 100%;
}

.npe-event-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}

.npe-event-card:hover {
    transform: translateY(-4px);
}

.npe-event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.npe-event-content {
    padding: 1rem;
}

.npe-event-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 0.5rem;
}

.npe-event-date {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.npe-event-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 1rem;
}


.npe-household-container {

    font-size: 1rem;

    font-family: var(--npe-font-family), sans-serif !important;
}

.npe-household-header,
.npe-household-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
    gap: .8rem;
}

.npe-household-header {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.npe-household-row {
    background: #fff;
    transition: background 0.2s;
}

.npe-household-row:hover {
    background: #f1f1f1;
}

@media (max-width: 600px) {
    .npe-household-header {
        display: none;
    }

    .npe-household-row {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .npe-household-row span {
        display: block;
        margin-bottom: 0.5rem;
    }

    .npe-household-row span::before {
        font-weight: bold;
        display: inline-block;
        width: 80px;
    }

    .npe-household-row span:nth-child(1)::before {
        content: "firstName: ";
    }

    .npe-household-row span:nth-child(2)::before {
        content: "firstName: ";
    }

    .npe-household-row span:nth-child(3)::before {
        content: "Date of Birth: ";
    }

    .npe-household-row span:nth-child(4)::before {
        content: "Relationship: ";
    }
}


.npe-icon {
    width: 20px;
    height: 20px;
    display: inline-block;

}


.editable.npe-editing {
    background-color: #fffce8;
    border-bottom: 1px dashed #888;
    background: #f9f9f9;
    outline: none;
    padding: 2px 4px;
}

.npe-household-row .npe-cancel-icon, .npe-household-row .npe-save-icon {
    display: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
}

.npe-editing .npe-cancel-icon, .npe-editing .npe-save-icon {
    display: inline-block;
}

.npe-edit-member {
    cursor: pointer;
    outline: solid 1px var(--npe-primary-color);
    border-radius: 100%;
    padding: .1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.npe-editing .npe-edit-member {
    display: none;
}

.npe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}


.npe-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.npe-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.npe-switch .slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.npe-switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.npe-switch input:checked + .slider {
    background-color: #2271b1;
}

.npe-switch input:checked + .slider:before {
    transform: translateX(22px);
}


.npe-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.npe-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.npe-table th,
.npe-table td {
    padding: 8px;
    text-align: left;
}

.npe-table th {
    background-color: #f5f5f5;
}

.npe-input[readonly] {
    /*  background-color: #f0f0f0;*/
    background-color: transparent;
    border: none;
}

.npe-input {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.npe-button {
    margin-right: 5px;
}

@media (max-width: 600px) {
    .npe-table,
    .npe-table thead,
    .npe-table tbody,
    .npe-table th,
    .npe-table td,
    .npe-table tr {
        display: block;
        width: 100%;
    }

    .npe-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        padding: 8px;
    }

    .npe-table td {
        padding: 5px 0;
    }

    .npe-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 100px;
    }

    .npe-table th {
        display: none;
    }
}

.npe-no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 2px solid #eee;
    border-radius: 10px;
    background-color: #f9fafb;
    color: #555;
    max-width: 500px;
    width: 100%;
    margin: 3rem auto;
    font-family: var(--npe-font-family), sans-serif !important;
    user-select: none;
}

.npe-icon.lg {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    stroke: #bbb;
}

.npe-message {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.npe-submessage {
    font-size: 1rem;
    color: #777;
}


/* Modal container */
.npe-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    font-family: var(--npe-font-family), sans-serif !important;
}

/* Backdrop */
.npe-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

/* Modal box */
.npe-modal-dialog {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.npe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
}

.npe-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Close button */
.npe-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #888;
}

.npe-modal-close:hover {
    color: #111;
}


.npe-card {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    max-width: 500px;
    margin: auto;
    transition: transform 0.3s ease;
}


.npe-col-2 {
    grid-column: span 2; /* Span full width of grid */

}

.npe-no-wrap {
    white-space: nowrap;

}

.form-section-heading {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--npe-primary-color); /* darker than #007bff */
    padding-left: 1rem;
}

.form-section-heading h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937; /* Gray-800 */
    font-family: var(--npe-font-family), sans-serif !important;
}


/* Body */
.npe-modal-body {
    padding: 1rem;
    font-size: 0.95rem;
    color: #333;
}

/* Footer */
.npe-modal-footer {
    padding: 1rem;
    text-align: right;
    background: #f8f9fa;
}


.npe-loader {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: npe-spin 0.6s linear infinite;
    margin: auto;
}

@keyframes npe-spin {
    to {
        transform: rotate(360deg);
    }
}

/**flash message */

.npe-flash-message {
    padding: 1em 1.25em;
    margin-bottom: 1rem;
    border-left: 4px solid;
    border-radius: 3px;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    color: #222;
    background-color: #f9f9f9;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.05);
}

.npe-flash-message--error {
    border-color: #e53e3e;
    color: #9b2c2c;
    background-color: #fff5f5;
}

.npe-flash-message--success {
    border-color: #38a169;
    color: #276749;
    background-color: #f0fff4;
}

.npe-flash-message--info {
    border-color: #3182ce;
    color: #2c5282;
    background-color: #ebf8ff;
}


.npe-section {
    padding: 2rem;
    font-family: var(--npe-font-family), sans-serif !important;
    background-color: #f9fafb;
}

.npe-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.npe-card-image {
    width: 100%;
}

.npe-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.npe-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.npe-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.npe-description {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.6;
}


.npe-outreach-details {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    /* margin: 2rem auto;*/
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);*/
    font-family: var(--npe-font-family), sans-serif !important;
    grid-column: 1 / -1; /* Make title span both columns */


}

.npe-outreach-details .npe-form-container {
    box-shadow: none;
}

.npe-outreach-details-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #111827;
    text-align: center;
}

.npe-outreach-details-item {
    margin-bottom: 1.5rem;
}

.npe-outreach-details-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
}

.npe-outreach-details-value {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .npe-outreach-details {
        padding: 1.5rem;
    }

    .npe-outreach-details-title {
        font-size: 1.5rem;
    }

    .npe-outreach-details-label {
        font-size: 1rem;
    }

    .npe-outreach-details-value {
        font-size: 0.95rem;
    }
}


.npe-container p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #111;
    font-weight: 300;
}

.npe-container .title {
    font-size: 2rem;
    font-weight: 400;
    color: #111827;
    margin-bottom: 1.5rem;
    font-family: var(--npe-font-family), sans-serif !important;
}

.npe-container {
    font-family: var(--npe-font-family), sans-serif !important;

}

/* npe form fields */

input[type="text"].npe-text-field, input[type="email"].npe-text-field, input[type="tel"].npe-text-field,
input[type="date"],
input[type="password"].npe-text-field, input[type="number"].npe-text-field,
select.npe-text-field, textarea.npe-text-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: var(--npe-font-family), sans-serif !important;

}

.npe-text-field[readonly] {
    background-color: transparent;
    border: none !important;
}

.npe-text-field:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
    background-color: #fff;
}

/* end npe form fields */

/*login shortcode */

.npe-login-title {
    padding: 0;
    margin: 0;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #111827;
    text-align: center;
}

/*end login shortcode */


/* Responsive behavior */
@media (max-width: 768px) {
    .npe-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .npe-card-content {
        align-items: center;
    }
}

/*utility classes */

.npe-text-left {
    text-align: left;
}

.npe-border-b-2 {
    border-bottom: 2px solid var(--npe-primary-color);
    padding-bottom: 0.5rem;
}

.npe-text-md {
    font-size: 1.1rem;
}

.npe-text-sm {
    font-size: 1rem;
}

.npe-font-normal {
    font-weight: 400;
}

.npe-flex {
    display: flex;
}

.npe-gap-1 {
    gap: 0.25rem;
}

.npe-text-center {
    text-align: center;
}

.npe-text-primary {
    color: var(--npe-primary-color);
}

.npe-text-bold {
    font-weight: 600;
}

.npe-container svg.size-6 {
    width: 1.2rem;
    margin-bottom: -2px;
}

.npe-pt-2 {
    padding-top: 1rem;
}

.npe-pt-1 {
    padding-top: 0.5rem;
}

.npe-pt-4 {
    padding-top: 2rem;
}

.npe-mt-1 {
    margin-top: .5rem;
}

.npe-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937; /* Gray-800 */
    margin: 0;
}

.npe-text-center {
    text-align: center;
}

.npe-form-container svg {

    color: var(--npe-primary-color);
}

.npe-capitalize {
    text-transform: capitalize;
}

/* calendar */

#npe-calendar a {
    color: var(--npe-primary-color);
    font-family: var(--npe-font-family), sans-serif !important;
}

#npe-calendar .fc-col-header-cell {
    font-size: 1.2rem;
}

.npe-disabled-day {
    color: #ccc;
    pointer-events: none;
    background-color: #f9f9f9 !important;
}

.npe-disabled-day a {
    text-decoration: none;
}


.npe-disabled-day * {
    pointer-events: none;
    background-color: #f9f9f9;
    color: #ccc;

}

#npe-calendar {
    max-width: 800px;
    margin: auto;
}

.npe-timeslots {

    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 800px;
    margin: auto;
    margin-top: 1rem;

    align-items: center;
    justify-content: center;

}

.npe-timeslots {
    display: none;
}

.npe-timeslots .npe-btn {
    width: auto;
}

.npe-disabled-day div {
    text-decoration: line-through;
}

#npe-calendar .fc-daygrid-day-frame {
    display: flex;
    justify-content: center;
}

#npe-calendar .fc-daygrid-day-number div {
    font-size: 1.7rem !important;

}

#npe-calendar .fc-button-primary {
    background-color: var(--npe-primary-color);
    border-color: var(--npe-primary-color);


}

#npe-calendar .fc .fc-col-header-cell-cushion {
    color: #111111
}

.npe-day-clicked {
    background-color: var(--npe-primary-color);
}

.npe-day-clicked a {
    background-color: var(--npe-primary-color) !important;
    color: #fff !important;
}


.fc-daygrid-day {
    cursor: pointer;
}

#npe-calendar.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 1;
}

.npe-form-outreach-registration label {
    font-size: 22px;
}

.npe-registration-listing-household-title {
    padding-bottom: 1rem;
}


/** upcoming user services */

.npe-upcoming-service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1000px;
    margin: auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .npe-upcoming-service-list {
        grid-template-columns: 1fr 1fr;
    }
}

.npe-upcoming-service-item {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: transform 0.2s ease;
}

.npe-upcoming-service-item:hover {
    transform: translateY(-2px);
}

.npe-upcoming-service-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.npe-upcoming-service-meta {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}


/* accordion **/

.npe-accordion {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.npe-accordion-item {
    border-bottom: 1px solid #ddd;
    background: white;
}

.npe-accordion-header {
    background: #fff;
    padding: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.npe-accordion-header:hover {
    background: #f0f0f0;
}

.npe-accordion-content {
    display: none;
    background: #fafafa;
    padding: 1rem;
}

.npe-accordion-header.open .npe-icon {
    transform: rotate(90deg);
}

.npe-icon {
    transition: transform 0.3s ease;
}

.npe-member-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.npe-member-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.npe-member-list input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;

}

.npe-member-list label {
    cursor: pointer;
}

.npe-accordion .npe-total-registrations {
    display: none;
}

/* end accordion */

.npe-img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.npe-img.npe-lazy-loaded {
    opacity: 1;
}

.npe-data-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.npe-data-loading * {
    visibility: hidden;
}

.npe-data-loading::before,
.npe-data-loading::after {
    content: '';
    position: absolute;
    left: 0;
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 4px;
}

.npe-data-loading::before {
    top: 1rem;
    height: 1.25rem;
    width: 50%;
}

.npe-data-loading::after {
    top: 3rem;
    height: 10rem;
    width: 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}