#acld-volunteer-calendar {
    max-width: 910px;
    margin: 2rem 0;
  background: #fff;
  border-radius: 0px;
  padding: 0rem;
}
#acld-volunteer-title h3{
    font-weight: 700;
    text-align: left;
    margin: 25px 0 20px;
    display: none;           /* JS toggles this on click */
}

.fc .fc-toolbar-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--global-palette3);
}

.fc .fc-toolbar {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 10px;
}

.fc .fc-button-primary {
  background: var(--global-palette2);
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.fc .fc-button-primary:hover {
  background: #872573;
}
/* Volunteer Calendar Styling */
.fc-event {
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-align: center;
  padding: 4px 6px;
  cursor:pointer;
}

.fc-daygrid-event-dot {
  display: none !important; /* remove default dot */
}

.fc-daygrid-day-number {
  font-weight: 600;
}


/* Modal */
.volunteer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.volunteer-modal.active {
  display: flex !important;
}
.volunteer-modal #gform_wrapper_2 {
    background: #fff;
    border-radius: 10px;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
}
.volunteer-modal::before {
  content: '×';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  background: #962b80;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgb(240 240 240);
}
.volunteer-summary {
padding: 2rem 2rem 1rem;
    text-align: left;
    border-bottom: none;
}

.volunteer-summary h2 {
  font-size: 1.8rem;
  
  margin-bottom: 0.5rem;
  color: inherit;
}

.volunteer-description {
  font-size: 17px;
  color: inherit;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.volunteer-time-block {
  font-size: 20px;
  color: var(--global-palette3);
    font-weight: 500;
    font-family: var(--global-heading-font-family, inherit);
    line-height: 1.3;
}

.volunteer-time-block strong {
    color: var(--global-palette3);
    font-weight: 500;
    font-family: var(--global-heading-font-family, inherit);
    text-transform: uppercase;
    font-size: 20px;
}

.volunteer-form-wrap {
  padding: 0rem 2rem 2rem;
  background: #ffffff;
  border-top: 0px solid #ddd;
}

.volunteer-summary .hours {
  font-weight: 600;
  color: var(--global-palette3)000;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === Volunteer Opportunity Grid === */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 2fr));
    gap: 13px;
  margin: 20px 0px;
}

.volunteer-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.volunteer-card:hover {
  border-color: #962a81;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.volunteer-card.active {
    color: var(--global-palette3)000;
    border-color: #962a81;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.volunteer-card-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 700;
}

.volunteer-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* === Clear Button === */
.volunteer-clear-btn {
  background: #bbb;
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 6px 14px 3px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: background 0.2s;
}

.volunteer-clear-btn:hover {
  background: #999;
}

.acld-my-shifts {
    margin-top: 35px;
}
.acld-my-shifts h3 {
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
    font-size: 28px;
    color: var(--global-palette3);
    text-transform: uppercase;
}
.acld-my-shifts h4 {
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
    text-transform: capitalize; 
    color: var(--global-palette3);
}
.acld-shifts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.acld-shifts-table th {
    background: var(--global-palette8);
    padding: 10px;
    font-weight: 700;
    font-size: 15px;
}

.acld-shifts-table td {
    border-bottom: 1px solid #dddddd;
}

.acld-shifts-table tr:hover td {
    background: #fafafa;
}
/* Group headers */
.acld-group-title {
    margin-top: 30px;
    color: #962b80;
    font-size: 1.4rem;
    font-weight: 700;
    text-align:left;
}

/* Completed shifts styling */
.completed-shift td {
        color: #666;
    font-weight: 600;
    font-size: 15px;
}

/* Make the checkmark green */
.acld-shifts-table td:nth-child(4) {
    font-weight: 600;
     text-align:left;
}

