/* ============================================
   Event Form Wizard — Minimal White Theme
   ============================================ */

/* --- Reset & Base --- */
.em-view-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    min-height: 100vh;
}

.em-view-container *,
.em-view-container *::before,
.em-view-container *::after {
    box-sizing: border-box;
}

/* --- Form Title --- */
.event-form-title {
    text-align: center;
    margin: 0 0 8px;
    padding: 0;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.event-form-title h1 {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-shadow: none !important;
    letter-spacing: -0.01em;
}

.event-form-description-wrapper {
    text-align: center;
    margin: 0 0 24px;
    padding: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.event-form-description-wrapper p {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #64748b !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* --- Progress Bar --- */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 32px;
    padding: 0;
    position: relative;
}

.wizard-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* connector line between steps */
.wizard-progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

.wizard-progress-step.completed:not(:last-child)::after {
    background: #2563eb;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.wizard-progress-step.active .step-number {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.wizard-progress-step.completed .step-number {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.step-label {
    margin-top: 6px;
    font-size: 0.6875rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.wizard-progress-step.active .step-label {
    color: #2563eb;
    font-weight: 600;
}

.wizard-progress-step.completed .step-label {
    color: #1e293b;
}

/* --- Wizard Steps --- */
.wizard-step {
    display: none;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.wizard-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.wizard-step.slide-out-left {
    transform: translateX(-12px);
    opacity: 0;
}

/* --- Step Card --- */
.wizard-step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wizard-step-card h3 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.wizard-step-card .step-description {
    margin: 0 0 20px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- Navigation Buttons --- */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

.wizard-nav-right {
    justify-content: flex-end;
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
}

.wizard-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.wizard-prev {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.wizard-prev:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.wizard-next {
    background: #2563eb;
    color: #fff;
}

.wizard-next:hover {
    background: #1d4ed8;
}

.wizard-submit {
    background: #16a34a !important;
    color: #fff;
    padding: 12px 32px;
    font-size: 1rem;
}

.wizard-submit:hover {
    background: #15803d;
}

/* --- Form Elements --- */
.em-view-container label,
.wizard-step-card label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.em-view-container input[type="text"],
.em-view-container input[type="url"],
.em-view-container input[type="number"],
.em-view-container input[type="date"],
.em-view-container input[type="time"],
.em-view-container select,
.em-view-container textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5;
}

.em-view-container input[type="text"]:focus,
.em-view-container input[type="url"]:focus,
.em-view-container input[type="number"]:focus,
.em-view-container input[type="date"]:focus,
.em-view-container input[type="time"]:focus,
.em-view-container select:focus,
.em-view-container textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.em-view-container input::placeholder,
.em-view-container textarea::placeholder {
    color: #94a3b8;
}

.em-view-container textarea {
    min-height: 100px;
    resize: vertical;
}

/* Select arrow */
.em-view-container select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Checkbox & radio */
.em-view-container input[type="checkbox"],
.em-view-container input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* File input */
.em-view-container input[type="file"] {
    font-size: 0.875rem;
    color: #64748b;
    padding: 8px 0;
}

/* --- Section Spacing --- */
.em-view-container section {
    margin-bottom: 0;
}

.wizard-step-card section {
    margin-bottom: 20px;
}

.wizard-step-card section:last-of-type {
    margin-bottom: 0;
}

.wizard-step-card section h3 {
    display: none;
}

.wizard-step-card .input {
    margin: 0;
}

.wizard-step-card .input p {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    color: #64748b;
}

/* --- Hint/Help Text --- */
.wizard-step-card em,
.wizard-step-card small,
.wizard-step-card .em-field-description {
    font-size: 0.8125rem;
    color: #64748b;
    font-style: normal;
    display: block;
    margin-top: 4px;
}

/* --- Required mark --- */
.wizard-step-card i {
    color: #ef4444;
    font-style: normal;
    margin-left: 2px;
}

.oe-required-asterisk {
    color: #ef4444;
    font-style: normal;
    margin-left: 2px;
}

/* --- Linked Venue --- */
.ovd-linked-venue {
    background: #f0f4ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 16px;
}

.ovd-linked-venue__title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e40af;
    margin: 0 0 4px;
}

.ovd-linked-venue__meta {
    margin: 0;
    font-size: 0.8125rem;
    color: #334155;
}

/* --- Time Range --- */
.em-view-container .time-range-fieldset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border: 0;
    padding: 0;
    margin: 0 0 12px;
}

.em-view-container .time-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4px;
}

.em-view-container .all-day {
    display: flex;
    align-items: center;
    gap: 8px;
}

.em-view-container .all-day label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}

.em-view-container .all-day input[type="checkbox"] {
    width: auto;
}

/* --- Separator (EM core date range) --- */
.em-view-container .separator {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: #334155 !important;
    line-height: 1.5 !important;
}

/* --- Location --- */
.em-location-type-select,
.em-location-selection {
    margin-bottom: 16px;
}

#new-location-area,
#existing-location-area {
    margin-top: 12px;
}

