
.tvico-event-form-wrap{max-width:100%;font-family:Roboto,Arial,sans-serif}.tvico-event-form{display:grid;gap:18px}.tvico-field{display:flex;flex-direction:column;gap:7px}.tvico-field label,.tvico-field legend{font-size:14px;font-weight:700}.tvico-field input,.tvico-field select{width:100%;padding:12px;border:1px solid #c7c7c7;border-radius:5px;font-size:16px;background:#fff}.tvico-field select[multiple]{min-height:180px}.tvico-grid{display:grid;gap:16px}.tvico-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tvico-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tvico-description{margin:0;font-size:13px;line-height:1.45}.tvico-conditional[hidden]{display:none!important}.tvico-submit{justify-self:start;background:#2D6F97;color:#fff;border:0;border-radius:5px;padding:12px 22px;font-weight:600;cursor:pointer}.tvico-submit:hover{background:#245b7d}.tvico-form-message{padding:14px 16px;border-radius:5px;margin-bottom:18px}.tvico-form-success{background:#eaf6ee!important;color:#176b36!important;border-left:4px solid #218838!important}.tvico-form-error{background:#fff0f0}.tvico-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.tvico-event-form input:focus,.tvico-event-form select:focus{outline:2px solid #254DEB;outline-offset:1px}.tvico-field-error input,.tvico-field-error select{border-color:#b00020}.tvico-submitting{align-self:center}@media(max-width:900px){.tvico-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.tvico-grid-3,.tvico-grid-4{grid-template-columns:1fr}}
.tvico-event-form .ep-venue-select-wrap select{width:100%;padding:12px;border:1px solid #c7c7c7;border-radius:5px;font-size:16px;background:#fff}.tvico-event-form .venue-id-pass{display:none!important}

/* Event type radios: match the original Forminator vertical layout. */
.tvico-event-form .tvico-type-field{border:0;padding:0;margin:0;display:block}
.tvico-event-form .tvico-type-field legend{padding:0;margin:0 0 5px;font-size:14px;font-weight:700}
.tvico-event-form .tvico-type-description{margin:0 0 10px;color:#e60000;font-size:13px;line-height:1.45}
.tvico-event-form .tvico-radio-options{display:flex;flex-direction:column;gap:12px}
.tvico-event-form .tvico-radio-option{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;width:auto;font-weight:400;cursor:pointer;margin:0}
.tvico-event-form .tvico-radio-option input[type=radio]{width:auto!important;min-width:0!important;height:auto;margin:0!important;padding:0!important;flex:0 0 auto}
.tvico-event-form .tvico-radio-option span{display:inline-block}


/* 1.2.17 - compact multi-select UI */
.tvico-event-form .tvico-field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tvico-event-form .tvico-selection-count{font-size:12px;color:#666;font-weight:600;white-space:nowrap}
.tvico-event-form .tvico-multi-select select[multiple]{min-height:120px;max-height:140px}
.tvico-event-form .tvico-selected-values{display:flex;flex-wrap:wrap;gap:7px;min-height:31px;align-items:center}
.tvico-event-form .tvico-selected-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #b7c7d6;background:#f5f8fb;border-radius:999px;padding:5px 9px;font-size:13px;line-height:1.2;cursor:pointer;color:#222}
.tvico-event-form .tvico-selected-chip:hover{background:#e9f0f6}
.tvico-event-form .tvico-selected-empty{font-size:12px;color:#777}

/* 1.2.17 - EventPrime repeat control cleanup */
.tvico-event-form .tvico-repeat-options{display:grid;gap:10px}
.tvico-event-form .tvico-repeat-options .tvico-repeat-toggle,
.tvico-event-form .tvico-repeat-options label:has(input[type="checkbox"]){display:inline-flex!important;align-items:center;gap:8px;width:auto!important;margin:0;font-weight:600}
.tvico-event-form .tvico-repeat-options input[type="checkbox"]{width:auto!important;min-width:0!important;margin:0!important;padding:0!important;flex:0 0 auto}


/* 1.2.18 - repeat controls */
.tvico-event-form .ep-repeat-box .ep-repeat-main,
.tvico-event-form .ep-repeat-box .ep-month-mode-option,
.tvico-event-form .ep-repeat-box .ep-repeat-day-grid label{
    display:inline-flex!important;
    align-items:center;
    justify-content:flex-start;
    gap:7px;
    width:auto!important;
    margin:0;
}
.tvico-event-form .ep-repeat-box input[type="checkbox"],
.tvico-event-form .ep-repeat-box input[type="radio"]{
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    flex:0 0 auto;
}
.tvico-event-form .ep-repeat-settings{
    display:none;
    margin-top:14px;
    padding:16px;
    border:1px solid #ddd;
    border-radius:5px;
    background:#fafafa;
}
.tvico-event-form .ep-repeat-settings > p,
.tvico-event-form .ep-repeat-week-options > p,
.tvico-event-form .ep-repeat-month-options > p{
    margin:0 0 9px;
}
.tvico-event-form .ep-repeat-box .ep-repeat-interval,
.tvico-event-form .ep-repeat-box .ep-repeat-unit,
.tvico-event-form .ep-repeat-box .ep-repeat-end-date{
    margin:0 0 12px!important;
}
.tvico-event-form .ep-repeat-day-grid{
    display:flex;
    flex-wrap:wrap;
    gap:8px 14px;
    margin-bottom:14px;
}
.tvico-event-form .ep-repeat-month-options{
    display:none;
    margin-bottom:14px;
}
.tvico-event-form .ep-repeat-month-options .ep-month-mode-option{
    margin-bottom:12px;
}
.tvico-event-form .ep-month-weekday-row{
    display:grid;
    grid-template-columns:auto minmax(130px,180px) minmax(150px,220px);
    gap:10px;
    align-items:center;
}
.tvico-event-form .ep-month-weekday-row .ep-month-mode-option{
    margin:0;
}
.tvico-event-form .ep-month-weekday-row select{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
}
.tvico-event-form .ep-repeat-box .ep-repeat-end-date{
    width:100%!important;
}
.tvico-event-form .tvico-multiselect-help{
    margin:0;
    font-size:12px;
    line-height:1.4;
    color:#666;
}
@media(max-width:600px){
    .tvico-event-form .ep-month-weekday-row{
        grid-template-columns:auto 1fr;
    }
    .tvico-event-form .ep-month-weekday-row .ep-month-weekday{
        grid-column:2;
    }
}


/* 1.2.19 - final repeat alignment + restored selection UI */
.tvico-event-form .tvico-repeat-options .ep-repeat-box > .ep-repeat-main{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:max-content!important;
    margin:0 0 8px!important;
}
.tvico-event-form .tvico-repeat-options .ep-repeat-box .ep-repeat-day-grid{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px 18px!important;
    align-items:center!important;
}
.tvico-event-form .tvico-repeat-options .ep-repeat-box .ep-repeat-day-grid > label{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:6px!important;
    width:auto!important;
    margin:0!important;
}
.tvico-event-form .tvico-repeat-options .ep-repeat-box .ep-repeat-day-grid input[type="checkbox"],
.tvico-event-form .tvico-repeat-options .ep-repeat-box .ep-repeat-main input[type="checkbox"],
.tvico-event-form .tvico-repeat-options .ep-repeat-box .ep-month-mode-option input[type="radio"]{
    display:inline-block!important;
    width:16px!important;
    height:16px!important;
    min-width:16px!important;
    max-width:16px!important;
    flex:0 0 16px!important;
    margin:0!important;
    padding:0!important;
}
.tvico-event-form .tvico-repeat-options .ep-repeat-box .ep-month-mode-option{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:max-content!important;
    margin:0 0 10px!important;
}
.tvico-event-form .tvico-repeat-options .ep-month-weekday-row{
    display:grid!important;
    grid-template-columns:auto minmax(140px,180px) minmax(160px,220px)!important;
    align-items:center!important;
    gap:10px!important;
    margin:0 0 12px!important;
}
.tvico-event-form .tvico-repeat-options .ep-month-weekday-row .ep-month-mode-option{
    margin:0!important;
}
.tvico-event-form .tvico-repeat-options .ep-repeat-settings input[type="number"],
.tvico-event-form .tvico-repeat-options .ep-repeat-settings input[type="date"],
.tvico-event-form .tvico-repeat-options .ep-repeat-settings select{
    box-sizing:border-box;
}
.tvico-event-form .tvico-selected-values{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    min-height:31px!important;
    margin-top:2px!important;
}
.tvico-event-form .tvico-selected-chip{
    display:inline-flex!important;
}
@media(max-width:600px){
    .tvico-event-form .tvico-repeat-options .ep-month-weekday-row{
        grid-template-columns:auto 1fr!important;
    }
    .tvico-event-form .tvico-repeat-options .ep-month-weekday-row .ep-month-weekday{
        grid-column:2!important;
    }
}


/* 1.2.20 - tighten monthly repeat weekday row */
.tvico-event-form .tvico-repeat-options .ep-month-weekday-row{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    margin:0 0 12px!important;
}
.tvico-event-form .tvico-repeat-options .ep-month-weekday-row .ep-month-mode-option{
    display:inline-flex!important;
    align-items:center!important;
    gap:8px!important;
    width:auto!important;
    margin:0!important;
    flex:0 0 auto!important;
}
.tvico-event-form .tvico-repeat-options .ep-month-weekday-row .ep-month-week-number{
    width:150px!important;
    min-width:150px!important;
    flex:0 0 150px!important;
}
.tvico-event-form .tvico-repeat-options .ep-month-weekday-row .ep-month-weekday{
    width:180px!important;
    min-width:180px!important;
    flex:0 0 180px!important;
}
@media(max-width:600px){
    .tvico-event-form .tvico-repeat-options .ep-month-weekday-row{
        align-items:stretch!important;
    }
    .tvico-event-form .tvico-repeat-options .ep-month-weekday-row .ep-month-mode-option{
        width:100%!important;
    }
    .tvico-event-form .tvico-repeat-options .ep-month-weekday-row .ep-month-week-number,
    .tvico-event-form .tvico-repeat-options .ep-month-weekday-row .ep-month-weekday{
        width:100%!important;
        min-width:0!important;
        flex:1 1 100%!important;
    }
}


/* 1.2.24 - unified Event/Special Meeting/Flyer form validation */
.tvico-form-error-summary{
    background:#fff0f0!important;
    color:#8f1d14!important;
    border-left:4px solid #c5221f!important;
    padding:14px 16px!important;
    margin:0 0 20px!important;
    border-radius:5px;
}
.tvico-form-error-summary[hidden]{display:none!important}
.tvico-form-error-summary strong{display:block;margin-bottom:6px}
.tvico-form-error-summary ul{margin:0;padding-left:22px}
.tvico-form-error-summary li{margin:3px 0}
.tvico-event-form .tvico-field-error > label,
.tvico-event-form .tvico-field-error > legend,
.tvico-event-form .tvico-field-error .tvico-field-heading > label{
    color:#8f1d14;
}
.tvico-event-form .tvico-field-error input:not([type="radio"]):not([type="checkbox"]),
.tvico-event-form .tvico-field-error select,
.tvico-event-form .tvico-field-error textarea,
.tvico-event-form .tvico-field-error .ep-venue-select-wrap select{
    border-color:#c5221f!important;
    box-shadow:0 0 0 1px #c5221f;
}
.tvico-event-form .tvico-type-field.tvico-field-error{
    border-left:3px solid #c5221f;
    padding-left:10px;
}
.tvico-event-form .tvico-venue-section{display:grid;gap:16px}


/* 1.2.26 - clarify individual end date vs recurring-series end date */
.tvico-event-form .tvico-date-info{
    margin-top:2px;
    padding:11px 14px;
    background:#f7f9fb;
    border-left:4px solid #2D6F97;
    border-radius:4px;
    line-height:1.45;
}
.tvico-event-form .tvico-date-info strong{
    display:block;
    margin-bottom:3px;
    color:#1f4f6f;
}
.tvico-event-form .tvico-date-info span{display:block}
.tvico-event-form .tvico-recurrence-date-info{margin-top:10px}

/* 1.2.28 - tap-friendly organizer/category selection on tablets and phones */
.tvico-event-form .tvico-mobile-multiselect{
    display:none;
}

@media (max-width: 980px){
    .tvico-event-form .tvico-multi-select select[multiple]{
        /* Keep the real select in the form for submission/validation, but move
           it off-screen so mobile users use the tap-friendly controls below. */
        position:absolute!important;
        width:1px!important;
        height:1px!important;
        min-height:0!important;
        margin:-1px!important;
        padding:0!important;
        overflow:hidden!important;
        clip:rect(0 0 0 0)!important;
        clip-path:inset(50%)!important;
        white-space:nowrap!important;
        border:0!important;
    }

    .tvico-event-form .tvico-mobile-multiselect{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
        margin-top:8px;
        max-height:300px;
        overflow-y:auto;
        padding:10px;
        border:1px solid #c9d1d8;
        border-radius:5px;
        background:#fff;
        -webkit-overflow-scrolling:touch;
    }

    .tvico-event-form .tvico-mobile-choice{
        display:flex!important;
        flex-direction:row!important;
        align-items:center!important;
        gap:9px!important;
        width:100%!important;
        margin:0!important;
        padding:10px!important;
        border:1px solid #d7dde3;
        border-radius:5px;
        background:#f8fafb;
        font-weight:400!important;
        line-height:1.3;
        cursor:pointer;
        box-sizing:border-box;
    }

    .tvico-event-form .tvico-mobile-choice.is-selected{
        border-color:#2D6F97;
        background:#eef5f9;
    }

    .tvico-event-form .tvico-mobile-choice input[type="checkbox"]{
        display:inline-block!important;
        width:20px!important;
        height:20px!important;
        min-width:20px!important;
        margin:0!important;
        padding:0!important;
        flex:0 0 20px!important;
    }

    .tvico-event-form .tvico-mobile-choice span{
        min-width:0;
        overflow-wrap:anywhere;
    }

    .tvico-event-form .tvico-multiselect-help{
        font-size:0;
    }
    .tvico-event-form .tvico-multiselect-help::after{
        content:'Tap up to 3 selections. Tap a selected item again to remove it.';
        font-size:12px;
        line-height:1.4;
    }
}

@media (max-width: 600px){
    .tvico-event-form .tvico-mobile-multiselect{
        grid-template-columns:1fr;
        max-height:340px;
    }
}
