.ec-event-page {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
    color: #313332;
    font-family: inherit;
}

.ec-event-page__heading {
    font-size: 28px;
    margin-bottom: 28px;
}

.ec-event-summary {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.ec-event-summary__image {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.ec-event-summary__title {
    font-size: 20px;
    margin: 0 0 10px;
}

.ec-event-summary__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
}

.ec-event-summary__desc p {
    margin: 0 0 10px;
}

.ec-event-page__canceled {
    color: #c0392b;
    font-weight: 600;
    font-size: 16px;
}

.ec-event-page__subheading {
    font-size: 22px;
    margin: 8px 0 20px;
}

.ec-register-message {
    margin-bottom: 16px;
    font-size: 14px;
}

.ec-register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ec-form-row {
    display: grid;
    gap: 16px;
}

.ec-form-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.ec-field label {
    display: block;
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 6px;
}

.ec-field input[type="text"],
.ec-field input[type="email"],
.ec-field input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    color: #313332;
}

.ec-field input:disabled {
    background: #f2f2f2;
    color: #aaa;
}

.ec-checkbox-inline {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b6b6b;
    margin-top: 8px;
    cursor: pointer;
}

.ec-checkbox-inline input {
    margin: 0;
}

/* Кастомный выпадающий список дат */

.ec-dropdown {
    position: relative;
}

.ec-dropdown__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    color: #313332;
    cursor: pointer;
    text-align: left;
}

.ec-dropdown__toggle:hover {
    border-color: #A77FF5;
}

.ec-dropdown__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: #9b9b9b;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s;
}

.ec-dropdown.open .ec-dropdown__chevron {
    transform: rotate(180deg);
}

.ec-dropdown__list {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    max-height: 176px; /* ~4 пункта — дальше появляется скролл */
    overflow-y: auto;
}

.ec-dropdown.open .ec-dropdown__list {
    display: block;
}

.ec-dropdown__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    color: #313332;
}

.ec-dropdown__item:hover {
    background: #F7F2FF;
}

.ec-dropdown__item.disabled {
    color: #bbb;
    cursor: not-allowed;
    background: none;
}

.ec-dropdown__item-note {
    font-size: 12px;
    color: #c0392b;
}

.ec-field--categories .ec-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: center;
}

.ec-categories .ec-checkbox-inline {
    margin-top: 4px;
}

.ec-categories__other {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.ec-consent {
    font-size: 13px;
}

.ec-consent a {
    color: #A77FF5;
}

.ec-submit-btn {
    align-self: flex-start;
    padding: 12px 32px;
    background: #A77FF5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s;
}

.ec-submit-btn:hover {
    background: #8f5eea;
}

.ec-submit-btn:disabled {
    opacity: .6;
    cursor: default;
}

@media (max-width: 640px) {
    .ec-event-summary {
        flex-direction: column;
    }
    .ec-event-summary__image {
        width: 100%;
        height: 180px;
    }
    .ec-form-row--3 {
        grid-template-columns: 1fr;
    }
}