.em-location-editor .form-field {
    margin-bottom: 14px !important;
}

.em-location-editor .form-field label {
    display: block;
    margin-bottom: 4px !important;
}

.em-location-editor .form-field input,
.em-location-editor .form-field select {
    display: block;
    width: 100%;
    margin-bottom: 0 !important;
}

/* Existing location details */
.location-details p {
    margin: 0 0 6px;
    font-size: 0.875rem;
    color: #334155;
}

.location-details strong {
    color: #475569;
    font-weight: 600;
}

/* Meeting place */
.em-meeting-place {
    margin-top: 20px !important;
}

.em-meeting-place textarea {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.9375rem !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    background-color: #fff !important;
}

.em-meeting-place textarea:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Privacy settings */
.em-privacy-settings {
    margin-top: 20px !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

.em-privacy-settings h4 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.em-privacy-option {
    margin-bottom: 12px !important;
}

.em-privacy-option label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 6px !important;
    transition: background 0.15s ease !important;
    margin: -4px !important;
    font-size: 0.875rem !important;
}

.em-privacy-option label:hover {
    background: rgba(37, 99, 235, 0.04) !important;
}

.em-privacy-option input[type="checkbox"] {
    margin-right: 10px !important;
    margin-top: 2px !important;
}

.em-privacy-option strong {
    font-size: 0.875rem !important;
    color: #1e293b !important;
}

.em-privacy-option small {
    font-size: 0.8125rem !important;
    color: #64748b !important;
}

.em-privacy-notice {
    margin-top: 12px !important;
    padding: 10px 12px !important;
    background: #fffbeb !important;
    border-left: 3px solid #f59e0b !important;
    border-radius: 0 6px 6px 0 !important;
    font-size: 0.8125rem !important;
    color: #92400e !important;
}

/* --- Details / Editor --- */
.event-editor {
    margin-bottom: 16px;
}

.event-editor textarea {
    min-height: 180px;
}

/* WP Editor overrides */
.wp-editor-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Categories */
.event-extra-details {
    margin-top: 16px;
}

.em-view-container .event-extra-details select[multiple],
.em-view-container .event-extra-details select.selectized,
.em-view-container .event-extra-details select.em-selectize {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    min-height: 120px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.em-view-container .event-extra-details .selectize-control {
    display: none !important;
}

.em-view-container .event-extra-details select.oe-category-select-native {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.em-view-container .event-extra-details .oe-category-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.em-view-container .event-extra-details .oe-category-chip {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 7px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.em-view-container .event-extra-details .oe-category-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e40af;
}

.em-view-container .event-extra-details .oe-category-chip.is-selected {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.em-view-container .event-extra-details .oe-category-picker.wizard-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* --- Image Upload --- */
.em-event-image-section {
    margin-bottom: 0;
}

#event-image-preview {
    margin-bottom: 12px;
}

.image-upload-success {
    color: #16a34a;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.no-image-message {
    font-size: 0.875rem;
    color: #94a3b8;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.image-requirements {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 6px;
}

.image-requirements p {
    margin: 2px 0;
}

.em-image-delete-option {
    display: none !important;
}

/* --- Tickets / Bookings --- */
#event-rsvp-options {
    display: block !important;
}

#event-rsvp-box {
    display: none !important;
}

