/* Community event submission: use the DBG typography, colors and square edges. */
#tribe-community-events.tribe-community-events.form {
    --wb-form-border: #c9d6cc;
    --wb-form-muted: #505d53;
    --wb-form-tint: #f3f8f4;
    max-width: 1040px;
    margin: 20px auto 64px;
    padding: 0;
    border: 0;
    color: #202a23;
    font-family: "Gothic A1", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

#tribe-community-events .my-events-header {
    margin: 0 0 24px;
    padding: 0 0 22px;
    border: 0;
    position: relative;
}

#tribe-community-events .my-events-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 4px;
    background: var(--yellow);
}

#tribe-community-events .my-events-header h2.my-events {
    margin: 0;
    color: var(--green);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.25;
}

#tribe-community-events.form > p {
    margin: 0 0 36px;
    padding: 22px 26px;
    background: var(--wb-form-tint);
    border-left: 4px solid var(--green);
    color: #34473a;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

#tribe-community-events a {
    color: #167532;
    text-underline-offset: 3px;
}

#tribe-community-events .events-community-post-title,
#tribe-community-events .events-community-post-content {
    margin: 0 0 28px;
}

#tribe-community-events .events-community-post-title > label,
#tribe-community-events .events-community-post-content > label {
    display: block;
    margin-bottom: 10px;
    color: #202a23;
    font-size: 18px;
    font-weight: 700;
}

#tribe-community-events .req {
    color: var(--wb-form-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}

#tribe-community-events .tribe-section {
    margin: 0 0 28px;
    padding: 0;
    border: 1px solid #dce5de;
    background: #fff;
    border-radius: 0;
}

#tribe-community-events .tribe-section .tribe-section-header {
    margin: 0;
    padding: 20px 26px;
    background: var(--wb-form-tint);
    border-bottom: 1px solid #dce5de;
}

#tribe-community-events .tribe-section .tribe-section-header h3 {
    margin: 0;
    color: #167532;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
}

#tribe-community-events .tribe-section .tribe-section-content {
    width: 100%;
    margin: 0;
    padding: 24px 26px;
}

/* Retain plugin table markup and visibility rules for dynamically added fields. */
#tribe-community-events .tribe-section table.tribe-section-content {
    width: calc(100% - 52px);
    margin: 18px 26px;
    padding: 0;
    table-layout: fixed;
}

#tribe-community-events .tribe-section .tribe-colgroup-label {
    width: 28%;
}

#tribe-community-events .tribe-section .tribe-colgroup-field {
    width: 72%;
}

#tribe-community-events .tribe-section table tr {
    border: 0;
}

#tribe-community-events .tribe-section table td,
#tribe-community-events #event_tribe_organizer td,
#tribe-community-events #event_tribe_venue td {
    padding: 10px 0;
    color: #34473a;
    font-size: 15px !important;
    line-height: 1.6;
    vertical-align: top;
}

#tribe-community-events .tribe-section table td:first-child:not([colspan]) {
    width: 28%;
    padding-right: 24px;
}

#tribe-community-events .tribe-section label {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

#tribe-community-events input:is([type="text"], [type="url"], [type="email"], [type="tel"], [type="number"]):not(.select2-search__field),
#tribe-community-events textarea,
#tribe-community-events select:not(.select2-hidden-accessible) {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--wb-form-border) !important;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #202a23;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

#tribe-community-events #event_tribe_organizer input[type="url"],
#tribe-community-events #event_tribe_venue #StateProvinceText {
    width: 100% !important;
    border-color: var(--wb-form-border) !important;
}

#tribe-community-events textarea#post_content {
    min-height: 220px;
    resize: vertical;
}

#tribe-community-events input::placeholder,
#tribe-community-events textarea::placeholder {
    color: #647268;
    opacity: 1;
    font-size: 14px;
}

#tribe-community-events :is(input, textarea, select, button, a):focus-visible,
#tribe-community-events .select2-container--focus .select2-selection,
#tribe-community-events .tribe-image-upload-area:focus-within {
    outline: 2px solid #167532;
    outline-offset: 3px;
}

#tribe-community-events input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    accent-color: var(--green);
    vertical-align: middle;
}

#tribe-community-events .wb-edit-start-date,
#tribe-community-events .wb-edit-end-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

#tribe-community-events .tribe-datetime-block input.tribe-datepicker {
    width: 150px;
}

