/*
Theme Name: jewishsocial
Theme URI: jewishsocial.nyc
Template: hello-elementor
Author: jewishsocial
Author URI: jewishsocial.nyc
Version: 1.3.1.1756113027
Updated: 2025-08-25 05:10:27

*/

/* Fix vertical alignment of religious level icon in event meta */
.espbp-add-label {
    display: flex;
    align-items: center;
}
.espbp-add-label::after {
    display: block;
    transform: translateY(2px);
}

/* ============================================================
   Community Event Submission Form – Enhanced Styling
   ============================================================ */

/* ---- Intro header banner ---- */
.jsc-form-header {
    background: linear-gradient(135deg, var(--global-palette3, #1e2a38) 0%, #2c3e52 100%);
    color: #fff;
    padding: 32px 36px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.jsc-form-header-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.jsc-form-header-text h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.jsc-form-header-text p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- My Events link button ---- */
.my-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.my-events-header .my-events {
    display: none; /* hidden – replaced by jsc-form-header */
}
.my-events-header .tribe-button-secondary {
    font-size: 0.82rem !important;
    padding: 7px 16px !important;
    border-radius: 6px !important;
    letter-spacing: 0.04em;
}

/* ---- Section card base ---- */
.tribe-section,
.tribe-events-community-details.eventForm.bubble {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ---- Section headers ---- */
.tribe-section-header,
.tribe_sectionheader {
    background: #f7f9fc;
    border-bottom: 1px solid #e4e8ee;
    padding: 12px 22px;
}
.tribe-section-header h3,
.tribe_sectionheader h4,
.tribe_sectionheader h4 label {
    margin: 0;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: var(--global-palette3, #1e2a38) !important;
    line-height: 1.4;
}

/* ---- Section content padding ---- */
.tribe-section-content,
.tribe-community-event-info {
    padding: 22px 24px;
}

/* ---- Standalone title/description sections ---- */
.events-community-post-title,
.events-community-post-content {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    padding: 18px 24px 4px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ---- Labels ---- */
.tribe-events-community-details label,
.tribe-section label,
.events-community-post-title label,
.events-community-post-content label {
    display: block;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: var(--global-palette4, #555) !important;
    margin-bottom: 7px !important;
}

/* ---- Inputs, selects, textareas ---- */
.tribe-events-community-details input[type="text"],
.tribe-events-community-details input[type="url"],
.tribe-events-community-details input[type="tel"],
.tribe-events-community-details input[type="email"],
.tribe-events-community-details select,
.tribe-section input[type="text"],
.tribe-section input[type="url"],
.tribe-section input[type="tel"],
.tribe-section input[type="email"],
.tribe-section input[type="number"],
.tribe-section select,
.tribe-section textarea,
.events-community-post-title input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 13px !important;
    border: 1.5px solid #d0d5dd !important;
    border-radius: 7px !important;
    font-size: 0.94rem !important;
    color: var(--global-palette3, #1e2a38) !important;
    background: #fff !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    margin-bottom: 14px !important;
    appearance: none;
}
.tribe-events-community-details input[type="text"]:focus,
.tribe-events-community-details input[type="url"]:focus,
.tribe-events-community-details input[type="tel"]:focus,
.tribe-events-community-details select:focus,
.tribe-section input:focus,
.tribe-section select:focus,
.tribe-section textarea:focus,
.events-community-post-title input[type="text"]:focus {
    outline: none !important;
    border-color: var(--global-palette-highlight, #1e7ef0) !important;
    box-shadow: 0 0 0 3px rgba(30, 126, 240, 0.13) !important;
}

/* ---- Venue / Organizer row divs ---- */
.venue, .organizer {
    margin-bottom: 4px;
}

/* ---- Date picker inputs – don't stretch ---- */
.tribe-section td input[type="text"],
input.tribe-datepicker,
input#EventStartDate,
input#EventEndDate {
    width: auto !important;
    max-width: 140px !important;
    display: inline-block !important;
    margin-bottom: 0 !important;
}

/* ---- Image upload drop zone ---- */
.tribe-section-image-uploader .tribe-section-content {
    padding-top: 0;
}
.tribe-image-upload-area {
    border: 2px dashed #c8d0dc;
    border-radius: 10px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    background: #fafbfc;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.tribe-image-upload-area:hover {
    border-color: var(--global-palette-highlight, #1e7ef0);
    background: rgba(30, 126, 240, 0.03);
}
.tribe-image-upload-area .jsc-upload-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
    display: block;
    opacity: 0.55;
}
.tribe-image-upload-area .note p {
    color: var(--global-palette5, #777);
    font-size: 0.83rem;
    margin: 0 0 16px;
}
.tribe-image-upload-area .form-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.tribe-image-upload-area #uploadFile {
    display: none !important;
}
.tribe-image-upload-area .selected-msg {
    display: none;
}
.tribe-image-upload-area .choose-file.tribe-button,
.tribe-image-upload-area label.choose-file {
    display: inline-block !important;
    background: var(--global-palette-btn-bg, #1e7ef0) !important;
    color: var(--global-palette-btn, #fff) !important;
    border: none !important;
    border-radius: 7px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    transition: background 0.18s ease, transform 0.1s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14) !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
}
.tribe-image-upload-area .choose-file.tribe-button:hover,
.tribe-image-upload-area label.choose-file:hover {
    background: var(--global-palette-btn-bg-hover, #1565c0) !important;
    transform: translateY(-1px) !important;
}
.tribe-image-upload-area.has-image {
    border-style: solid;
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.03);
}
.tribe-remove-upload {
    text-align: center;
    margin-top: 10px;
}
.tribe-remove-upload a {
    color: #e53935;
    font-size: 0.82rem;
    text-decoration: none;
}
.tribe-remove-upload a:hover {
    text-decoration: underline;
}

/* ---- Terms section ---- */
.tribe-section-terms .tec-event-terms-description {
    background: #f7f9fc;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--global-palette4, #555);
    max-height: 110px;
    overflow-y: auto;
    margin-bottom: 14px;
    line-height: 1.6;
}
.tribe-section-terms input[type="checkbox"] {
    width: auto !important;
    margin-right: 8px !important;
    margin-bottom: 0 !important;
    accent-color: var(--global-palette-highlight, #1e7ef0);
    transform: scale(1.15);
    vertical-align: middle;
}
.tribe-section-terms .tribe-section-content label {
    display: inline !important;
    text-transform: none !important;
    font-size: 0.9rem !important;
    letter-spacing: 0 !important;
    font-weight: 600 !important;
    vertical-align: middle;
}

/* ---- Submit button ---- */
.tribe-events-community-footer {
    padding: 20px 0 4px;
    text-align: center;
}
.tribe-events-community-footer input.tribe-button.events-community-submit {
    display: inline-block !important;
    background: var(--global-palette-btn-bg, #1e7ef0) !important;
    color: var(--global-palette-btn, #fff) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 52px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
    min-width: 200px !important;
    text-transform: none !important;
}
.tribe-events-community-footer input.tribe-button.events-community-submit:hover {
    background: var(--global-palette-btn-bg-hover, #1565c0) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}
.tribe-events-community-footer input.tribe-button.events-community-submit:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

/* ---- "Schedule Multiple Events" recurrence button ---- */
.tribe-events-community-recurrence-toggle,
button.tribe-events-recurrence-toggle,
#tribe-event-recurrence-add {
    background: transparent !important;
    border: 1.5px solid var(--global-palette3, #1e2a38) !important;
    color: var(--global-palette3, #1e2a38) !important;
    border-radius: 6px !important;
    padding: 8px 18px !important;
    font-size: 0.78rem !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: all 0.18s ease !important;
}
.tribe-events-community-recurrence-toggle:hover,
button.tribe-events-recurrence-toggle:hover,
#tribe-event-recurrence-add:hover {
    background: var(--global-palette3, #1e2a38) !important;
    color: #fff !important;
}

/* ---- Required markers ---- */
abbr[title="required"],
.tribe-required {
    color: #e53935;
    text-decoration: none;
}

/* ---- Error states ---- */
.tribe-section input.tribe-error,
.tribe-section select.tribe-error,
.tribe-section textarea.tribe-error,
.tribe-events-community-details input.tribe-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12) !important;
}
label.error, label.tribe-error {
    color: #e53935 !important;
    font-size: 0.78rem !important;
    margin-top: -10px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .jsc-form-header {
        padding: 22px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .jsc-form-header-text h2 { font-size: 1.25rem; }
    .tribe-section-content,
    .tribe-community-event-info {
        padding: 16px;
    }
    .events-community-post-title,
    .events-community-post-content {
        padding: 14px 16px 2px;
    }
}

/* ── Birthday page: event bullet points ── */
.jp-event-bullets {
    margin: 10px 0 14px 0;
    padding-left: 18px;
    list-style: disc;
}
.jp-event-bullets li {
    font-size: 14px;
    color: rgb(102, 102, 102);
    margin-bottom: 4px;
    line-height: 22.4px;
    font-weight: 400;
}

/* ── Birthday page: TEC ticket form inside .jp-ticket-zone ── */
.jp-ticket-zone .tribe-block__tickets__header,
.jp-ticket-zone .tribe-tickets__tickets-header,
.jp-ticket-zone .tribe-tickets__tickets-title,
.jp-ticket-zone .tribe-tickets__item__extra__available { display: none !important; }

.jp-ticket-zone .tribe-tickets__tickets-form,
.jp-ticket-zone .tribe-block__tickets { background: transparent !important; padding: 0 !important; box-shadow: none !important; border: none !important; }

.jp-ticket-zone .tribe-tickets__tickets-item,
.jp-ticket-zone .tribe-block__tickets__item { background: #fff; border: 1px solid #dde2e8 !important; border-radius: 8px; margin-bottom: 8px; padding-right: 12px !important; padding-left: 12px !important; }

.jp-ticket-zone .tribe-tickets__buy,
.jp-ticket-zone .tribe-tickets__tickets-buy,
.jp-ticket-zone button[name="cart"] {
    background: #F7D03B !important;
    color: #2E383F !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    cursor: pointer;
    margin-top: 8px;
}

.jp-ticket-zone .tribe-tickets__buy:hover,
.jp-ticket-zone .tribe-tickets__tickets-buy:hover,
.jp-ticket-zone button[name="cart"]:hover { background: #efc51c !important; }

/* Normalize +/- quantity buttons — removes browser-default border/outline */
.jp-ticket-zone .tribe-tickets__tickets-item-quantity-remove,
.jp-ticket-zone .tribe-tickets__tickets-item-quantity-add {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #2E383F;
    font-size: 18px;
    font-weight: 700;
    padding: 2px 10px;
    line-height: 1;
}

.jp-ticket-zone .tribe-tickets__tickets-item-quantity-remove:hover,
.jp-ticket-zone .tribe-tickets__tickets-item-quantity-add:hover { color: #F7D03B; }
