/* Scanner zone */
.scanner {
    margin-bottom: 16px;
}

.photo-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.photo-slot {
    background: var(--card);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}
.photo-slot:hover {
    border-color: var(--green);
    background: #F5FFF5;
}
.photo-slot.required {
    border-color: var(--green);
}
.photo-slot.captured {
    border-style: solid;
    border-color: var(--green);
    padding: 0;
}

.photo-slot input[type="file"] {
    display: none;
}

.slot-icon {
    font-size: 2rem;
    line-height: 1;
}
.slot-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.slot-hint {
    font-size: 0.7rem;
    color: var(--text3);
    font-weight: 600;
}
.slot-optional {
    font-size: 0.65rem;
    color: var(--text3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--card2);
    padding: 2px 8px;
    border-radius: 8px;
}

/* Preview in captured state */
.slot-preview {
    width: 100%;
    height: 100%;
    position: relative;
}
.slot-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
}
.slot-preview .slot-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slot-preview .slot-change {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 16px 8px 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