.em-view-container .em-ticket-form {
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    padding: 18px;
    margin: 10px 0;
    background: #fdfefe;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.em-ticket-form-main {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.em-ticket-form-main > .ticket-description {
    grid-column: 1 / -1;
}

.em-ticket-form-main label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.em-ticket-form-main .ticket_description {
    min-height: 88px;
}

.em-ticket-form-main .ticket-price input,
.em-ticket-form-main .ticket-spaces input,
.em-ticket-form-main .ticket-spaces select {
    max-width: 220px;
}

.em-ticket-input-help {
    margin-top: 6px !important;
    font-size: 0.75rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.em-view-container .em-ticket-form-advanced {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed #dbe2ea;
    border-radius: 8px;
    background: #f8fafc;
}

.em-view-container .em-ticket-form-advanced > div {
    margin-bottom: 12px;
}

.em-view-container .em-ticket-form-advanced > div:last-child {
    margin-bottom: 0;
}

.em-view-container .em-ticket-form-advanced .inline-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.em-view-container .em-ticket-form-advanced .inline-inputs label {
    width: 100%;
    margin: 0 0 2px;
}

.em-view-container .em-ticket-form-advanced .inline-inputs input[type="text"] {
    width: 110px;
    min-width: 110px;
}

.em-view-container .em-ticket-form-advanced .inline-inputs input[type="number"] {
    width: 110px;
    min-width: 110px;
}

.em-view-container .em-ticket-form-advanced .inline-inputs select {
    width: auto;
    min-width: 170px;
}

.em-view-container .em-ticket-form-advanced .ticket-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.em-view-container .em-ticket-form-advanced .ticket-dates > div {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.em-view-container .em-ticket-form-advanced .ticket-required {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.em-view-container .ticket-type select {
    max-width: 240px;
}

.em-view-container .ticket-roles > div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
    max-height: 180px;
    overflow: auto;
}

.em-view-container .ticket-roles .ticket_members_roles {
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
}

.em-view-container .ticket-options-advanced {
    display: inline-block;
    text-decoration: none;
    font-size: 0.8125rem;
    color: #1d4ed8;
    font-weight: 600;
    margin-top: 8px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 999px;
    padding: 6px 12px;
    transition: all 0.15s ease;
}

.em-view-container .ticket-options-advanced:hover {
    color: #1e40af;
    background: #dbeafe;
    border-color: #93c5fd;
}

.em-view-container .ticket-options-advanced.hide {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

/* Booking options */
#em-booking-options {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

#em-booking-options h4 {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: #334155;
}

#em-booking-options p {
    margin: 0 0 14px;
}

#em-booking-options label {
    font-weight: 600;
}

#em-booking-options input[type="text"],
#em-booking-options input[type="number"] {
    max-width: 220px;
    margin-right: 8px;
}

#em-booking-options em {
    font-size: 0.8125rem;
    font-style: normal;
    color: #64748b;
}

/* Multi-ticket table */
.event-rsvp-options-tickets table.form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.event-rsvp-options-tickets table.form-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 8px;
    border-bottom: 1px solid #dbe2ea;
    text-align: left;
    background: #f8fafc;
}

.event-rsvp-options-tickets table.form-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
}

.event-rsvp-options-tickets table.form-table tbody:nth-of-type(even) .em-tickets-row td {
    background: #fcfdff;
}

.event-rsvp-options-tickets .ticket-actions a {
    font-weight: 600;
}

.event-rsvp-options-tickets .em-tickets-row-form td {
    background: #f8fafc;
    border-top: 0;
}

.event-rsvp-options-tickets h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 12px;
}

/* Ticket validation errors */
.ticket_price.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 4px;
    display: block;
}

/* --- Consent area (privacy checkbox above submit) --- */
.wizard-consent-area {
    margin-top: 20px;
    text-align: center;
}

.wizard-consent-area p {
    margin: 0;
    font-size: 0.875rem;
    color: #334155;
}

.wizard-consent-area label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer;
}

.wizard-consent-area input[type="checkbox"] {
    width: auto;
}

/* --- Centered submit area --- */
.wizard-submit-area {
    text-align: center;
    margin-top: 20px;
}

