/* Пункт чек-листа */
.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.item:last-child { border-bottom: none; }

.item-text {
    font-size: 14.5px;
    line-height: 1.35;
    padding-right: 6px;
    color: rgba(255, 255, 255, 0.92);
}

.seg {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.seg button {
    min-width: 54px;
    height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    backdrop-filter: blur(10px);
}

.seg button.active-yes {
    background: rgba(48, 209, 88, 0.9);
    border-color: rgba(48, 209, 88, 1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(48, 209, 88, 0.35);
}

.seg button.active-no {
    background: rgba(255, 69, 58, 0.9);
    border-color: rgba(255, 69, 58, 1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 69, 58, 0.35);
}

.seg button.invalid-shake { animation: shake .35s; }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-3px); }
    75%     { transform: translateX(3px); }
}

/* Нижняя кнопка отправки */
.submit-wrap {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 55%, rgba(0,0,0,0));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}

.submit-wrap.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.submit-wrap button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #0a84ff, #0066cc);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.4);
    cursor: pointer;
    transition: transform .1s;
}

.submit-wrap button:active { transform: scale(0.98); }

.submit-wrap button:disabled {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.5);
}
/* Строка label + маленький input справа */
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.label-row label {
    margin-bottom: 0;
    flex: 1;
}
.label-row input {
    width: 84px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg);
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color .15s, background .15s;
}
.label-row input:focus {
    border-color: var(--accent);
    background: rgba(10, 132, 255, 0.08);
}
.label-row input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

/* Seg-кнопки на всю ширину для Да/Нет (в блоке "Наличие секретки") */
.seg-wide {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.seg-wide button {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    backdrop-filter: blur(10px);
}
.seg-wide button.active-yes {
    background: rgba(48, 209, 88, 0.9);
    border-color: rgba(48, 209, 88, 1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(48, 209, 88, 0.35);
}
.seg-wide button.active-no {
    background: rgba(255, 69, 58, 0.9);
    border-color: rgba(255, 69, 58, 1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 69, 58, 0.35);
}

/* Скрытый блок секретки */
.secret-block {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0 !important;
    transition: max-height .3s ease, opacity .2s ease, margin .3s ease;
}
.secret-block.visible {
    max-height: 120px;
    opacity: 1;
    margin-top: 12px;
    margin-bottom: 0 !important;
}
/* Ошибка под полем */
.field-error {
    color: var(--err);
    font-size: 12.5px;
    margin-top: 6px;
    padding-left: 4px;
    min-height: 0;
    line-height: 1.3;
}
.field-error:empty { display: none; }
/* Блок с фото повреждений */
.photo-block {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease, margin .3s ease;
    margin-bottom: 0;
    padding: 0 0;
}
.photo-block.visible {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
    margin-bottom: 8px;
}

.photo-title {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
    padding-left: 4px;
}

.photo-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.photo-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background .15s;
}
.photo-btn:active { background: rgba(255, 255, 255, 0.1); }

.photo-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.photo-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}