.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0,0,0,0.6);
    z-index: 999999999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-content {
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    max-width: 700px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    flex-direction: row;
    margin: auto;
}

.modal-left {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    padding: 20px;
    box-sizing: border-box;
}

.modal-left img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.modal-right {
    flex: 1 1 60%;
    padding: 30px;
    background: #fff;
    box-sizing: border-box;
}

.modal-right h3 {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    font-family: "Bayon", sans-serif;
}

#workshopBookingForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 15px;
}

#workshopBookingForm .form-group {
    display: flex;
    flex-direction: column;
    grid-column: span 1;
}

#workshopBookingForm .form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.2s;
    width: 100%;
    box-sizing: border-box;
}

#time {
    width: 100%;
    box-sizing: border-box;
}

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

.btn.btn-primary {
    padding: 12px 20px;
    background-color: #12b981;
    color: white;
    border: none;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    grid-column: span 2;
    justify-self: flex-start;
}

.btn.btn-primary:hover {
    background-color: green;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.book-now-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: #e9082a;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.book-now-btn:hover {
    background-color: #c30724; /* Slightly darker red on hover */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-overlay.show {
    animation: fadeInScale 0.3s ease-out;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-left {
        display: none;
    }

    .modal-content {
        flex-direction: column;
        max-width: 100%;
        padding: 10px;
    }

    .modal-right {
        flex: 1 1 100%;
        padding: 20px;
    }

    #workshopBookingForm {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    #workshopBookingForm .form-group,
    #workshopBookingForm .form-group.full-width {
        grid-column: span 1;
    }

    .btn.btn-primary {
        grid-column: span 1;
        width: 100%;
    }


    .btn.btn-primary {
        grid-column: span 1;
        width: 100%;
    }

    .foundersmeetups-title {
        margin-bottom: 5px;
    }

    .form-group input {
        width: 100%;
        box-sizing: border-box;
    }
}


@media (max-width: 500px) {
    .form-group input {
        width: 270px !important;
    }
    .modal-overlay {
        padding:1px;
    }
}


