/* =========================================================
   Events grid
   ========================================================= */

.kd-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.kd-events-empty {
    color: #4b5563;
    font-style: italic;
}

/* =========================================================
   Event card
   ========================================================= */

.kd-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .15s, transform .15s;
}

.kd-event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.kd-event-card__body {
    flex: 1;
    padding: 20px 20px 12px;
}

.kd-event-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1b2a47;
    margin: 0 0 12px;
    line-height: 1.35;
}

.kd-event-card__meta {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kd-event-card__meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #4b5563;
}

.kd-event-card__icon {
    font-size: 14px;
    flex-shrink: 0;
}

.kd-event-card__excerpt {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.kd-event-card__footer {
    padding: 14px 20px 18px;
    border-top: 1px solid #f3f4f6;
}

.kd-event-register-btn {
    display: inline-block;
    background: #1b2a47;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}

.kd-event-register-btn:hover {
    background: #263d65;
}

/* =========================================================
   Single event
   ========================================================= */

.kd-event-single {
    margin: 0 0 32px;
}

.kd-event-single__title {
    font-size: 26px;
    font-weight: 700;
    color: #1b2a47;
    margin: 0 0 16px;
}

.kd-event-single__content {
    margin-top: 20px;
    line-height: 1.7;
    color: #374151;
}

/* =========================================================
   Multi-step indicator
   ========================================================= */

.kd-steps-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.kd-steps-dots {
    display: flex;
    gap: 6px;
}

.kd-steps-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background .2s;
}

.kd-steps-dot.is-active {
    background: #1b2a47;
}

.kd-steps-dot.is-done {
    background: #6b9fd4;
}

.kd-steps-label {
    font-size: 13px;
    color: #4b5563;
}

/* =========================================================
   Step navigation buttons
   ========================================================= */

.kd-step-nav {
    display: flex;
    gap: 10px;
}

.kd-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, filter .15s;
    text-decoration: none;
}

.kd-btn--primary {
    background: var(--blue);
    color: #fff;
}

.kd-btn--primary:hover {
    background: var(--blue);
    filter: brightness(0.88);
    color: #fff;
}

.kd-btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.kd-btn--secondary:hover {
    background: #e5e7eb;
}

/* =========================================================
   Event registration modal extras
   ========================================================= */

.kd-modal__subtitle {
    font-size: 14px;
    color: #4b5563;
    margin: -12px 0 20px;
}

.kd-ev-reg-success-msg {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #166534;
    padding: 24px 0 8px;
}