/* -----------------------------------------------------------
   LOADER SPINNER
----------------------------------------------------------- */
.acld-loader {
    margin: 20px auto;
    width: 38px;
    height: 38px;
    border: 4px solid #ccc;
    border-top-color: #962b80;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* -----------------------------------------------------------
   FADE-IN EFFECT
----------------------------------------------------------- */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* -----------------------------------------------------------
   FULLY BOOKED BADGE
----------------------------------------------------------- */
.acld-badge-full {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #b71c1c;
    color: #fff;
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 10;
}

/* Make each event cell relative so we can position the badge */
.fc-daygrid-event {
    position: relative;
}

/* Tablet + mobile: remove extra gap below day events in natural-height month grid */
@media (max-width: 1024px) {
    .fc .fc-daygrid-body-natural .fc-daygrid-day-events {
        margin-bottom: 0;
    }
}

/* -----------------------------------------------------------
   MOBILE IMPROVEMENTS
----------------------------------------------------------- */
@media (max-width: 768px) {

    #acld-volunteer-calendar {
        margin: 1rem 0 1rem;
    }

    .acld-volunteer-calendar-list {
        padding-top: 20px;
    }

    .fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
        min-height: 1em;
    }

    /* Center day numbers in each cell (default FullCalendar aligns them end/right) */
    .fc .fc-daygrid-day-top {
        justify-content: center;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 14px;
    }

    /* Reduce calendar title size */
    #acld-volunteer-title {
        margin: 15px 0;
    }

    /* Month grid on small screens: allow horizontal scroll if the grid is wider than the viewport */
    #acld-volunteer-calendar-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #acld-volunteer-calendar-wrapper .fc {
        min-width: 300px;
    }

    /* Improve tap targets */
    .volunteer-card {
        padding: 15px;
    }

    /* Reduce event padding and improve visibility */
    .custom-event-content {
        font-size: 0.9rem;
        padding: 2px 4px;
    }

    .fc-daygrid-day-number {
        font-size: 12px;
    }

    /* Month grid: compact tappable dot; full shift info opens in modal */
    #acld-volunteer-calendar-wrapper .fc-daygrid-event.acld-daygrid-dot-only {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 2px auto !important;
        min-height: 20px;
        min-width: 40px;
        width: 40px !important;
        max-width: 40px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    #acld-volunteer-calendar-wrapper .fc-daygrid-event.acld-daygrid-dot-only .fc-event-main {
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .acld-mobile-shift-dot {
        display: block;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .acld-mobile-shift-dot--available {
        background: #fbc02d;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    }

    .acld-mobile-shift-dot--mine {
        background: #e8f5e9;
        border: 2px solid #2e7d32;
        box-sizing: border-box;
        box-shadow: none;
    }

    .acld-mobile-shift-dot--cancelled {
        background: #c62828;
    }

    /* Make modal better on mobile */
    .volunteer-modal .modal-content {
        width: 90%;
        padding: 0;
    }
}
/* Smooth fade-in for the calendar wrapper */
#acld-volunteer-calendar-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#acld-volunteer-calendar-wrapper.is-visible {
    opacity: 1;
}

/* Loader spinner */
.acld-calendar-loader {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.acld-calendar-loader::after {
    content: "";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #962b80;
    animation: acld-spin 0.7s linear infinite;
}

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

/* Full badge */
.acld-badge-full {
    display: inline-block;
    background: #b71c1c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Past events dimmed */
.acld-event-past {
    opacity: 0.5;
}

/* Fully booked event style */
.acld-event-full {
    background-color: #eee !important;
    border-color: #ccc !important;
    color: #555 !important;
}

/* Ensure our custom event content lays out nicely */
.custom-event-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 2px 0;
    line-height: 1.25;
    font-size: 11px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .fc .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 0;
    }

    .custom-event-content {
        font-size: 12px;
    }

    .calendar-grid {
        grid-template-columns: 1fr !important;
    }
}
.ginput_container.ginput_container_consent {
    line-height: 1.2em;
}
legend.gfield_label.gform-field-label.gfield_label_before_complex {
    line-height: 1.3em;
}
label.gform-field-label.gform-field-label--type-inline.gfield_consent_label {
    font-size: 16px;
    line-height: 10px;
}
/* -----------------------------------------------------------
   MODAL — REFINED DESIGN WITH SVG ICONS
----------------------------------------------------------- */

/* My Shift read-only modal header (reuses .acld-badge-mine) */
.vc-my-shift-header {
    margin: 0 0 1rem;
}

/* Confirm booking title */
.vc-confirm-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 1.4rem;
  color: var(--global-palette3);
}