/* --- Submit Button (original, hidden by wizard) --- */
.event-form-submit {
    display: none !important;
}

/* --- Notices --- */
.em-view-container .em-notice {
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.em-view-container .em-notice-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* --- Validation error highlight --- */
.wizard-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.wizard-error-msg {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 4px;
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hidden utility --- */
#event-date-explanation {
    display: none !important;
}

/* --- Anonymous submitter (normally hidden) --- */
.event-form-submitter {
    margin-bottom: 16px;
}

.event-form-submitter h3 {
    display: block !important;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .em-view-container {
        padding: 16px 12px 32px;
    }

    .wizard-progress {
        margin-bottom: 24px;
    }

    .step-label {
        font-size: 0.5625rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .wizard-progress-step:not(:last-child)::after {
        top: 14px;
        left: calc(50% + 16px);
        width: calc(100% - 32px);
    }

    .wizard-step-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .wizard-step-card h3 {
        font-size: 1rem;
    }

    .wizard-btn {
        padding: 10px 18px;
        font-size: 0.875rem;
    }

    .em-view-container .time-range-fieldset {
        grid-template-columns: 1fr;
    }

    .em-privacy-settings {
        padding: 12px !important;
    }

    .em-ticket-form-main {
        grid-template-columns: 1fr;
    }

    .em-ticket-form-main .ticket-price input,
    .em-ticket-form-main .ticket-spaces input,
    .em-ticket-form-main .ticket-spaces select {
        max-width: 100%;
    }

    .em-view-container .em-ticket-form-advanced .ticket-dates {
        grid-template-columns: 1fr;
    }

    .em-view-container .em-ticket-form-advanced .inline-inputs input[type="text"] {
        width: 100%;
        min-width: 0;
    }

    .em-view-container .em-ticket-form-advanced .inline-inputs input[type="number"] {
        width: 100%;
        min-width: 0;
    }

    .em-view-container .em-ticket-form-advanced .inline-inputs select,
    .em-view-container .ticket-type select,
    #em-booking-options input[type="text"],
    #em-booking-options input[type="number"] {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .event-rsvp-options-tickets table.form-table {
        font-size: 0.8125rem;
    }
}

/* --- Success Screen --- */
.wizard-success-screen {
    text-align: center;
    padding: 40px 20px;
}

.wizard-success-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 32px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wizard-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.wizard-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.wizard-success-message {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 32px;
    line-height: 1.6;
}

.wizard-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.wizard-success-btn-primary {
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
    display: inline-block;
}

.wizard-success-btn-primary:hover {
    background: #1d4ed8;
}

.wizard-success-btn-secondary {
    background: #f1f5f9;
    color: #475569 !important;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease;
    display: inline-block;
}

.wizard-success-btn-secondary:hover {
    background: #e2e8f0;
}

/* --- Consent Area (EM plugin consent checkbox) --- */
.wizard-consent-area {
    text-align: center;
    margin-bottom: 16px;
    padding: 16px;
}

.wizard-consent-area .input-checkbox,
.wizard-consent-area .em-consent-checkbox {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

.wizard-consent-area .input-checkbox label,
.wizard-consent-area .em-consent-checkbox label {
    display: inline-flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #475569;
    text-align: left;
    max-width: 480px;
    line-height: 1.6;
}

.wizard-consent-area .oe-consent-text {
    display: inline;
}

.wizard-consent-area input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.wizard-consent-area a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.wizard-consent-area a:hover {
    color: #1d4ed8;
}

/* --- Clear Button --- */
.wizard-clear-area {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.wizard-clear {
    background: transparent;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    font-size: 0.8125rem;
    padding: 8px 16px;
}

.wizard-clear:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* --- Ticket Counter --- */
.em-ticket-counter {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 8px 0;
}

/* --- Ticket Price Display --- */
.ticket-price-display {
    font-weight: 500;
    color: #1e293b;
}

/* --- Print --- */
@media print {
    .wizard-progress,
    .wizard-nav,
    .wizard-clear-area {
        display: none !important;
    }

    .wizard-step {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .wizard-success-screen {
        display: block !important;
    }
}