.kd-event-reg-closed {
    color: #4b5563;
    font-style: italic;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 600px) {
    .kd-events-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Form field description
   ========================================================= */

.kd-form-field-desc {
    font-size: 12px;
    color: #4b5563;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* =========================================================
   Split layout modal (map left, form right)
   ========================================================= */

.kd-modal__dialog.kd-ev-has-maps {
    max-width: min(1340px, 96vw) !important;
    padding: 0 !important;
    overflow: hidden;
    height: min(92vh, 840px);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ── Modal header (full-width, above split) ── */

.kd-ev-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 32px 16px;
    padding-right: 64px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    gap: 20px;
}

.kd-ev-modal-header__titles .kd-modal__title {
    font-size: 20px;
    margin: 0 0 4px;
}

.kd-ev-modal-header__titles .kd-modal__subtitle {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
}

/* ── Step progress indicator ── */

.kd-ev-step-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.kd-ev-step-text {
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
    white-space: nowrap;
}

.kd-step-track {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kd-step-track__item {
    display: flex;
    align-items: center;
}

.kd-step-track__bubble {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.kd-step-track__item.is-active .kd-step-track__bubble {
    background: var(--blue);
    color: #fff;
}

.kd-step-track__item.is-done .kd-step-track__bubble {
    background: #fff;
    color: #1b2a47;
    border: 2px solid #d1d5db;
    font-size: 0;
}

.kd-step-track__item.is-done .kd-step-track__bubble::before {
    content: '\2713';
    font-size: 13px;
    color: #1b2a47;
}

.kd-step-track__line {
    width: 32px;
    height: 2px;
    background: #e5e7eb;
    transition: background .2s;
}

/* ── Split grid ── */

.kd-ev-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Left pane — map ── */

.kd-ev-split__left {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f0f4f8;
    border-right: 1px solid #e0e4eb;
}

.kd-ev-split__left .kd-ev-maps {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 0;
}

.kd-ev-split__left .kd-ev-maps__tabs {
    flex-shrink: 0;
    border-top: none;
    border-bottom: 1px solid #e0e4eb;
    background: #fff;
    padding: 0 16px;
}

.kd-ev-split__left .kd-ev-map {
    flex: 1;
    min-height: 0;
    display: none;
    flex-direction: column;
}

.kd-ev-split__left .kd-ev-map.is-active { display: flex; }

.kd-ev-split__left .kd-ev-map__canvas {
    flex: 1;
    height: auto;
    min-height: 0;
    background: #fff;
}

.kd-ev-split__left .kd-ev-map__img {
    height: 100%;
    max-height: 100%;
    width: auto;
}

/* Step-2 selection summary in left pane */
.kd-ev-step2-info {
    flex-shrink: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f0f4f8;
    border-top: 1px solid #e0e4eb;
}

.kd-ev-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e0e4eb;
    border-radius: 0;
    padding: 10px 14px;
}

.kd-ev-summary-card__icon {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1b2a47;
}

.kd-ev-summary-card__label {
    display: block;
    font-size: 11px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.kd-ev-summary-card__val {
    font-size: 14px;
    color: #1b2a47;
}

.kd-ev-step2-cards {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.kd-ev-step2-cards .kd-ev-summary-card {
    flex: 1;
    min-width: 0;
}

.kd-ev-price-summary {
    background: #fff;
    border: 1px solid #e0e4eb;
    border-radius: 0;
    padding: 10px 14px;
}

.kd-ev-price-summary__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kd-ev-price-summary__val {
    font-size: 14px;
    font-weight: 700;
    color: #1b2a47;
}

.kd-ev-price-summary__details {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.kd-ev-plot-limit-msg {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 6px;
    font-size: 13px;
    color: #713f12;
    text-align: center;
}

/* ── Right pane — form ── */

.kd-ev-split__right {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 28px 24px;
    background: #fff;
}

.kd-ev-split__right .kd-form-group {
    margin-bottom: 14px;
}

/* ── Modal footer ── */

.kd-ev-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 32px;
    background: #f0f4fa;
    border-top: 1px solid #e0e7f0;
    font-size: 13px;
    color: #4b5563;
    flex-shrink: 0;
}

.kd-ev-footer a {
    color: #1b2a47;
    font-weight: 600;
    text-decoration: none;
}

.kd-ev-footer a:hover { text-decoration: underline; }

/* =========================================================
   Map viewer (standalone + split overrides above)
   ========================================================= */

.kd-ev-maps {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    background: #f9fafb;
}

.kd-ev-maps__tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 0 12px;
    gap: 4px;
}

.kd-ev-maps__tab {
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}

.kd-ev-maps__tab.is-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.kd-ev-maps__tab:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.kd-ev-map {
    display: none;
    position: relative;
}

.kd-ev-map.is-active { display: block; }

.kd-ev-map__controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.kd-ev-map__zoom-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.92);
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: background .1s;
    padding: 0;
}

.kd-ev-map__zoom-btn:hover { background: #fff; }

.kd-ev-map__canvas {
    height: 300px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.kd-ev-map__canvas:active { cursor: grabbing; }

.kd-ev-map__img {
    max-width: none;
    width: auto;
    height: 280px;
    transform-origin: center center;
    pointer-events: none;
    display: block;
}

/* =========================================================
   Form fields — clean modern style
   ========================================================= */

.kd-form-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #1b2a47;
    letter-spacing: .08em;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.kd-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 6px;
}

.kd-form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 16px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}

.kd-form-input:focus {
    border-color: #1b2a47;
    box-shadow: 0 0 0 3px rgba(27,42,71,.08);
}

.kd-form-input::placeholder {
    color: #4b5563;
    font-size: 15px;
}

.kd-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #991b1b;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.kd-form-error[hidden] { display: none; }

.kd-required { color: #dc2626; margin-left: 2px; }

.kd-plan-picker-title {
    font-size: 14px;
    font-weight: 700;
    color: #1b2a47;
    margin: 0 0 10px;
}

/* =========================================================
   Plan picker cards
   ========================================================= */

.kd-plan-picker {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.kd-plan-option { position: relative; }

.kd-plan-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.kd-plan-card {
    display: block;
    cursor: pointer;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    overflow: hidden;
}

.kd-plan-card__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    transition: border-color .15s, background .15s;
    box-sizing: border-box;
}

.kd-plan-card:hover .kd-plan-card__inner {
    border-color: #93c5fd;
    background: #f8faff;
}

.kd-plan-radio:checked + .kd-plan-card .kd-plan-card__inner {
    border-color: #1b2a47;
    background: #eff4ff;
}

.kd-plan-card__icon-box {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kd-plan-radio:checked + .kd-plan-card .kd-plan-card__inner .kd-plan-card__icon-box {
    background: #dbeafe;
}

.kd-plan-icon {
    width: 20px;
    height: 20px;
    display: block;
    color: #1b2a47;
}

.kd-plan-card__name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1b2a47;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kd-plan-card__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    transition: border-color .15s;
    position: relative;
}

.kd-plan-radio:checked + .kd-plan-card .kd-plan-card__inner .kd-plan-card__radio {
    border-color: #1b2a47;
}

.kd-plan-radio:checked + .kd-plan-card .kd-plan-card__inner .kd-plan-card__radio::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1b2a47;
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

/* =========================================================
   Plot grid picker (numbered squares)
   ========================================================= */

.kd-plot-grid-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Locked state — shown before plan is selected */
.kd-plot-locked-msg {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 4px;
}

.kd-plot-grid-picker.is-locked .kd-plot-locked-msg { display: flex; }

.kd-plot-grid-picker.is-locked .kd-plot-search-wrap,
.kd-plot-grid-picker.is-locked .kd-plot-grid-groups,
.kd-plot-grid-picker.is-locked .kd-plot-legend,
.kd-plot-grid-picker.is-locked .kd-plot-summary,
.kd-plot-grid-picker.is-locked .kd-plot-section-title + .kd-plot-locked-msg ~ .kd-plot-search-wrap {
    opacity: .35;
    pointer-events: none;
    user-select: none;
}

.kd-plot-search-wrap { position: relative; }

.kd-plot-grid-search {
    padding-right: 40px !important;
    font-size: 14px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.kd-plot-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    pointer-events: none;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.kd-plot-grid-groups {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kd-plot-grid-group__label {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.kd-plot-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.kd-plot-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1b2a47;
    margin: 0 0 8px;
}

.kd-plot-num {
    width: 38px;
    height: 34px;
    border-radius: 4px;
    border: 1.5px solid #b8dab8;
    background: #d4edda;
    color: #1a4731;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .12s;
    padding: 0;
    line-height: 1;
}

.kd-plot-num:hover:not(:disabled):not(.is-selected) {
    border-color: #1b2a47;
    background: #dbeafe;
    color: #1e40af;
}

.kd-plot-num.is-selected {
    background: #1b2a47;
    border-color: #1b2a47;
    color: #fff;
}

.kd-plot-num--taken,
.kd-plot-num.kd-plot-num--taken {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
}

.kd-plot-num--unavail {
    background: #f3f0ff;
    border-color: #e5d5ff;
    color: #c4b5fd;
    cursor: not-allowed;
    opacity: .7;
}

/* Legend */
.kd-plot-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 12px;
    color: #4b5563;
}

.kd-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kd-legend-item::before {
    content: '';
    width: 13px;
    height: 13px;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

.kd-legend--free::before    { background: #d4edda; border: 1.5px solid #b8dab8; }
.kd-legend--taken::before   { background: #e9ecef; border: 1.5px solid #dee2e6; }
.kd-legend--unavail::before { background: #f3f0ff; border: 1.5px solid #e5d5ff; }
.kd-legend--selected::before{ background: #1b2a47; border: 1.5px solid #1b2a47; }

/* Selected plot summary strip */
.kd-plot-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 4px;
    color: #1b2a47;
}

.kd-plot-summary svg { flex-shrink: 0; }

.kd-plot-summary__label {
    font-size: 12px;
    color: #4b5563;
    display: block;
}

.kd-plot-summary__val {
    font-size: 15px;
    font-weight: 700;
}

/* Disabled plan card */
.kd-plan-option--disabled { cursor: not-allowed; }

/* Suppress any theme-level dotted underline on tooltip-bearing elements */
.kd-plan-option[data-tooltip] {
    border-bottom: none !important;
    text-decoration: none !important;
    outline: none !important;
}

.kd-plan-option--disabled .kd-plan-card { pointer-events: none; }

.kd-plan-option--disabled .kd-plan-card__inner {
    background: #f9fafb;
    border-color: #e5e7eb;
    opacity: 0.55;
}

.kd-plan-option--disabled .kd-plan-card__name { color: #4b5563; }

.kd-plan-card__badge {
    font-size: 10px;
    font-weight: 600;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 1px 5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Plan disabled tooltip */
.kd-plan-option[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1b2a47;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 6px 10px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 30;
    max-width: 240px;
    width: max-content;
}

.kd-plan-option[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1b2a47;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 30;
}

.kd-plan-option[data-tooltip]:hover::after,
.kd-plan-option[data-tooltip]:hover::before { opacity: 1; }

/* Plan additional info panel */
.kd-plan-info-panel {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f0f4ff;
    border-left: 3px solid var(--blue, #3b5bdb);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.55;
    color: #1b2a47;
    white-space: pre-line;
}

/* Plot tooltip (reserved company name) */
/* Plot tooltip — rendered as a fixed <div> in JS to escape overflow:auto containers */
.kd-plot-tooltip {
    position: fixed;
    z-index: 99999;
    background: #1b2a47;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    max-width: 180px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    transition: opacity .15s;
}
.kd-plot-tooltip.is-visible { opacity: 1; }

/* Ghost input */
.kd-plot-ghost {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    border: none;
    padding: 0;
    overflow: hidden;
}

/* =========================================================
   Step nav buttons
   ========================================================= */

.kd-step-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.kd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 4px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}

.kd-btn--primary {
    background: var(--blue);
    color: #fff;
}

.kd-btn--primary:hover { background: var(--blue); filter: brightness(0.88); color: #fff; }

.kd-btn--secondary {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

.kd-btn--secondary:hover { background: #f9fafb; }

/* =========================================================
   Success message
   ========================================================= */

.kd-ev-reg-success-msg {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #166534;
    padding: 32px 0 8px;
}

/* =========================================================
   Account creation section (event register modal)
   ========================================================= */

.kd-ev-account-section { margin-top: 4px; }

.kd-ev-account-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

.kd-ev-account-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1b2a47;
}

.kd-ev-account-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #1b2a47;
}

.kd-ev-account-toggle span { user-select: none; }

#kd-ev-account-fields { margin-top: 14px; }

.kd-ev-reg-success-sub {
    text-align: center;
    font-size: 14px;
    color: #4b5563;
    margin-top: 6px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
    .kd-ev-split { grid-template-columns: 1fr 340px; }
}

@media (max-width: 680px) {
    .kd-modal__dialog.kd-ev-has-maps {
        height: auto;
        max-height: 96vh;
        overflow-y: auto;
    }
    .kd-ev-split {
        grid-template-columns: 1fr;
        overflow-y: visible;
    }
    .kd-ev-split__left {
        border-right: none;
        border-bottom: 1px solid #e0e4eb;
        min-height: 240px;
    }
    .kd-ev-split__left .kd-ev-map__canvas { height: 220px; flex: none; }
    .kd-ev-split__left .kd-ev-map__img    { height: 200px; width: auto; }
    .kd-ev-split__right { padding: 16px 20px 20px; }
    .kd-ev-modal-header { padding: 16px 20px 12px; padding-right: 52px; }
    .kd-ev-map__canvas { height: 220px; }
    .kd-ev-map__img    { height: 200px; }
}

/* =========================================================
   Event page — 3-block layout (.kd-event-page)
   ========================================================= */

/* Full-width page template wrapper — no extra padding */
.kd-event-page-wrap { margin: 0; padding: 0; }

/* Full-width breakout — works both from shortcode wrapper and Gutenberg blocks */
.kd-event-page,
.kd-ep-hero,
.kd-ep-why,
.kd-ep-contact {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    overflow-x: clip; /* prevent 100vw scrollbar caused by scrollbar width */
}

/* When using the page template the sections already fill full width naturally */
.kd-event-page-wrap .kd-ep-hero,
.kd-event-page-wrap .kd-ep-why,
.kd-event-page-wrap .kd-ep-contact {
    left: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* Hide the default register shortcode button when embedded in event page */
.kd-ep-reg-wrap .kd-event-register-btn { display: none !important; }

/* Block editor preview pill */
.kd-block-editor-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f0f4ff;
    border: 2px dashed #93c5fd;
    border-radius: 8px;
    font-size: 14px;
    color: #1e3a5f;
}
.kd-block-editor-preview__icon { font-size: 24px; line-height: 1; }
.kd-block-editor-preview__event {
    display: block;
    font-size: 12px;
    color: #4b5563;
    margin-top: 2px;
}

/* ── Block 1: Hero ── */
.kd-ep-hero {
    background: #f5f7fb;
    overflow: hidden;
}

.kd-ep-hero__split {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    min-height: 400px;
    padding: 0 24px;
}

.kd-ep-hero__left {
    flex: 0 0 52%;
    padding: 64px 48px 64px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.kd-ep-hero--no-photo .kd-ep-hero__left {
    flex: 1;
    padding: 64px 0;
}

.kd-ep-hero__right {
    flex: 1;
    overflow: hidden;
    border-radius: 0;
    position: relative;
    margin-right: -24px;
}

.kd-ep-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kd-ep-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #0d1b2a;
    line-height: 1.15;
    margin: 0;
}

.kd-ep-hero__desc {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
    max-width: 480px;
}

.kd-ep-hero__desc p { margin: 0; }

.kd-ep-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.kd-ep-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95rem;
    color: #374151;
}

.kd-ep-hero__meta-item svg { flex-shrink: 0; color: #1b2a47; }

.kd-ep-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    align-self: flex-start;
    margin-top: 4px;
}

.kd-ep-hero__btn:hover { background: var(--blue); filter: brightness(0.88); }

/* Reservation info bar */
.kd-ep-reservation {
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.kd-ep-reservation__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 32px;
}

.kd-ep-reservation__heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: #4b5563;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.kd-ep-reservation__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.kd-ep-reservation__card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border-right: 1px solid #e5e7eb;
}

.kd-ep-reservation__card:last-child { border-right: none; }

.kd-ep-reservation__icon {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1b2a47;
}

.kd-ep-reservation__label {
    display: block;
    font-size: 0.82rem;
    color: #4b5563;
    margin-bottom: 3px;
}

.kd-ep-reservation__date {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1b2a47;
}

/* ── Block 2: Why participate ── */
.kd-ep-why {
    padding: 72px 0 64px;
    background: #fff;
}

.kd-ep-why__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.kd-ep-why__title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: #0d1b2a;
    text-transform: uppercase;
    margin: 0 0 36px;
}

.kd-ep-why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.kd-ep-why__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.kd-ep-why__item:nth-child(odd)  { padding-right: 48px; border-right: 1px solid #e5e7eb; }
.kd-ep-why__item:nth-child(even) { padding-left: 48px; }

/* Remove bottom border from last row */
.kd-ep-why__item:nth-last-child(-n+2) { border-bottom: none; }

.kd-ep-why__icon {
    flex-shrink: 0;
    color: #1b2a47;
    opacity: 0.85;
}

.kd-ep-why__text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.55;
    margin: 0;
    padding-top: 6px;
}

/* ── Block 3: Contact ── */
.kd-ep-contact {
    padding: 0 24px 56px;
    background: #fff;
}

.kd-ep-contact__inner {
    max-width: 1200px;
    margin: 0 auto;
    background: #f0f4f8;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 32px 40px;
}

.kd-ep-contact__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 12px;
}

.kd-ep-contact__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 8px;
}

.kd-ep-contact__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.kd-ep-contact__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #1b2a47;
    text-decoration: none;
    border-right: 1px solid #d1d5db;
    padding-right: 24px;
}

.kd-ep-contact__link:last-child { border-right: none; padding-right: 0; }
.kd-ep-contact__link:hover { text-decoration: underline; }
.kd-ep-contact__link svg { flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .kd-ep-hero__split { flex-direction: column; min-height: auto; }
    .kd-ep-hero__left  { flex: none; padding: 48px 0 32px; }
    .kd-ep-hero__right { flex: none; height: 260px; margin-right: 0; margin-left: -24px; width: calc(100% + 48px); }
    .kd-ep-why__grid   { grid-template-columns: 1fr; }
    .kd-ep-why__item:nth-child(odd)  { padding-right: 0; border-right: none; }
    .kd-ep-why__item:nth-child(even) { padding-left: 0; }
    .kd-ep-why__item:nth-last-child(-n+2) { border-bottom: 1px solid #e5e7eb; }
    .kd-ep-why__item:last-child { border-bottom: none; }
    .kd-ep-reservation__cards { flex-direction: column; }
    .kd-ep-reservation__card  { border-right: none; border-bottom: 1px solid #e5e7eb; }
    .kd-ep-reservation__card:last-child { border-bottom: none; }
    .kd-ep-contact__inner { padding: 24px 20px; }
    .kd-ep-contact__row { gap: 12px 16px; }
    .kd-ep-contact__link { border-right: none; padding-right: 0; }
}