/* Opportunity title */
.vc-opp-title {
  margin: 0 0 0.8rem;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Description */
.vc-description {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Note */
.vc-note {
  margin: 0.4rem 0 1.4rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Date/Time layout */
.vc-datetime {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
}

/* Kadence-style calendar icon */
.vc-date-icon {
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 19px;
  background-position: center;
  flex-shrink: 0;
  margin-top: 10px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 448 512' fill='%23962b80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z'/%3E%3C/svg%3E");
}


/* Date text block */
.vc-date-text .vc-date {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--global-palette3);
}

.vc-date-text .vc-time {
  margin: 3px 0 0 0;
  font-size: 1.1rem;
  color: var(--global-body-text-color);
}

/* Duration block */
.vc-duration {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

/* Kadence-style clock icon */
.vc-clock-icon {
  width: 19px;
  height: 19px;
  background-repeat: no-repeat;
  background-size: 19px;
  background-position: center;
  flex-shrink: 0;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' fill='%23962b80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm57.1 350.1L224.9 294c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v137.7l63.5 46.2c5.4 3.9 6.5 11.4 2.6 16.8l-28.2 38.8c-3.9 5.3-11.4 6.5-16.8 2.6z'/%3E%3C/svg%3E");
}
.vc-hours {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--global-palette3);
}
.volunteer-summary p.vc-description,
.volunteer-summary p.vc-note {
    margin-bottom: 0.5rem !important;
}

.volunteer-summary .vc-datetime {
    margin-top: 0.8rem !important;
}
/* Responsive scroll wrapper */
.acld-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 6px;
}
/* Better table behavior inside scroll container */
.acld-table-scroll table {
    min-width: 650px; /* forces scroll but keeps layout readable */
}
/* Highlight scrollability */
.acld-table-scroll::-webkit-scrollbar {
    height: 6px;
}
.acld-table-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.acld-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
@media (max-width: 768px) {
    .vc-confirm-title {
        font-size: 1rem;
    }

    .volunteer-summary h2 {
        font-size: 1.4rem;
    }

    .vc-duration {
        margin-bottom: 0;
    }

    .vc-date-text .vc-date {
        font-size: 1rem;
    }

    .vc-date-text .vc-time {
        font-size: 0.9rem;
        margin: 0;
    }

    .vc-hours {
        font-size: 1rem;
    }

    .volunteer-summary {
        padding: 1rem 1.2rem 0;
    }

    .volunteer-form-wrap {
        padding: 1rem 1.2rem 1rem;
    }

    .volunteer-modal .gform_wrapper.gravity-theme .gfield_label {
        font-size: 15px;
    }

    .volunteer-modal .gform_wrapper.gravity-theme .gfield_checkbox label {
        font-size: 14px;
    }

    .volunteer-modal .gform_wrapper.gravity-theme .gform_footer input {
        margin-bottom: 0;
    }

    .acld-shifts-table th,
    .acld-shifts-table td {
        padding: 8px 10px;
        font-size: 14px;
        white-space: nowrap; /* keep columns from wrapping awkwardly */
    }
    .acld-shifts-table td {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .acld-group-title {
        font-size: 1.2rem;
    }
    .acld-status-badge {
    padding: 3px 8px !important;
    font-size: 12px !important;
    }
}
/* Default available shift — yellow */
.fc-event.acld-available {
    background-color: #ffeb3b !important;
    border-color: #fbc02d !important;
    color: #000 !important;
}
.acld-badge-mine {
    background: #2e7d32;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    font-size: 12px;
    margin-bottom: 4px;
}
.acld-badge-cancelled {
    background: #c62828;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    font-size: 12px;
    margin-bottom: 4px;
}
/* Disable pointer on My Shift and Cancelled shifts (mobile dots: mine is tappable for details) */
.fc-event.acld-mine,
.fc-event.acld-cancelled {
    cursor: default !important;
}

#acld-volunteer-calendar-wrapper .fc-daygrid-event.acld-daygrid-dot-only.acld-mine {
    cursor: pointer !important;
}

/* Inline container spacing */
.acld-volunteer-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Smaller volunteer toggle button */
.acld-toggle-volunteers.button {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.2;
    height: auto;
    border-radius: 3px;
}

/* Make the count bold + centered */
.acld-volunteer-count {
    font-weight: 600;
}
#acld-toast.acld-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(8px);
    background: #e8f7ee;
    border: 1px solid #2f8f4e;
    color: #1f6e3a;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 999999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

#acld-toast.acld-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* -----------------------------------------------------------
   TRAINING POPUP (ACLDPopup)
----------------------------------------------------------- */
#acld-popup.acld-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index: 999999;
}

#acld-popup.acld-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#acld-popup .acld-popup-box {
    width: min(640px, 92vw);
    background: #fff;
    border-radius: 0px;
    padding: 26px 23px 20px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
    transform: translateY(10px) scale(0.98);
    transition: transform 180ms ease;
    border: 1px solid rgba(0,0,0,0.06);
}

#acld-popup.acld-popup-overlay.active .acld-popup-box {
    transform: translateY(0) scale(1);
}

#acld-popup .acld-popup-message {
    font-size: 20px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--global-palette3);
    text-align: center;
    margin: 0 0 18px;
}

#acld-popup .acld-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 44px;
    margin: 0 auto;
    border: 0;
    border-radius: 12px;
    background: var(--global-palette2);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

#acld-popup .acld-popup-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

#acld-popup .acld-popup-close:active {
    transform: translateY(0);
    opacity: 0.92;
}

#acld-popup .acld-popup-close:focus-visible {
    outline: 3px solid rgba(150, 43, 128, 0.35);
    outline-offset: 3px;
}

/* Mobile sizing */
@media (max-width: 480px) {
    #acld-popup .acld-popup-message {
        font-size: 18px;
    }
    #acld-popup .acld-popup-box {
        padding: 22px 18px 18px;
        border-radius: 16px;
    }
}

/* Force badge styling (put at END of file) */
.acld-status-badge{
  display:inline-block !important;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid #d0d5dd;
  font-weight:600;
  font-size:14px;
  line-height:1.2;
  white-space:nowrap;
}

.acld-status-badge.acld-status-confirmed{
  background:#eaf7ee !important;
  border-color:#b7e4c7 !important;
  color:#1b5e20 !important;
}

.acld-status-badge.acld-status-cancelled{
  background:#fdecec !important;
  border-color:#f5b5b5 !important;
  color:#b71c1c !important;
}
/* Completed shift badge */
.acld-status-completed{
  background: #f2f2f2;
  border-color: #d5d5d5;
  color: #6b6b6b;
}

/* My booked shift should be pale green */
.fc-event.acld-mine {
  background-color: #e8f5e9 !important;
  border-color: #2e7d32 !important;
  color: #000 !important;
}

/* If a mine event ever also gets acld-available, mine wins */
.fc-event.acld-mine.acld-available {
  background-color: #e8f5e9 !important;
  border-color: #2e7d32 !important;
}