/* Шаг 3 ЗАГС – время регистрации (макет wedding step 3) */

.create-event-modal__zags-step3 {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;

    margin-top: 32px;
}

.create-event-modal__zags-step3-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.create-event-modal__zags-step3-meta-item {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 17px;
    color: #475569;
    text-align: center;
}

.create-event-modal__zags-step3-meta-dot {
    flex: 0 0 auto;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9f9f9f;
}

.create-event-modal__zags-step3-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.create-event-modal__zags-step3-title {
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: 30px;
    font-weight: 700;
    font-style: normal;
    line-height: 36px;
    color: #2c2f33;
    text-align: center;
}

/*
 * Figma Frame 20: колонка ячеек, gap 12, ширина контента до 1040.
 * Ячейки НЕ тянутся на всю строку – фикс. 251px, подряд с gap (как в макете).
 */
.create-event-modal__zags-step3-board {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    width: 100%;
    max-width: 1040px;
    padding: 0;
    margin: 0 auto;
    gap: 12px;
    flex: none;
    flex-grow: 0;
}

/* Figma Frame 23 / Frame 22: ряд – подряд, без flex-grow у детей */
.create-event-modal__zags-step3-row {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    min-height: 101px;
    padding: 0;
    gap: 12px;
    flex: none;
    flex-grow: 0;
}

.create-event-modal__zags-step3-slot {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 251px;
    max-width: 100%;
    height: 101px;
    padding: 24px;
    gap: 12px;
    border: none;
    border-radius: 16px;
    background: #f9f9f9;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.create-event-modal__zags-step3-slot:focus-visible {
    outline: 2px solid rgba(46, 125, 50, 0.55);
    outline-offset: 2px;
}

.create-event-modal__zags-step3-slot[aria-pressed='true'] {
    box-shadow: 0 0 0 2px #2e7d32;
    background: #f9f9f9;
}

.create-event-modal__zags-step3-slot[aria-pressed='true']:hover {
    box-shadow: 0 0 0 2px #2e7d32;
    background: #f9f9f9;
}

/* Figma Frame 20 внутри ячейки: ряд 203×24 под время + скрытый подзаголовок */
.create-event-modal__zags-step3-slot-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: center;
    width: 100%;
    max-width: 203px;
    flex: none;
    flex-grow: 0;
    height: 24px;
    padding: 0;
    gap: 12px;
    box-sizing: border-box;
}

.create-event-modal__zags-step3-slot-time {
    flex: none;
    flex-grow: 0;
    order: 0;
    margin: 0 auto;
    height: 24px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    color: #2c2f33;
    text-align: center;
}

.create-event-modal__zags-step3-slot[aria-pressed='true'] .create-event-modal__zags-step3-slot-time {
    color: #2e7d32;
}

/* В макете display: none – оставляем в DOM для совпадения слоёв, не участвует в раскладке */
.create-event-modal__zags-step3-slot-tagline {
    display: none;
    flex: none;
    flex-grow: 0;
    order: 1;
    width: 196px;
    height: 19px;
    margin: 0 auto;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 19px;
    color: #475569;
}

.create-event-modal__zags-step3-slot-date {
    flex: none;
    align-self: center;
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 17px;
    color: #475569;
    text-align: center;
}

@media (max-width: 1024px) {
    .create-event-modal__zags-step3 {
        padding: 32px 24px;
    }

    .create-event-modal__zags-step3-title {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (max-width: 768px) {
    .create-event-modal__zags-step3 {
        padding: 24px 16px;
    }
}

@media (max-width: 440px) {
    .create-event-modal__zags-step3 {
        padding: 16px 12px;
    }

    .create-event-modal__zags-step3-title {
        font-size: 22px;
        line-height: 28px;
    }

    .create-event-modal__zags-step3-slot {
        width: min(251px, calc((100% - 12px) / 2));
    }

    .create-event-modal__zags-step3-row {
        width: 100%;
    }
}
