/* Шаг 1 ЗАГС – только контент экрана; шапка/кнопка «Пропустить» в create-event-modal.css */

.create-event-modal__screen--wedding-intake {
    padding: 0 96px;
    margin-top: 32px;
}

.create-event-modal__zags-step1 .ui-input-with-icon {
    width: 100%;
}

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

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

.create-event-modal__zags-step1-hint {
    margin: 0;
    max-width: 42rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #2e7d32;
    text-align: center;
}

.create-event-modal__zags-step1-fields {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin-top: 32px;
}

.create-event-modal__zags-step1-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.create-event-modal__zags-step1-label {
    margin: 0;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    color: #2c2f33;
}

.create-event-modal__zags-step1-select {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.create-event-modal__zags-step1-select-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.create-event-modal__zags-step1-select-icon img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.create-event-modal__zags-step1-select-el {
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    padding: 0 52px 0 80px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fbfbfb;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    color: #2c2f33;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.create-event-modal__zags-step1-select-el:invalid {
    color: #9f9f9f;
}

.create-event-modal__zags-step1-select-el:focus {
    outline: none;
    border-color: rgba(46, 125, 50, 0.5);
}

.create-event-modal__zags-step1-select-el option {
    color: #2c2f33;
}

.create-event-modal__zags-step1-select-chevron {
    position: absolute;
    right: 27px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    pointer-events: none;
    border: solid #475569;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}

/* Personal data screen (wedding-intake step 4) – transparent blocks */

.create-event-modal__personal-head {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto 32px auto;
    padding: 0;
    background: transparent;
}

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

.create-event-modal__personal-meta {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    align-self: stretch;
    width: 100%;
    padding: 0;
}

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

.create-event-modal__personal-meta-dot {
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    border-radius: 4px;
    background: #9f9f9f;
}

.create-event-modal__personal-warning {
    margin: 0;
    align-self: stretch;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 17px;
    text-align: center;
    color: #2e7d32;
}

.create-event-modal__personal-form {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 1040px;
    max-height: 400px;
    padding: 0;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: transparent;
}

.create-event-modal__personal-field {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 12px;
    width: 100%;
}

.create-event-modal__personal-field-label {
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 19px;
    color: #2c2f33;
}

.create-event-modal__personal-row {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    align-self: stretch;
    gap: 12px;
    width: 100%;
}

/* Fields – match Figma: #FBFBFB, 60px, 24px horizontal padding, 16px/19px */

.create-event-modal__personal-form .ui-input__control {
    height: 60px;
    padding: 0 24px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fbfbfb;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    color: #2c2f33;
}

.create-event-modal__personal-form .ui-input__control::placeholder {
    color: #9f9f9f;
}

.create-event-modal__personal-form .ui-dropdown__select {
    height: 60px;
    padding: 0 44px 0 24px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fbfbfb;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    color: #2c2f33;
}

.create-event-modal__personal-form .ui-dropdown__chevron {
    right: 24px;
    margin-top: -4px;
}

/* Three equal columns (~338.67px at 1040px) */

.create-event-modal__personal-row--triple .ui-input {
    flex: 1 1 0;
    min-width: 0;
}

/* Date row: 160 + 240 + 160 */

.create-event-modal__personal-row--dob .ui-dropdown:nth-child(1) {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
}

.create-event-modal__personal-row--dob .ui-dropdown:nth-child(2) {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
}

.create-event-modal__personal-row--dob .ui-dropdown:nth-child(3) {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
}

/* Contact row: two equal halves (~514px) */

.create-event-modal__personal-row--contact .ui-input {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 1024px) {
    .create-event-modal__zags-step1-title,
    .create-event-modal__personal-title {
        font-size: 26px;
        line-height: 32px;
    }
}

@media (max-width: 768px) {
    .create-event-modal__screen--wedding-intake {
        padding: 0 16px;
        margin-top: 24px;
    }

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

    .create-event-modal__personal-meta {
        flex-wrap: wrap;
    }

    .create-event-modal__personal-row,
    .create-event-modal__personal-row--triple,
    .create-event-modal__personal-row--dob,
    .create-event-modal__personal-row--contact {
        flex-direction: column;
    }

    .create-event-modal__personal-row--dob .ui-dropdown:nth-child(1),
    .create-event-modal__personal-row--dob .ui-dropdown:nth-child(2),
    .create-event-modal__personal-row--dob .ui-dropdown:nth-child(3) {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 440px) {
    .create-event-modal__screen--wedding-intake {
        padding: 0 8px;
    }

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

    .create-event-modal__zags-step1-select-el {
        height: 52px;
        padding: 0 40px 0 56px;
        font-size: 15px;
    }
}

.create-event-modal__zags-step1-error,
.create-event-modal__zags-step2-error,
.create-event-modal__zags-step2-loading,
.create-event-modal__zags-step3-error,
.create-event-modal__zags-step3-loading,
.create-event-modal__personal-error,
.create-event-modal__zags-step5-error {
    margin: 12px 0 0 0;
    font-size: 14px;
    line-height: 18px;
    color: #b71c1c;
    text-align: center;
}

.create-event-modal__zags-step2-loading,
.create-event-modal__zags-step3-loading {
    color: #475569;
}

.create-event-modal__zags-step5 {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.create-event-modal__zags-step5-title {
    margin: 0 0 8px 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: #2c2f33;
}

.create-event-modal__zags-step5-lead {
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 22px;
    color: #475569;
}

.create-event-modal__zags-step5-digits {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.create-event-modal__zags-step5-digit {
    width: 56px;
    height: 56px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #2c2f33;
    box-sizing: border-box;
}
