.safe-ep-form-wrap {
    max-width: 1050px;
    margin: 0 auto;
}

.safe-ep-form-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.safe-ep-form-heading h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.safe-ep-form-heading p {
    margin-bottom: 0;
}

.safe-ep-alert {
    border-left: 6px solid #555555;
}

.safe-ep-alert-success {
    border-left-color: #2e7d32;
}

.safe-ep-alert-error {
    border-left-color: #c62828;
}

.safe-ep-alert ul {
    margin-bottom: 0;
}

.safe-ep-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
    margin-top: 24px;
}

.safe-ep-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.safe-ep-section-title {
    margin-bottom: 16px;
}

.safe-ep-section-title h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.safe-ep-section-title p {
    margin: 0;
    opacity: 0.78;
}

.safe-ep-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.safe-ep-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.safe-ep-field.full {
    grid-column: 1 / -1;
}

.safe-ep-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.safe-ep-field label span {
    color: #c62828;
}

.safe-ep-field input,
.safe-ep-field select,
.safe-ep-field textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.4;
    background: #ffffff;
}

.safe-ep-field textarea {
    min-height: 110px;
    resize: vertical;
}

.safe-ep-field.tall textarea {
    min-height: 170px;
}

.safe-ep-field-check {
    display: flex;
    align-items: end;
}

.safe-ep-field-check label {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    width: 100%;
}

.safe-ep-field-check input {
    width: auto;
    margin-right: 6px;
}

.safe-ep-acknowledge {
    margin-top: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 14px;
}

.safe-ep-acknowledge input {
    margin-right: 8px;
}

.safe-ep-actions {
    margin-top: 24px;
}

.safe-ep-actions button {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    background: #d32f2f;
    color: #ffffff;
}

.safe-ep-actions button:hover,
.safe-ep-actions button:focus {
    filter: brightness(0.95);
}

.safe-ep-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.safe-event-info {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 10px 18px;
}

.safe-event-info dt {
    font-weight: 800;
}

.safe-event-info dd {
    margin: 0;
}

@media (max-width: 800px) {
    .safe-ep-grid,
    .safe-ep-grid-four {
        grid-template-columns: 1fr;
    }

    .safe-event-info {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .safe-event-info dd {
        margin-bottom: 12px;
    }
}

.safe-ep-help {
    margin: 8px 0 0;
    font-size: 0.92rem;
    opacity: 0.75;
}


.safe-ep-field input[type="file"] {
    padding: 10px;
}

.safe-ep-warning-list {
    margin-top: 12px;
    padding-left: 20px;
}

.safe-ep-rich-field .wp-editor-wrap {
    width: 100%;
}

.safe-ep-rich-field .wp-editor-container {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.safe-ep-rich-field .wp-editor-area {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
}

.safe-ep-rich-field .quicktags-toolbar,
.safe-ep-rich-field .mce-toolbar-grp {
    border-radius: 12px 12px 0 0;
}


.safe-ep-calendar-export {
    margin: 2rem 0 1rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.safe-ep-calendar-export strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.safe-ep-calendar-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.safe-ep-cal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #ffffff;
}

.safe-ep-calendar-export small {
    display: block;
    opacity: 0.78;
}

.safe-ep-field-checklist {
    border: 0;
    padding: 0;
    margin: 0;
}

.safe-ep-field-checklist legend {
    font-weight: 800;
    margin-bottom: 8px;
}

.safe-ep-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.safe-ep-checkbox-list label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 700;
}