#tribe-community-events .tribe-datetime-block input.tribe-timepicker {
    width: 100px;
}

#tribe-community-events .tribe-datetime-separator {
    flex: 0 0 28px;
}

#tribe-community-events .tribe-image-upload-area {
    padding: 26px 20px;
    border: 1px dashed #94b59d;
    background: #fafcf9;
}

#tribe-community-events .tribe-image-upload-area .note,
#tribe-community-events .organizer-email p {
    color: var(--wb-form-muted);
    font-size: 13px;
    line-height: 1.6;
}

#tribe-community-events .organizer-email p {
    margin: 10px 0 0;
}

#tribe-community-events .tribe-button,
#tribe-community-events .tribe-button.submit {
    min-height: 48px;
    padding: 13px 24px !important;
    border: 1px solid var(--green) !important;
    border-radius: 0;
    background: var(--green);
    color: #fff;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
    cursor: pointer;
}

#tribe-community-events .tribe-button.tribe-button-secondary {
    background: #fff;
    color: #167532;
}

#tribe-community-events .tribe-button:hover {
    background: #167532;
    color: #fff;
}

#tribe-community-events .select2-container .select2-selection {
    min-height: 48px;
    border: 1px solid var(--wb-form-border);
    border-radius: 0;
    background: #fff;
}

#tribe-community-events .select2-container .select2-search__field {
    min-height: 28px;
    max-width: 100%;
    color: #202a23;
    font-family: inherit;
}

#tribe-community-events .select2-container .select2-search--inline {
    max-width: 100%;
}

#tribe-community-events .tribe-section-custom-fields .tribe-field-type-checkbox td {
    padding-top: 24px;
    font-size: 14px !important;
}

#tribe-community-events .tribe-events-community-footer {
    margin: 8px 0 0;
    padding: 8px 0 0;
    text-align: right;
}

/* Keep the plugin's validation messages and field errors clearly visible. */
#tribe-community-events :is(input, textarea, select).error {
    border-color: #b42318 !important;
}

#tribe-community-events label.error {
    color: #b42318;
}

#tribe-community-events input.wb-url-invalid[aria-invalid="true"],
#tribe-community-events #event_tribe_organizer input.wb-url-invalid[aria-invalid="true"] {
    border-color: #b42318 !important;
}

#tribe-community-events .wb-url-feedback {
    margin: 8px 0 0;
    color: #167532;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#tribe-community-events .wb-url-feedback:empty {
    margin: 0;
}

#tribe-community-events .wb-url-feedback-error {
    color: #b42318;
}

@media (max-width: 782px) {
    #tribe-community-events.tribe-community-events.form {
        margin: 8px auto 40px;
    }

    #tribe-community-events.form > p {
        padding: 18px;
        margin-bottom: 28px;
        font-size: 15px;
    }

    #tribe-community-events .tribe-section .tribe-section-header {
        padding: 16px 18px;
    }

    #tribe-community-events .tribe-section .tribe-section-header h3 {
        font-size: 19px;
    }

    #tribe-community-events .tribe-section .tribe-section-content {
        padding: 18px;
    }

    #tribe-community-events .tribe-section table.tribe-section-content {
        width: calc(100% - 36px) !important;
        margin: 12px 18px;
    }

    #tribe-community-events .tribe-section colgroup {
        display: none;
    }

    #tribe-community-events .tribe-section table td,
    #tribe-community-events .tribe-section table td:first-child:not([colspan]) {
        display: block;
        width: 100%;
        padding: 6px 0;
    }

    #tribe-community-events .tribe-section table td:last-child {
        padding-bottom: 18px;
    }

    #tribe-community-events .tribe-section table td:first-child:not([colspan]) {
        font-weight: 600;
    }

    #tribe-community-events .wb-edit-start-date,
    #tribe-community-events .wb-edit-end-date {
        gap: 6px;
    }

    #tribe-community-events .tribe-datetime-block input.tribe-datepicker {
        width: 132px;
        min-width: 0;
        padding-inline: 8px;
    }

    #tribe-community-events .tribe-datetime-block input.tribe-timepicker {
        width: 82px;
        min-width: 0;
        padding-inline: 8px;
    }

    #tribe-community-events .tribe-events-community-footer .tribe-button.submit {
        width: 100% !important;
    }
}
