<style>
/* Page wrapper */
.sgs-snack-signup {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
}

/* Title */
.sgs-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Table */
.sgs-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.sgs-calendar-table th {
    background: #003366;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    text-align: left;
}

.sgs-calendar-table td {
    padding: 14px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}

/* Filled rows */
.sgs-calendar-table tr.filled td {
    background: #f0f7ff;
}

/* Available rows */
.sgs-calendar-table tr.available td {
    background: #fdfdfd;
}

/* Form styling */
.sgs-calendar-table form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sgs-calendar-table input[type="text"],
.sgs-calendar-table input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.sgs-calendar-table button {
    background: #003366;
    color: #fff;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.sgs-calendar-table button:hover {
    background: #0055a5;
}

/* Leader-only cancel button */
.sgs-calendar-table button.cancel {
    background: #b30000;
}

.sgs-calendar-table button.cancel:hover {
    background: #e60000;
}

/* Mobile */
@media (max-width: 600px) {
    .sgs-calendar-table th,
    .sgs-calendar-table td {
        font-size: 14px;
        padding: 10px;
    }

    .sgs-calendar-table form {
        gap: 6px;
    }
}

/* Modal background */
.sgs-modal {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 99999;
}

/* Modal box */
.sgs-modal-content {
    background: #fff;
    width: 450px;
    margin: 80px auto;
    padding: 20px 30px;
    border-radius: 8px;
    position: relative;
}

/* Close button */
.sgs-close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Form fields */
#sgs-signup-form label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

#sgs-signup-form input {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#sgs-signup-form button {
    margin-top: 20px;
    width: 100%;
    background: #003366;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

#sgs-signup-form button:hover {
    background: #0055a5;
}

/* Modal background fade-in */
.sgs-modal {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.0);
    display: none;
    z-index: 99999;
    animation: sgsFadeIn 0.25s forwards;
}

@keyframes sgsFadeIn {
    from { background: rgba(0,0,0,0); }
    to   { background: rgba(0,0,0,0.6); }
}

/* Modal box slide-up */
.sgs-modal-content {
    background: #fff;
    width: 450px;
    margin: 120px auto;
    padding: 20px 30px;
    border-radius: 10px;
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    animation: sgsSlideUp 0.35s ease-out forwards;
}

@keyframes sgsSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close button */
.sgs-close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Modal title with icon */
.sgs-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ICONS — inline SVG via CSS */
.sgs-icon {
    width: 26px;
    height: 26px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Snack icon (cookie) */
.sgs-icon-snack {
    background-image: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' fill='%23003366' viewBox='0 0 24 24'>\
        <path d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1 5a1 1 0 112 0 1 1 0 01-2 0zm4 3a1 1 0 110 2 1 1 0 010-2zm-6 1a1 1 0 110 2 1 1 0 010-2zm3 4a1 1 0 110 2 1 1 0 010-2z'/>\
        </svg>");
}

/* Calendar icon */
.sgs-icon-calendar {
    background-image: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' fill='%23003366' viewBox='0 0 24 24'>\
        <path d='M7 2v2H5a2 2 0 00-2 2v2h18V6a2 2 0 00-2-2h-2V2h-2v2H9V2H7zm13 8H4v10a2 2 0 002 2h12a2 2 0 002-2V10z'/>\
        </svg>");
}

/* Checkmark icon */
.sgs-icon-check {
    background-image: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' fill='%23003366' viewBox='0 0 24 24'>\
        <path d='M20 6l-11 11-5-5 1.5-1.5L9 14l9.5-9.5L20 6z'/>\
        </svg>");
}

/* Form fields */
#sgs-signup-form label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

#sgs-signup-form input {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#sgs-signup-form button {
    margin-top: 20px;
    width: 100%;
    background: #003366;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#sgs-signup-form button:hover {
    background: #0055a5;
}

.sgs-calendar {
    margin: 20px 0;
    padding: 10px;
}

.sgs-cal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.sgs-cal-day {
    background: #f7f9fc;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sgs-cal-day:hover {
    background: #e8f0ff;
    transform: translateY(-2px);
}

.sgs-cal-date {
    font-size: 16px;
    font-weight: 600;
    margin-top: 6px;
}
.sgs-cal-day.sgs-filled {
    background: #e6ffe6;
    border-color: #8bc98b;
}

/* Meeting day highlight */
.sgs-cal-day.sgs-meeting {
    background: #dce9ff;        /* light Belmont blue */
    border-color: #7aa7e6;
}

.sgs-cal-day.sgs-meeting:hover {
    background: #c5dbff;
}

/* Modal background */
.sgs-modal {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 99999;
    overflow-y: auto; /* allow scrolling on small screens */
}

/* Modal box */
.sgs-modal-content {
    background: #fff;
    width: 90%;              /* mobile-friendly */
    max-width: 450px;        /* desktop limit */
    margin: 40px auto;       /* smaller margin for phones */
    padding: 20px;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;
}

/* Close button */
.sgs-close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;         /* bigger for touch */
    cursor: pointer;
}

/* Form fields */
#sgs-signup-form label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

#sgs-signup-form input {
    width: 100%;
    padding: 12px;           /* bigger tap target */
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;         /* readable on phones */
}

/* Submit button */
#sgs-signup-form button {
    margin-top: 20px;
    width: 100%;
    background: #003366;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

/* Desktop enhancements */
@media (min-width: 600px) {
    .sgs-modal-content {
        margin: 80px auto;
        padding: 30px;
    }
}


</style>